/* RareBreed University - Razorpay Checkout Modal Styles
   Uses RareBreed's signature Ice Blue shade (#0392ae / #00e5ff) from the website */

.rbu-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 16px;
    box-sizing: border-box;
}

.rbu-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.rbu-modal-card {
    background: #0b0c10;
    border: 1px solid rgba(3, 146, 174, 0.4);
    border-radius: 1.2em;
    width: 100%;
    max-width: 480px;
    color: #ffffff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 45px rgba(3, 146, 174, 0.22);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    position: relative;
    font-family: 'Thicccboi', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.rbu-modal-overlay.active .rbu-modal-card {
    transform: translateY(0) scale(1);
}

.rbu-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #a3a3a3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 10;
}

.rbu-modal-close:hover {
    background: rgba(3, 146, 174, 0.25);
    border-color: rgba(3, 146, 174, 0.5);
    color: #00e5ff;
}

.rbu-modal-header {
    padding: 24px 24px 18px;
    border-bottom: 1px solid rgba(3, 146, 174, 0.2);
    background: linear-gradient(180deg, rgba(3, 146, 174, 0.16) 0%, rgba(11, 12, 16, 0) 100%);
}

.rbu-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(3, 146, 174, 0.15);
    color: #00d2ee;
    border: 1px solid rgba(3, 146, 174, 0.45);
    margin-bottom: 12px;
}

.rbu-modal-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #ffffff;
    line-height: 1.3;
}

.rbu-modal-subtitle {
    font-size: 13px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
}

.rbu-price-box {
    margin-top: 14px;
    background: rgba(3, 146, 174, 0.08);
    border: 1px solid rgba(3, 146, 174, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: inset 0 0 15px rgba(3, 146, 174, 0.08);
}

.rbu-price-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.rbu-price-value {
    font-size: 22px;
    font-weight: 800;
    color: #00e5ff;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.rbu-price-badge {
    font-size: 11px;
    color: #ffffff;
    font-weight: 600;
    background: rgba(3, 146, 174, 0.3);
    border: 1px solid rgba(0, 229, 255, 0.35);
    padding: 2px 8px;
    border-radius: 6px;
}

.rbu-modal-body {
    padding: 20px 24px;
}

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

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

.rbu-form-label span.req {
    color: #ef4444;
}

.rbu-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.rbu-input:focus {
    border-color: #0392ae;
    background: rgba(3, 146, 174, 0.08);
    box-shadow: 0 0 0 3px rgba(3, 146, 174, 0.28);
}

.rbu-input::placeholder {
    color: #64748b;
}

.rbu-alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.rbu-input.is-invalid {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

.rbu-input.is-valid {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.06) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

.rbu-field-error {
    color: #fca5a5;
    font-size: 11.5px;
    font-weight: 500;
    margin-top: 5px;
    display: none;
    align-items: center;
    gap: 4px;
}

.rbu-field-error.active {
    display: flex;
}

.rbu-field-error::before {
    content: '⚠️';
    font-size: 10px;
}

/* Pay Button - Ice-blue signature style */
.rbu-pay-btn {
    width: 100%;
    background: linear-gradient(135deg, #0392ae 0%, #02748b 100%);
    color: #ffffff;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 1em;
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.rbu-pay-btn:hover {
    background: linear-gradient(135deg, #04a5c5 0%, #038da8 100%);
    color: #ffffff;
}

.rbu-pay-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.rbu-security-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(3, 146, 174, 0.15);
    font-size: 11px;
    color: #94a3b8;
}

.rbu-security-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Spinner */
.rbu-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: rbu-spin 0.8s linear infinite;
    display: none;
}

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

/* Success State View */
.rbu-success-card {
    text-align: center;
    padding: 30px 24px 26px;
    display: none;
}

.rbu-success-icon {
    width: 64px;
    height: 64px;
    background: rgba(3, 146, 174, 0.15);
    border: 2px solid #0392ae;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #00e5ff;
    font-size: 30px;
    box-shadow: 0 0 25px rgba(3, 146, 174, 0.35);
}

.rbu-success-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.rbu-success-desc {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.rbu-receipt-details {
    background: rgba(3, 146, 174, 0.06);
    border: 1px solid rgba(3, 146, 174, 0.25);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 12px;
}

.rbu-receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.rbu-receipt-row:last-child {
    margin-bottom: 0;
}

.rbu-receipt-key {
    color: #94a3b8;
}

.rbu-receipt-val {
    color: #ffffff;
    font-weight: 600;
    font-family: monospace;
}

.rbu-btn-done {
    background: linear-gradient(135deg, #0392ae 0%, #02748b 100%);
    color: #ffffff;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 1em;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: 0 4px 16px rgba(3, 146, 174, 0.35);
}

.rbu-btn-done:hover {
    background: linear-gradient(135deg, #04a5c5 0%, #038da8 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(3, 146, 174, 0.6);
}

/* Mobile Responsive */
@media (max-width: 500px) {
    .rbu-modal-overlay {
        padding: 12px;
    }

    .rbu-modal-card {
        max-height: 92vh;
        border-radius: 1.1em;
    }

    .rbu-modal-header {
        padding: 20px 18px 14px;
    }

    .rbu-modal-title {
        font-size: 19px;
    }

    .rbu-modal-subtitle {
        font-size: 12px;
    }

    .rbu-price-box {
        margin-top: 10px;
        padding: 10px 14px;
    }

    .rbu-price-value {
        font-size: 20px;
    }

    .rbu-modal-body {
        padding: 16px 18px;
    }

    .rbu-form-group {
        margin-bottom: 12px;
    }

    .rbu-input {
        padding: 11px 12px;
        font-size: 13.5px;
    }

    .rbu-pay-btn {
        padding: 12px 20px;
        font-size: 13px;
    }

    .rbu-modal-close {
        top: 14px;
        right: 14px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}