/**
 * BOB Payment Gateway - Payment Form Styles
 */

.bob-payment-wrapper {
    max-width: 480px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Header */
.bob-payment-header {
    text-align: center;
    padding: 25px 20px 15px;
    background: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
    border-radius: 12px 12px 0 0;
    color: #fff;
}

.bob-payment-header h3 {
    margin: 10px 0 5px;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

.bob-payment-subtitle {
    margin: 0;
    font-size: 13px;
    opacity: 0.8;
}

.bob-payment-logo img {
    max-height: 40px;
    margin-bottom: 5px;
}

/* Order Summary */
.bob-order-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: none;
    padding: 20px;
}

.bob-order-summary h4 {
    margin: 0 0 12px;
    font-size: 14px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bob-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bob-item-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}

.bob-item-price {
    font-weight: 700;
    color: #1a365d;
    font-size: 18px;
}

.bob-order-desc {
    margin: 8px 0 0;
    font-size: 13px;
    color: #64748b;
}

/* Form */
.bob-payment-form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    padding: 20px;
    border-radius: 0 0 12px 12px;
}

.bob-form-group {
    margin-bottom: 16px;
}

.bob-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.bob-form-group input,
.bob-form-group select,
.bob-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #1f2937;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.bob-form-group input:focus,
.bob-form-group select:focus,
.bob-form-group textarea:focus {
    outline: none;
    border-color: #2d5a87;
    box-shadow: 0 0 0 3px rgba(45, 90, 135, 0.1);
}

.bob-form-group input::placeholder,
.bob-form-group textarea::placeholder {
    color: #9ca3af;
}

/* Total */
.bob-form-total {
    border-top: 2px solid #e5e7eb;
    padding-top: 16px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.bob-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.bob-total-line span:first-child {
    color: #6b7280;
    font-weight: 500;
}

.bob-total-amount {
    font-size: 24px;
    font-weight: 700;
    color: #1a365d;
}

/* Pay Button */
.bob-pay-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.bob-pay-button:hover {
    background: linear-gradient(135deg, #152c4d 0%, #245077 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
}

.bob-pay-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bob-pay-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bob-pay-loading::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bob-spin 0.8s linear infinite;
}

@keyframes bob-spin {
    to { transform: rotate(360deg); }
}

/* Security Badges */
.bob-security-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    font-size: 11px;
    color: #9ca3af;
}

/* iframe Container */
.bob-iframe-container {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.bob-iframe-header {
    background: #f8fafc;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.bob-iframe-header h4 {
    margin: 0;
    color: #1e293b;
}

.bob-iframe-header p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #64748b;
}

.bob-payment-iframe {
    width: 100%;
    min-height: 500px;
    border: none;
}

/* Payment Result */
.bob-payment-result {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
}

.bob-result-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.bob-result-success h3 {
    color: #27ae60;
    margin-bottom: 10px;
}

.bob-result-error h3 {
    color: #e74c3c;
    margin-bottom: 10px;
}

.bob-result-message {
    color: #4b5563;
    font-size: 15px;
    margin-bottom: 20px;
}

.bob-result-details {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    display: inline-block;
    text-align: left;
}

.bob-result-details p {
    margin: 5px 0;
    font-size: 14px;
    color: #374151;
}

/* Error */
.bob-payment-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
}

.bob-payment-error p {
    margin: 0;
    color: #dc2626;
    font-size: 14px;
}

/* Admin Styles */
.bob-admin-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 520px) {
    .bob-payment-wrapper {
        margin: 15px;
    }

    .bob-payment-header {
        padding: 20px 15px 12px;
    }

    .bob-payment-form {
        padding: 15px;
    }

    .bob-total-amount {
        font-size: 20px;
    }
}
