/* CS Pro Payment Page Styles */

/* Footer Hide */
.footer {
    display: none;
}

/* Body Styles */
body {
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    padding-top: 60px;
    background: #F5F7FF;
    color: #0D0C12;
}

/* Font Host */
.font-host {
    font-family: 'Host Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-feature-settings: normal;
    font-variation-settings: normal;
}

/* Main Grid Container */
.payment-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 2rem 2rem 2rem;
    display: grid;
    grid-template-columns: minmax(0, 456px) minmax(0, 456px);
    gap: 80px;
    align-items: start;
    justify-content: center;
}

/* Right Side - Info Card (sticky) */
.payment-info-card-wrapper {
    position: sticky;
    top: 15px;
}

/* Payment Step Styles */
.payment-step {
    border: none;
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: visible;
    transition: all 0.3s ease;
}

.payment-step:last-child {
    margin-bottom: 0;
}

.payment-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.payment-step.completed .payment-step-header {
    cursor: default;
}

.payment-step-left {
    display: flex;
    align-items: normal;
    justify-content: space-between;
    width: 100%;
    gap: 4px;
}

.payment-step-title {
    color: var(--Neutral-700, #505060);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

.payment-step-title-number {
    color: var(--Neutral-700, #505060);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    margin-left: 5px;
}

.payment-step-content {
    max-height: 0;
    transition: max-height 0.3s ease;
    padding: 0;
    margin-left: 22px;
}

@media (max-width: 768px) {
    .payment-step-content {
        margin-left: 0;
    }
}

.payment-step.active .payment-step-content {
    max-height: 2000px;
}

.payment-step-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    flex-shrink: 0;
}

.payment-lock-icon {
    color: #505060;
    font-size: 20px;
}

.payment-step-header--locked {
    border-bottom: 1px solid #E8E8F0;
}

/* Account Info Section */
.account-info-section--animated {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.account-info-section--animated.account-info-section--visible {
    opacity: 1;
    transform: translateY(0);
}

.account-info-text {
    margin-bottom: 1.5rem;
    color: var(--Neutral-600, #78788B);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin-top: 4px;
}

.account-info-text a {
    color: var(--Pro-500, #0049FD);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    text-decoration: underline;
}

.account-email {
    white-space: nowrap;
    color: var(--Neutral-600, #78788B);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    margin-left: 22px;
}

.btn-change-email {
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    color: var(--System-blue-500, #2563EB);
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

.btn-change-email:hover {
    color: #08389e;
}

/* Social Login Section */
.social-login-section {
    margin: 16px 0 12px 0;
}

.social-login-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: stretch;
    width: 100%;
}

.social-login-buttons a {
    flex: 1 1 0;
    height: 40px;
    padding: 8px 24px;
    border-radius: 222px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-decoration: none;
    transition: box-shadow 0.2s ease;
    border: 1px solid #FFF;
    background: linear-gradient(180deg, rgba(179, 176, 201, 0.00) 0%, rgba(179, 176, 201, 0.12) 100%), #FFF !important;
    box-shadow: 0 1px 2px 0 rgba(80, 80, 96, 0.12), 0 0 0 1px rgba(213, 213, 224, 0.60);
}

.social-login-buttons i,
.social-login-buttons svg {
    width: 24px;
    height: 24px;
}

.social-login-buttons a:hover {
    box-shadow: 0 1px 2px 0 rgb(80 80 96 / 36%), 0 0 0 1px rgb(213 213 224 / 83%);
}

.social-login-or-text {
    color: var(--Neutral-500, #9C9CAC);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
}

.email-login-form-title {
    color: var(--Neutral-800, #2F2F3C);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

.email-login-form .form-control {
    height: 40px;
    box-sizing: border-box;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: var(--Neutral-50, #FFF);
    box-shadow: 0 0 0 1px rgba(213, 213, 224, 0.60);
    color: var(--Neutral-800, #2F2F3C);
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.email-login-form .step-actions {
    margin: 16px 0 0.5rem 0;
}

.email-login-form .form-control:focus {
    border-color: #0049FD;
    outline: none;
    box-shadow: 0 0 0 1px #0049FD;
    background-color: #FFFFFF;
}

.email-login-form .form-control::placeholder {
    color: #9C9CAC;
    opacity: 1;
}

/* Payment Header */
.payment-header-container {
    display: flex;
    flex-direction: column;
}

.payment-header-title {
    background: linear-gradient(180deg, #0D0C12 0%, rgba(13, 12, 18, 0.72) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
    margin: 0;
    letter-spacing: -0.06px;
}

.payment-header-line {
    width: 100%;
    height: 1px;
    background: #E8E8F0;
    border: none;
    margin: 16px 0;
}

/* CS Pro Payment Header */
.cspro-payment-header {
    padding: 20px 0;
    text-align: center;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px solid var(--Neutral-200, #E8E8F0);
    background: #FFF;
    z-index: 1000;
}

.cspro-payment-header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cspro-payment-header-image {
    max-width: 100%;
    height: auto;
}

/* Step Actions */
.step-actions {
    display: flex;
    gap: 1rem;
    margin: 1.75rem 0 0.5rem 0;
    justify-content: center;
}

.step-btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 222px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 40px;
}

.step-actions .step-btn {
    flex: 0 0 auto;
    width: 100%;
}

.step-actions .step-btn-primary {
    width: 100%;
    margin-left: 0;
}

.step-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.step-btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 0;
    color: #FFFFFF;
    border: none;
    background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.00) 100%
    ), #0049FD;
    box-shadow: 0 1px 2px 0 rgba(45, 58, 87, 0.24), 0 0 0 1px #0037B3;
}

.step-btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.00) 100%
    ), linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.00) 0%,
            rgba(255, 255, 255, 0.24) 100%
    ), #0049FD;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.step-btn-primary:hover:not(:disabled)::after {
    opacity: 1;
}

/* Payment Form */
.event-application__payment-frame {
    width: 100%;
    min-height: 600px;
    border: none;
}

.payment-form-content {
    border-radius: 24px;
    background: #FFF;
    box-shadow: 0 2.573px 5.146px -1.287px rgba(14, 63, 126, 0.02), 0 1.715px 3.431px -0.858px rgba(14, 63, 126, 0.03), 0 0.858px 1.715px -0.429px rgba(14, 63, 126, 0.04), 0 0 0 0.858px rgba(14, 63, 126, 0.04);
}

/* Consent Checkbox */
.payment-consent-hint {
    border-radius: 8px;
    background: var(--System-yellow-50, #FFFBEB);
    color: var(--System-yellow-700, #A16207);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    display: flex;
    padding: 8px;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
}

.payment-consent-hint-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    font-size: 20px;
}

.cspro-consent-label {
    color: var(--Neutral-600, #78788B);
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 0;
}

.cspro-consent-label a {
    color: #0049FD;
}

.cspro-consent-label a:hover {
    text-decoration: underline;
}

.cspro-consent-checkbox-container {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cspro-consent-checkbox {
    width: 24px;
    height: 24px;
    display: inline-block;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    border-radius: 4px;
    background: var(--Neutral-50, #FFF);
    border: none;
    outline: none;
    box-shadow: 0 0 0 1px rgba(213, 213, 224, 0.90), 0 4px 8px rgba(0, 0, 0, 0.05);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    position: relative;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.cspro-consent-checkbox-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.9);
    transform-origin: center;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.cspro-consent-checkbox:checked {
    background: #0057FF;
    box-shadow: none;
}

.cspro-consent-checkbox:checked + .cspro-consent-checkbox-icon {
    opacity: 1;
    transform: scale(1);
}

/* CS Pro Payment Info Card */
.cspro-payment-info-card {
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 3px 6px -1.5px rgba(14, 63, 126, 0.02), 0 2px 4px -1px rgba(14, 63, 126, 0.03), 0 1px 2px -0.5px rgba(14, 63, 126, 0.04), 0 0 0 1px rgba(14, 63, 126, 0.04);
    overflow: hidden;
}

.cspro-payment-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cspro-payment-summary-badge {
    display: inline-block;
    padding: 6px 12px;
    width: fit-content;
    border-radius: 22px;
    background: var(--Neutral-50, #FFF);
    box-shadow: 0 3px 6px -1.5px rgba(14, 63, 126, 0.02), 0 2px 4px -1px rgba(14, 63, 126, 0.03), 0 1px 2px -0.5px rgba(14, 63, 126, 0.04), 0 0 0 1px rgba(14, 63, 126, 0.04);
    color: var(--Pro-900, #002569);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.24px;
}

/* Mobile compact summary bar — only shown on mobile */
.cspro-payment-mobile-summary {
    display: none;
}

/* Mobile expand modal close button — only shown on mobile */
.cspro-payment-mobile-close {
    display: none;
}

/* Mobile backdrop — only used on mobile */
.cspro-payment-mobile-backdrop {
    display: none;
}

.cspro-payment-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.cspro-payment-title {
    margin: 0;
    letter-spacing: -0.02em;
    color: var(--Neutral-900, #0D0C12);
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
}

.cspro-payment-title-subtitle {
    color: var(--Neutral-700, #505060);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.cspro-payment-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0 0 8px 0;
}

.cspro-payment-detail-item--last {
    margin-bottom: 0;
}

.cspro-payment-item-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.cspro-payment-icon {
    font-size: 24px;
    color: #0049FD;
    flex-shrink: 0;
    margin-top: 2px;
}

.cspro-payment-detail-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cspro-payment-detail-title {
    color: #78788B;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin: 0;
}

.cspro-payment-detail-description {
    color: #2F2F3C;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    margin: 0;
}

.cspro-payment-discount-badge-container {
    margin-bottom: 16px;
}

.cspro-payment-default-discount-notes {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cspro-payment-discount-badge {
    background: linear-gradient(95.12deg, #6E00FF 0%, #AC6CFF 100%);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    padding: 12px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(110, 0, 255, 0.2);
}

.cspro-payment-total-price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.cspro-payment-left-section {
    display: flex;
    flex-direction: column;
}

.cspro-payment-total-label {
    margin: 0;
    color: var(--Neutral-800, #2F2F3C);
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
}

.cspro-payment-price-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cspro-payment-price-values {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cspro-payment-original-price {
    font-size: 20px;
    text-decoration: line-through;
    color: #B8B8C7;
    font-weight: 700;
}

.cspro-payment-discounted-price {
    color: #0049FD;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

/* Sub Card Text (below pricing) */
.cspro-payment-sub-card-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid var(--Neutral-200, #E8E8F0);
    padding: 16px 0;
}

.cspro-payment-sub-card-icon {
    font-size: 16px;
    color: #0049FD;
    flex-shrink: 0;
}

.cspro-payment-sub-card-text span {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #78788B;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .payment-grid-container {
        grid-template-columns: 1fr 350px;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .cspro-payment-card-body {
        padding: 20px;
    }

    .cspro-payment-title {
        font-size: 22px;
    }

    .cspro-payment-discounted-price {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .payment-grid-container {
        grid-template-columns: 1fr;
        padding: 1rem 1rem 200px 1rem;
    }

    .payment-info-card-wrapper {
        position: static;
        top: auto;
        order: unset;
    }

    .payment-steps-card {
        order: 1;
    }

    /* Mobile compact summary — fixed bottom bar */
    .cspro-payment-mobile-summary {
        display: flex;
        flex-direction: column;
        gap: 4px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9997;
        padding: 16px 24px 20px 24px;
        background: var(--Neutral-50, #FFF);
        border: none;
        text-align: left;
        cursor: pointer;
        box-shadow: 0 -3px 6px -1.5px rgba(14, 63, 126, 0.06),
                    0 -2px 4px -1px rgba(14, 63, 126, 0.06),
                    0 -1px 2px -0.5px rgba(14, 63, 126, 0.06),
                    0 0 0 1px rgba(14, 63, 126, 0.04);
        transition: opacity 0.2s ease;
    }

    .cspro-payment-mobile-summary-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .cspro-payment-mobile-summary-icon {
        color: #78788B;
        font-size: 22px;
    }

    .cspro-payment-mobile-summary-title {
        color: var(--Neutral-900, #0D0C12);
        font-size: 20px;
        font-weight: 500;
        line-height: 28px;
        letter-spacing: -0.02em;
    }

    .cspro-payment-mobile-summary-price {
        color: var(--Pro-500, #0049FD);
        font-size: 24px;
        font-weight: 700;
        line-height: 32px;
        letter-spacing: -0.05em;
    }

    .cspro-payment-mobile-summary-notes {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
        margin-top: 4px;
    }

    .cspro-payment-mobile-summary-bottom-row {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 16px;
        margin-top: 4px;
    }

    .cspro-payment-mobile-summary-prices {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .cspro-payment-mobile-summary-payment-note {
        color: #78788B;
        font-family: 'Inter', sans-serif;
        font-size: 12px;
        font-weight: 400;
        line-height: 16px;
        text-align: right;
    }

    .cspro-payment-mobile-summary-price--old {
        color: #B8B8C7;
        font-size: 16px;
        font-weight: 500;
        line-height: 20px;
        letter-spacing: -0.02em;
        text-decoration: line-through;
    }

    /* Hide the desktop sticky card by default on mobile; modal slides in via .is-open */
    .cspro-payment-info-card {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        max-height: 85vh;
        overflow-y: auto;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -3px 6px -1.5px rgba(14, 63, 126, 0.06),
                    0 -2px 4px -1px rgba(14, 63, 126, 0.06),
                    0 -1px 2px -0.5px rgba(14, 63, 126, 0.06),
                    0 0 0 1px rgba(14, 63, 126, 0.04);
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    .payment-info-card-wrapper.is-open .cspro-payment-info-card {
        transform: translateY(0);
    }

    /* Hide compact bar when modal is open */
    .payment-info-card-wrapper.is-open .cspro-payment-mobile-summary {
        opacity: 0;
        pointer-events: none;
    }

    /* Backdrop */
    .cspro-payment-mobile-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(4, 8, 24, 0.45);
        z-index: 9998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .payment-info-card-wrapper.is-open .cspro-payment-mobile-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    /* Close button inside the modal */
    .cspro-payment-mobile-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        padding: 0;
        border: none;
        border-radius: 999px;
        background: transparent;
        color: #2F2F3C;
        font-size: 22px;
        cursor: pointer;
        z-index: 1;
    }

    .cspro-payment-card-body {
        padding: 16px 24px;
        gap: 16px;
    }

    .cspro-payment-summary-badge {
        font-size: 12px;
        padding: 4px 10px;
    }

    .cspro-payment-title {
        font-size: 20px;
    }

    .cspro-payment-detail-item {
        padding: 10px 0;
    }

    .cspro-payment-icon {
        font-size: 18px;
    }

    .cspro-payment-detail-title,
    .cspro-payment-detail-description {
        font-size: 13px;
    }

    .cspro-payment-total-label {
        font-size: 14px;
    }

    .cspro-payment-discounted-price {
        font-size: 22px;
    }

    .cspro-payment-total-price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cspro-payment-price-display {
        align-items: flex-start;
        width: 100%;
    }

    .cspro-payment-price-values {
        align-items: center;
    }

    .cspro-payment-sub-card-text {
        text-align: center;
        padding: 14px;
    }

    body.cspro-payment-no-scroll {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .payment-grid-container {
        padding: 0.75rem 0.75rem 200px 0.75rem;
    }

    .payment-steps-card {
        padding: 1rem;
    }

    .cspro-consent-checkbox,
    .cspro-consent-checkbox-icon {
        width: 20px;
        height: 20px;
    }

    .cspro-consent-checkbox-icon {
        font-size: 14px;
    }

    .cspro-payment-card-body {
        padding: 14px;
        gap: 14px;
    }

    .cspro-payment-title {
        font-size: 18px;
    }

    .cspro-payment-discounted-price {
        font-size: 20px;
    }
}

/* Registered Account Message Styles */
.registered-account-message-text {
    margin-bottom: 24px;
    color: var(--Neutral-600, #78788B);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

/* ============================================================
   Student Discount
   ============================================================ */

/* Step 1 hint shown under the email form when ?student_discount=1 */
.cspro-student-step1-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    margin-top: 16px;
    background: #E9F0FF;
    border: 0;
    border-radius: 8px;
    color: #0037B3;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

.cspro-student-step1-hint i {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #FFFFFF;
    color: #0037B3;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 6px -1.5px rgba(14, 63, 126, 0.02),
                0 2px 4px -1px rgba(14, 63, 126, 0.03),
                0 1px 2px -0.5px rgba(14, 63, 126, 0.04),
                0 0 0 1px rgba(14, 63, 126, 0.04);
}

.cspro-student-step1-hint-content {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cspro-student-step1-hint-text {
    flex: 1 1 0;
    min-width: 0;
}

.cspro-student-step1-hint-text strong {
    font-weight: 700;
    white-space: nowrap;
}

.cspro-student-step1-hint-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    background: #FFFFFF;
    border-radius: 4px;
    color: #0037B3;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.24px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 3px 6px -1.5px rgba(14, 63, 126, 0.02),
                0 2px 4px -1px rgba(14, 63, 126, 0.03),
                0 1px 2px -0.5px rgba(14, 63, 126, 0.04),
                0 0 0 1px rgba(14, 63, 126, 0.04);
}

@media (max-width: 768px) {
    .cspro-student-step1-hint {
        align-items: flex-start;
    }

    .cspro-student-step1-hint-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cspro-student-step1-hint-tag {
        align-self: flex-start;
    }
}

.cspro-student-help-link {
    background: none;
    border: 0;
    padding: 0;
    color: #2D73FF;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.24px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.cspro-student-help-link i {
    font-size: 16px;
    line-height: 1;
}

.cspro-student-help-link:hover {
    text-decoration: none;
}

.cspro-student-help-link span {
    white-space: nowrap;
}

/* Outer card */
.cspro-student-card {
    border: 1px solid #E8E8F0;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cspro-student-card-header {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 16px;
    align-items: flex-start;
}

.cspro-student-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #FFFFFF;
    color: #0037B3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 3px 6px -1.5px rgba(14, 63, 126, 0.02),
    0 2px 4px -1px rgba(14, 63, 126, 0.03),
    0 1px 2px -0.5px rgba(14, 63, 126, 0.04),
    0 0 0 1px rgba(14, 63, 126, 0.04);
}

/* Inline alert below the card header — student-discount price preview */
.cspro-student-card-alert {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 8px 16px;
    background: #E9F0FF;
    border-radius: 8px;
}

.cspro-student-card-alert-text {
    flex: 1 1 0;
    min-width: 0;
    color: #0037B3;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

.cspro-student-card-alert-text p {
    margin: 0;
    line-height: 16px;
}

.cspro-student-card-alert-text strong {
    font-weight: 700;
}

.cspro-student-card-alert-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    background: #FFFFFF;
    border-radius: 4px;
    color: #0037B3;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.24px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 3px 6px -1.5px rgba(14, 63, 126, 0.02),
                0 2px 4px -1px rgba(14, 63, 126, 0.03),
                0 1px 2px -0.5px rgba(14, 63, 126, 0.04),
                0 0 0 1px rgba(14, 63, 126, 0.04);
}

.cspro-student-card-title-block {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cspro-student-card-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    margin: 0;
    color: #2F2F3C;
}

.cspro-student-card-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #78788B;
    margin: 0;
    line-height: 16px;
}

.cspro-student-help-btn {
    background: none;
    border: 0;
    padding: 0;
    color: #2A4FF7;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    white-space: nowrap;
    align-self: center;
}

.cspro-student-help-btn:hover {
    text-decoration: underline;
}

/* Dropzone */
.cspro-student-dropzone {
    border: 1px solid #E8E8F0;
    border-radius: 16px;
    height: 88px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #FFFFFF;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.cspro-student-dropzone:hover,
.cspro-student-dropzone--dragover {
    border-color: #0049FD;
    background: #F4F5FF;
}

.cspro-student-dropzone-icon {
    width: 40px;
    height: 40px;
    background: transparent;
    color: #0049FD;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.cspro-student-dropzone-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 0 1 auto;
}

.cspro-student-dropzone-text span {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #505060;
}

.cspro-student-dropzone-text small {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #78788B;
}

.cspro-student-dropzone-link {
    background: none;
    border: 0;
    padding: 0;
    color: #0049FD;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
}

.cspro-student-dropzone-link:hover {
    text-decoration: underline;
}

/* Filled file row */
.cspro-student-file-row {
    border: 1px solid #E8E8F0;
    border-radius: 16px;
    padding: 28px 12px 28px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-height: 88px;
}

.cspro-student-file-icon {
    color: #DC3545;
    font-size: 26px;
}

.cspro-student-file-name {
    flex: 1;
    font-size: 14px;
    color: #2F2F3C;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cspro-student-file-change {
    background: none;
    border: 0;
    padding: 0;
    color: #2F2F3C;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.cspro-student-file-change:hover {
    text-decoration: underline;
}

/* Verify button */
.cspro-student-verify-btn {
    width: 100%;
    height: 32px;
    border: 0;
    border-radius: 222px;
    padding: 8px 12px;
    background: #0049FD;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cspro-student-verify-btn:disabled {
    background: #E8E8F0;
    color: #9C9CAC;
    cursor: not-allowed;
}

/* Error */
.cspro-student-error {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.cspro-student-error-icon {
    color: #EF4444;
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cspro-student-error-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #505060;
}

.cspro-student-error-text strong {
    color: #991B1B;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.cspro-student-error-contact {
    text-align: center;
    font-size: 13px;
    color: #78788B;
    margin: 0;
}

.cspro-student-error-contact a {
    color: #2A4FF7;
    text-decoration: none;
}

.cspro-student-card:has(.cspro-student-error-contact:not([hidden])) {
    padding-bottom: 8px;
}

/* Success */
.cspro-student-success {
    background: #ECFDF3;
    border: 1px solid #A6F4C5;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cspro-student-success-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #12B76A;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.cspro-student-success-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.cspro-student-success-text strong {
    color: #027A48;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.cspro-student-success-amount {
    display: inline-block;
    align-self: flex-start;
    background: #A6F4C5;
    color: #05603A;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.24px;
    padding: 2px 8px;
    border-radius: 4px;
}

.cspro-student-remove-btn {
    height: 32px;
    background: linear-gradient(180deg, rgba(179, 176, 201, 0) 0%, rgba(179, 176, 201, 0.12) 100%), #FFFFFF;
    border: 1px solid #FFFFFF;
    border-radius: 16px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #2F2F3C;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(80, 80, 96, 0.12),
                0 0 0 1px rgba(213, 213, 224, 0.6);
    transition: box-shadow 0.2s ease;
    display: flex;
    align-items: center;
}

.cspro-student-remove-btn:hover {
    box-shadow: 0 1px 2px 0 rgba(80, 80, 96, 0.36),
                0 0 0 1px rgba(213, 213, 224, 0.83);
}

/* Right-side card: applied student badge */
.cspro-payment-student-badge {
    display: inline-flex;
    padding: 4px 8px;
    gap: 6px;
    align-items: center;
    align-self: flex-start;
    border-radius: 8px;
    border: 1px solid #A6F4C5;
    background: #ECFDF3;
    color: #027A48;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

.cspro-payment-student-badge i {
    font-size: 16px;
    color: #12B76A;
    line-height: 1;
}

/* Right-side card: student-discount preview shown before the user uploads belge */
.cspro-payment-student-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #E9F0FF;
    border: 1px solid #A7C3FF;
    border-radius: 12px;
}

.cspro-payment-student-preview-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #FFFFFF;
    color: #0037B3;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 6px -1.5px rgba(14, 63, 126, 0.02),
                0 2px 4px -1px rgba(14, 63, 126, 0.03),
                0 1px 2px -0.5px rgba(14, 63, 126, 0.04),
                0 0 0 1px rgba(14, 63, 126, 0.04);
}

.cspro-payment-student-preview-content {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cspro-payment-student-preview-title {
    margin: 0;
    color: #0037B3;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.cspro-payment-student-preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cspro-payment-student-preview-label {
    color: #2F2F3C;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

.cspro-payment-student-preview-prices {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.cspro-payment-student-preview-old-price {
    color: #B8B8C7;
    font-size: 16px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: -0.04px;
    text-decoration: line-through;
}

.cspro-payment-student-preview-price {
    color: #0037B3;
    font-size: 20px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: -0.05px;
}

@media (max-width: 768px) {
    .cspro-payment-student-preview-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Modal */
.cspro-student-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cspro-student-modal[hidden] {
    display: none;
}

.cspro-student-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.cspro-student-modal-dialog {
    position: relative;
    width: min(552px, 92vw);
    background: #FFFFFF;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    box-shadow: 0 0 0 1px rgba(14, 63, 126, 0.04),
    0 2px 4px -1px rgba(14, 63, 126, 0.05),
    0 4px 8px -2px rgba(14, 63, 126, 0.04),
    0 6px 12px -3px rgba(14, 63, 126, 0.03),
    0 8px 16px -4px rgba(14, 63, 126, 0.02);
}

.cspro-student-modal-title {
    text-align: center;
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    letter-spacing: -0.25px;
    color: #2F2F3C;
}

.cspro-student-modal-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.cspro-student-modal-steps li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: center;
    font-size: 16px;
    font-weight: 400;
    color: #505060;
    line-height: 24px;
}

.cspro-student-modal-step-num {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #E9F0FF;
    color: #0049FD;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: -0.08px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cspro-student-modal-steps li > span:last-child {
    flex: 1 0 0;
    min-width: 0;
}

.cspro-student-modal-steps a {
    color: #2D73FF;
    text-decoration: none;
    word-break: break-all;
}

.cspro-student-modal-steps a:hover {
    text-decoration: underline;
}

.cspro-student-modal-steps strong {
    font-weight: 600;
}

.cspro-student-modal-ok {
    margin-top: 0;
    width: 100%;
    height: 48px;
    border: 1px solid #FFFFFF;
    background: linear-gradient(180deg, rgba(179, 176, 201, 0) 0%, rgba(179, 176, 201, 0.12) 100%), #FFFFFF;
    border-radius: 24px;
    padding: 8px 24px;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: -0.08px;
    color: #2F2F3C;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(80, 80, 96, 0.12),
    0 0 0 1px rgba(213, 213, 224, 0.6);
    transition: box-shadow 0.2s ease;
}

.cspro-student-modal-ok:hover {
    box-shadow: 0 1px 2px 0 rgba(80, 80, 96, 0.36),
    0 0 0 1px rgba(213, 213, 224, 0.83);
}
