/* The theme's hidden overflow otherwise gives the sticky cards a scroll container. */
.page-wrapper {
    overflow-x: clip !important;
}

.betech-enrollment {
    --enrollment-navy: #102947;
    --enrollment-text: #20344e;
    --enrollment-muted: #53647a;
    --enrollment-border: #d5dfe9;
    --enrollment-orange: #b63818;
    --enrollment-header-height: 66px;
    padding-block-end: clamp(44px, 7vw, 88px);
    color: var(--enrollment-text);
    background: #f3f6fa;
}

.betech-enrollment [hidden] {
    display: none !important;
}

.betech-enrollment__shell {
    width: min(calc(100% - 36px), 1120px);
    margin-inline: auto;
}

.betech-enrollment__intro {
    padding-block: calc(var(--enrollment-header-height) + clamp(28px, 4vw, 49px)) clamp(62px, 6vw, 83px);
    background:
        linear-gradient(rgb(0 0 0 / 75%), rgb(0 0 0 / 75%)),
        url("../../upload/enrollment-banner-1600x250.jpg") center / cover no-repeat #111;
}

.betech-enrollment__intro h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(26px, 4vw, 45px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -.025em;
}

.betech-enrollment__intro p {
    max-width: 550px;
    margin: 0;
    color: #dde6f1;
    font-size: 15px;
    line-height: 1.65;
}

.betech-enrollment__layout {
    display: grid;
    align-items: start;
    gap: clamp(18px, 2.6vw, 32px);
    margin-top: -32px;
}

.betech-enrollment__card {
    min-width: 0;
    padding: clamp(19px, 2.5vw, 32px);
    border: 1px solid #dce5ee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgb(16 41 71 / 60%);
}

.betech-enrollment__card-header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 24px;
}

.betech-enrollment__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    color: #9f3217;
    background: #fff0e9;
    font-size: 22px;
    line-height: 1;
}

.betech-enrollment__icon--payment {
    color: #244a77;
    background: #ecf3fb;
}

.betech-enrollment__card-header h2 {
    margin: 0 0 3px;
    color: var(--enrollment-navy);
    font-size: clamp(18px, 2vw, 23px);
    font-weight: 700;
    line-height: 1.2;
}

.betech-enrollment__card-header p {
    margin: 0;
    color: var(--enrollment-muted);
    font-size: 13px;
    line-height: 1.45;
}

.betech-enrollment__form {
    display: grid;
    gap: 17px 16px;
}

.betech-enrollment__field {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.betech-enrollment__field--wide {
    grid-column: 1 / -1;
}

.betech-enrollment__field label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.betech-enrollment__field input,
.betech-enrollment__field select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 9px 12px;
    border: 1px solid #8395a9;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    color: var(--enrollment-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.35;
}

.betech-enrollment__field input::placeholder,
.betech-enrollment__field select:invalid {
    color: #647489;
    opacity: 1;
}

.betech-enrollment__field input[readonly] {
    border-color: var(--enrollment-border);
    background: #f3f6fa;
    color: var(--enrollment-navy);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.betech-enrollment__discount-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.betech-enrollment__discount-row input[readonly] {
    border-color: #c9e2d4;
    background: #f0f8f4;
    color: #155b3e;
}

.betech-enrollment__discount {
    flex: none;
    padding: 4px 8px;
    border: 1px solid #f2c5b5;
    border-radius: 20px;
    background: #fff0e9;
    color: #8c2d15;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.55;
    white-space: nowrap;
}

.betech-enrollment__form:has(#betech-mode:valid) .betech-enrollment__discount {
    animation: betech-enrollment-pulse 2.2s ease-out 2;
}

@keyframes betech-enrollment-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(182, 56, 24, 0); }
    35% { box-shadow: 0 0 0 4px rgba(182, 56, 24, .18); }
    75% { box-shadow: 0 0 0 7px rgba(182, 56, 24, 0); }
}

.betech-enrollment__actions {
    margin-top: 5px;
}

.betech-enrollment__button {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #fff;
    background: var(--enrollment-orange);
    box-shadow: 0 6px 14px rgba(134, 44, 22, .17);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    transition: background-color .2s ease, box-shadow .2s ease;
}

.betech-enrollment__button:hover:not(:disabled) {
    background: #982d13;
    box-shadow: 0 8px 17px rgba(134, 44, 22, .21);
}

.betech-enrollment__button:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.betech-enrollment :focus-visible {
    outline: 3px solid #a43e24;
    outline-offset: 2px;
}

.betech-enrollment__status,
.betech-enrollment__noscript {
    color: var(--enrollment-muted);
    font-size: 13px;
    line-height: 1.45;
}

.betech-enrollment__status:not(:empty),
.betech-enrollment__noscript {
    margin: 10px 0 0;
}

.betech-enrollment__status[data-state="success"] {
    color: #155b3e;
}

.betech-enrollment__status[data-state="error"] {
    color: #a52523;
}

.betech-enrollment__payment {
    scroll-margin-top: calc(var(--enrollment-header-height) + 14px);
}

.betech-enrollment__payment[data-enrolled] {
    border-color: #6aa58c;
}

.betech-enrollment__summary {
    margin: 0;
    color: var(--enrollment-muted);
    font-size: 14px;
}

.betech-enrollment__summary div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 3px 2px;
}

.betech-enrollment__summary dt {
    font-weight: 500;
}

.betech-enrollment__summary dd {
    margin: 0;
    color: var(--enrollment-navy);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.betech-enrollment__summary .betech-enrollment__saving {
    color: #155b3e;
}

.betech-enrollment__summary .betech-enrollment__total {
    align-items: center;
    margin-top: 11px;
    padding: 9px 12px;
    border: 1px solid #d5e1ee;
    border-radius: 8px;
    background: #f0f5fb;
    color: var(--enrollment-navy);
}

.betech-enrollment__total dd {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    line-height: 1.25;
}

.betech-enrollment__advance {
    margin-top: 17px;
    padding: 13px;
    border: 1px solid var(--enrollment-border);
    border-radius: 10px;
    background: #f8fbfd;
}

.betech-enrollment__advance label {
    display: block;
    color: var(--enrollment-navy);
    font-size: 13px;
    font-weight: 600;
}

.betech-enrollment__advance label span {
    color: var(--enrollment-muted);
    font-weight: 400;
}

.betech-enrollment__advance p {
    margin: 4px 0 10px;
    color: var(--enrollment-muted);
    font-size: 12px;
    line-height: 1.45;
}

.betech-enrollment__advance-controls {
    display: flex;
    align-items: center;
    gap: 7px;
}

.betech-enrollment__advance-controls > span {
    font-size: 17px;
    font-weight: 600;
}

.betech-enrollment__advance-controls input {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 7px 9px;
    border: 1px solid #8395a9;
    border-radius: 7px;
    background: #fff;
    color: var(--enrollment-navy);
    font: 500 14px/1.3 Poppins, sans-serif;
}

.betech-enrollment__advance-controls button {
    flex: none;
    min-height: 42px;
    padding: 8px 11px;
    border: 0;
    border-radius: 7px;
    background: #184975;
    color: #fff;
    font: 600 12px/1.3 Poppins, sans-serif;
    cursor: pointer;
    transition: background-color .2s ease;
}

.betech-enrollment__advance-controls button:hover:not(:disabled) {
    background: #0f3659;
}

.betech-enrollment__advance-controls button:disabled {
    cursor: wait;
    opacity: .7;
}

.betech-enrollment__advance .betech-enrollment__advance-status {
    margin-bottom: 0;
}

.betech-enrollment__advance-status[data-state="error"] {
    color: #a52523;
}

.betech-enrollment__advance-status[data-state="success"] {
    color: #155b3e;
}

.betech-enrollment__qr-area {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-top: 18px;
    text-align: center;
}

.betech-enrollment__qr-area h3 {
    margin: 0;
    color: var(--enrollment-navy);
    font-size: 15px;
    font-weight: 700;
}

.betech-enrollment__qr-area .betech-enrollment__qr-amount {
    margin: 0;
    padding: 5px 10px;
    border-radius: 18px;
    background: #e5f4eb;
    color: #155b3e;
    font-size: 13px;
    font-weight: 700;
}

.betech-enrollment__qr-area .betech-enrollment__payment-balance {
    margin: 0;
    color: var(--enrollment-navy);
    font-size: 12px;
    font-weight: 600;
}

.betech-enrollment__qr-frame {
    display: grid;
    width: min(100%, 208px);
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--enrollment-border);
    border-radius: 11px;
    background: #fff;
}

.betech-enrollment__qr-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #617792;
    background: #f3f6fa;
    font-size: 54px;
    line-height: 1;
}

.betech-enrollment__qr-frame canvas {
    display: block;
    width: 100%;
    height: auto;
    image-rendering: pixelated;
}

.betech-enrollment__payment-status {
    max-width: 280px;
    margin: 0;
    color: var(--enrollment-muted);
    font-size: 13px;
    line-height: 1.45;
}

.betech-enrollment__upi-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 6px;
    color: var(--enrollment-orange);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.betech-enrollment__upi-link:hover {
    color: #8c2d15;
    text-decoration: underline;
}

.betech-enrollment__utr {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--enrollment-border);
}

.betech-enrollment__utr .betech-enrollment__field + .betech-enrollment__field {
    margin-top: 14px;
}

.betech-enrollment__utr input[type="file"] {
    height: auto;
    min-height: 46px;
    padding: 7px;
    font-size: 13px;
}

.betech-enrollment__utr input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 7px 10px;
    border: 1px solid #aebdce;
    border-radius: 6px;
    background: #f2f6fa;
    color: var(--enrollment-navy);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.betech-enrollment__utr label span,
.betech-enrollment__utr p {
    margin: 0;
    color: var(--enrollment-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}

.betech-enrollment__button--secondary {
    min-height: 44px;
    margin-top: 9px;
    border-color: #a0d5b7;
    color: #135a3a;
    background: #dff4e7;
    box-shadow: 0 4px 12px rgb(22 108 67 / 10%);
}

.betech-enrollment__button--secondary:hover:not(:disabled) {
    background: #c9ebd7;
    box-shadow: 0 6px 15px rgb(22 108 67 / 16%);
}

.betech-enrollment__thank-you {
    width: min(420px, calc(100% - 32px));
    max-width: none;
    padding: 30px 26px 26px;
    border: 1px solid #b9ddc9;
    border-radius: 20px;
    background: #fff;
    color: var(--enrollment-navy);
    box-shadow: 0 24px 70px rgb(5 25 45 / 24%);
    text-align: center;
}

.betech-enrollment__thank-you::backdrop {
    background: rgb(7 25 46 / 65%);
    backdrop-filter: blur(3px);
}

.betech-enrollment__thank-you-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #eef5f1;
    color: #285f43;
    font-size: 20px;
    cursor: pointer;
}

.betech-enrollment__thank-you-icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 50%;
    background: #e1f5e9;
    color: #168252;
    font-size: 36px;
}

.betech-enrollment__thank-you h2 {
    margin: 0 0 9px;
    color: var(--enrollment-navy);
    font-size: 25px;
    line-height: 1.2;
}

.betech-enrollment__thank-you p {
    margin: 0 0 22px;
    color: var(--enrollment-muted);
    font-size: 14px;
    line-height: 1.55;
}

.betech-enrollment__thank-you-done {
    width: 100%;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 9px;
    background: #177449;
    color: #fff;
    font: 600 14px/1.3 Poppins, sans-serif;
    cursor: pointer;
    transition: background-color .2s ease;
}

.betech-enrollment__thank-you-done:hover {
    background: #105b39;
}

@media (max-width: 579px) {
    .betech-enrollment__intro h1 {
        margin-bottom: 6px;
        font-size: clamp(22px, 5.4vw, 26px);
        line-height: 1.2;
    }

    .betech-enrollment__intro p {
        max-width: 36ch;
        font-size: 12px;
        line-height: 1.5;
    }

    .betech-enrollment__card-header {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }

    .betech-enrollment__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 20px;
    }

    .betech-enrollment__card-header h2 {
        font-size: 17px;
        line-height: 1.25;
    }

    .betech-enrollment__card-header p {
        font-size: 12.5px;
        line-height: 1.4;
    }
}

@media (min-width: 580px) {
    .betech-enrollment__form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .betech-enrollment {
        --enrollment-header-height: 156px;
    }

    .betech-enrollment__layout {
        grid-template-columns: minmax(0, 1.46fr) minmax(0, 1fr);
    }

    .betech-enrollment__layout > .betech-enrollment__card {
        position: sticky;
        top: 132px;
    }

    .betech-enrollment__payment {
        scroll-margin-top: 132px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .betech-enrollment__form:has(#betech-mode:valid) .betech-enrollment__discount {
        animation: none;
    }

    .betech-enrollment__button {
        transition: none;
    }
}
