body {
    background: #eef3f8;
    color: #0f172a;
}

.checkout-intro {
    position: relative;
    overflow: hidden;
    margin-top: 72px;
    padding: 46px 0 42px;
    border-bottom: 1px solid #dce5ef;
    background: #ffffff;
    color: #0f172a;
}

.checkout-intro::before,
.checkout-intro::after {
    display: none;
}

.checkout-intro-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 56px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.checkout-kicker,
.summary-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.checkout-kicker {
    margin-bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
}

.checkout-kicker svg {
    width: 18px;
    height: 18px;
}

.checkout-intro-copy h1 {
    margin: 0 0 12px;
    color: #0f172a;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.checkout-intro-copy p {
    max-width: 570px;
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.65;
}

.checkout-journey {
    display: flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
}

.journey-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
}

.journey-step span {
    display: flex;
    width: 27px;
    height: 27px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

.journey-step strong {
    font-size: 11px;
    font-weight: 700;
}

.journey-step.is-current {
    color: #0f172a;
}

.journey-step.is-current span {
    border-color: #38bdf8;
    background: #0284c7;
    box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.12);
}

.checkout-journey i {
    width: 34px;
    height: 1px;
    margin: 0 10px;
    background: #dce5ef;
}

.checkout-main {
    padding: 48px 0 88px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    grid-template-areas: 'summary form';
    gap: 28px;
    max-width: 1200px;
    padding: 0 24px;
}

.checkout-summary-column {
    grid-area: summary;
    position: sticky;
    top: 92px;
}

.checkout-form-column {
    grid-area: form;
    min-width: 0;
}

.checkout-card {
    overflow: hidden;
    margin-bottom: 20px;
    padding: 28px;
    border: 1px solid #dce5ef;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.07);
}

.checkout-plan-card {
    position: relative;
    border: 0;
    background: linear-gradient(145deg, #075985, #0284c7);
    color: #ffffff;
    box-shadow: 0 20px 45px rgba(2, 132, 199, 0.2);
}

.checkout-plan-card::after {
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    content: '';
}

.summary-eyebrow {
    position: relative;
    z-index: 1;
    color: #0284c7;
}

.checkout-plan-card > .summary-eyebrow {
    color: #bae6fd;
}

.plan-summary-header {
    position: relative;
    z-index: 1;
    align-items: flex-start;
    margin: 22px 0 28px;
}

.plan-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.plan-info h3 {
    margin-bottom: 6px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.025em;
}

.plan-info p {
    color: #dbeafe;
    font-size: 12px;
    line-height: 1.5;
}

.plan-features {
    position: relative;
    z-index: 1;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.plan-features h4 {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.feature-list {
    gap: 9px;
}

.feature-item {
    color: #e0f2fe;
    font-size: 12px;
    line-height: 1.45;
}

.feature-item svg {
    flex: 0 0 auto;
    color: #7dd3fc;
}

.summary-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.checkout-price-card h2 {
    margin: 7px 0 0;
    font-size: 17px;
}

.summary-lock {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #ecfdf5;
    color: #059669;
}

.summary-lock svg {
    width: 18px;
    height: 18px;
}

.pricing-row {
    margin-bottom: 14px;
    color: #64748b;
    font-size: 12px;
}

.pricing-row strong {
    color: #0f172a;
    font-size: 13px;
}

.checkout-price-card .card-divider {
    margin: 22px 0;
    background: #e8eef5;
}

.total-row {
    align-items: flex-end;
    margin-bottom: 22px;
}

.total-label {
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}

.total-amount {
    color: #0f172a;
    font-family: 'Poppins', sans-serif;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.alert-box {
    align-items: flex-start;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #eff6ff;
}

.alert-box svg {
    color: #0284c7;
}

.alert-content strong {
    color: #075985;
    font-size: 11px;
}

.alert-content p {
    margin-top: 4px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.5;
}

.checkout-form-card {
    margin: 0;
    padding: 38px;
}

.checkout-form-intro {
    margin-bottom: 34px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e8eef5;
}

.checkout-form-intro h2 {
    margin: 8px 0 8px;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.checkout-form-intro p {
    max-width: 580px;
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 30px 0 18px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
}

.form-section-title:first-child {
    margin-top: 0;
}

.form-section-title span {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 10px;
    letter-spacing: 0.04em;
}

.form-grid {
    gap: 17px;
}

.form-group {
    gap: 8px;
}

.form-group label {
    color: #334155;
    font-size: 11px;
    font-weight: 800;
}

.form-group input,
.form-group select {
    width: 100%;
    min-height: 54px;
    padding: 0 15px;
    border: 1px solid #dce5ef;
    border-radius: 13px;
    background: #f8fafc;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input:hover,
.form-group select:hover {
    border-color: #b8c6d8;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

.phone-input-group {
    min-height: 54px;
    overflow: hidden;
    border: 1px solid #dce5ef;
    border-radius: 13px;
    background: #f8fafc;
}

.phone-input-group:focus-within {
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

.phone-input-group > span {
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-right: 1px solid #dce5ef;
    background: #eef3f8;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.phone-input-group input,
.phone-input-group input:focus {
    min-height: 52px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.beneficiary-section {
    margin-top: 30px;
    padding: 22px;
    border: 1px solid #bae6fd;
    border-radius: 18px;
    background: #f0f9ff;
}

.btn-add-beneficiary {
    min-height: 48px;
    border-radius: 13px;
}

.security-badge {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 30px;
    padding: 16px;
    border: 1px solid #bbf7d0;
    border-radius: 15px;
    background: #f0fdf4;
    color: #475569;
    font-size: 11px;
    line-height: 1.6;
}

.security-badge svg {
    flex: 0 0 auto;
    color: #059669;
}

.security-badge strong {
    display: block;
    margin-bottom: 2px;
    color: #166534;
    font-size: 12px;
}

.checkout-error-alert {
    display: none;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #ef4444;
    border-radius: 12px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 600;
}

.terms-check {
    align-items: flex-start;
    gap: 11px;
    margin-top: 24px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.terms-check input[type='checkbox'] {
    margin-top: 1px;
}

.btn-submit {
    min-height: 56px;
    margin-top: 22px;
    border-radius: 15px;
    background: #0f172a;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.2);
}

.btn-submit:hover {
    transform: translateY(-2px);
    background: #075985;
    box-shadow: 0 16px 30px rgba(7, 89, 133, 0.24);
}

.checkout-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.24);
    border-top-color: #ffffff;
    border-radius: 50%;
    vertical-align: middle;
    animation: spin 0.8s linear infinite;
}

.beneficiary-modal-card {
    border: 1px solid #dce5ef;
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.checkout-footer {
    border-top: 1px solid #dce5ef;
    background: #ffffff;
}

@media (max-width: 1024px) {
    .checkout-intro-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .checkout-journey {
        width: fit-content;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            'form'
            'summary';
    }

    .checkout-summary-column {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .checkout-summary-column .checkout-card {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .checkout-intro {
        margin-top: 56px;
        padding: 36px 0 38px;
    }

    .checkout-intro-inner {
        gap: 26px;
        padding: 0 20px;
    }

    .checkout-intro-copy h1 {
        font-size: 31px;
    }

    .checkout-intro-copy p {
        font-size: 13px;
    }

    .checkout-journey {
        width: 100%;
        justify-content: space-between;
        padding: 14px;
        box-sizing: border-box;
    }

    .journey-step {
        flex-direction: column;
        gap: 6px;
    }

    .checkout-journey i {
        min-width: 12px;
        margin: 0 5px;
    }

    .checkout-main {
        padding: 24px 0 48px !important;
    }

    .checkout-grid {
        gap: 16px;
        padding: 0 16px !important;
    }

    .checkout-card {
        padding: 22px !important;
        border-radius: 20px !important;
    }

    .checkout-form-card {
        margin-bottom: 0 !important;
    }

    .checkout-form-intro {
        margin-bottom: 26px;
        padding-bottom: 22px;
    }

    .checkout-form-intro h2 {
        font-size: 23px;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .form-group-full {
        grid-column: 1;
    }

    .beneficiary-section {
        padding: 16px !important;
    }

    .beneficiary-section-heading {
        align-items: flex-start !important;
    }

    .beneficiary-list {
        gap: 12px;
    }

    .beneficiary-item {
        width: 100%;
        min-width: 0;
        grid-template-columns: 42px minmax(0, 1fr) !important;
        gap: 10px 12px !important;
        padding: 14px !important;
        box-sizing: border-box;
    }

    .beneficiary-initials {
        width: 42px;
        height: 42px;
        align-self: start;
    }

    .beneficiary-details strong {
        overflow: visible;
        line-height: 1.35;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .beneficiary-details span {
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .beneficiary-remove {
        width: 100%;
        min-height: 38px;
        grid-column: 1 / -1 !important;
        justify-self: stretch !important;
        margin-top: 2px;
    }

    .beneficiary-modal {
        width: 100%;
        max-width: 100vw;
        align-items: end !important;
        padding: 12px !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    .beneficiary-modal-card {
        width: 100% !important;
        max-width: 520px;
        max-height: calc(100dvh - 24px) !important;
        padding: 22px 16px calc(22px + env(safe-area-inset-bottom)) !important;
        border-radius: 20px !important;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .beneficiary-modal-header,
    .beneficiary-modal-header > div,
    .beneficiary-form-grid,
    .beneficiary-form-grid .form-group {
        min-width: 0;
    }

    .beneficiary-form-grid input,
    .beneficiary-form-grid select {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .checkout-summary-column {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .checkout-plan-card {
        padding: 24px !important;
    }

    .security-badge {
        flex-wrap: nowrap !important;
        text-align: left !important;
    }

    .btn-submit {
        min-height: 56px !important;
        border-radius: 14px !important;
    }
}

@media (max-width: 390px) {
    .checkout-grid {
        padding: 0 12px !important;
    }

    .checkout-card {
        padding: 19px !important;
    }

    .beneficiary-section {
        padding: 13px !important;
    }

    .beneficiary-item {
        padding: 12px !important;
    }

    .beneficiary-modal {
        padding: 8px !important;
    }

    .beneficiary-modal-card {
        max-height: calc(100dvh - 16px) !important;
        padding: 20px 14px calc(20px + env(safe-area-inset-bottom)) !important;
    }

    .beneficiary-modal-actions {
        grid-template-columns: 1fr !important;
    }

    .journey-step strong {
        font-size: 9px;
    }
}
