:root {
    --pink: #E4126F;
    --pink-dark: #C10F5F;
    --pink-soft: #FBE7F0;
    --ink: #1F2733;
    --grey: #6B7280;
    --line: #E5E1DD;
    --field-border: #E4126F;
    --radius: 12px;
    --radius-pill: 999px;
    --max-w: 640px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter',sans-serif;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, .heading {
    font-family: 'Poppins',sans-serif;
}

.wizard-shell {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 36px 24px 64px;
}

.wizard-heading {
    text-align: center;
    font-size: 34px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 28px;
}

@media (max-width:480px) {
    .wizard-heading {
        font-size: 24px;
    }

    .wizard-shell {
        padding: 24px 18px 48px;
    }
}

/* progress dots */
.progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 34px;
}

    .progress .dot {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #B9BEC6;
        flex: 0 0 auto;
        transition: background .25s ease;
    }

    .progress .seg {
        height: 3px;
        width: 64px;
        background: #B9BEC6;
        transition: background .25s ease;
    }

@media (max-width:480px) {
    .progress .seg {
        width: 34px;
    }
}

.progress .dot.done, .progress .seg.done {
    background: var(--pink);
}

.step {
    display: none;
}

    .step.active {
        display: block;
        animation: fadeIn .25s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question {
    color: var(--pink);
    font-weight: 700;
    font-size: 19px;
    margin: 0 0 20px;
    text-align: center;
}

.section-title {
    color: var(--pink);
    font-weight: 700;
    font-size: 19px;
    margin: 28px 0 4px;
    text-align: center;
}

.helper-text {
    color: var(--ink);
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 14px;
}

/* radio list (reason, sex, medicare choice) */
.option-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 26px;
}

.option {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

    .option input[type=radio], .option input[type=checkbox] {
        appearance: none;
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: 2px solid #C9CDD3;
        display: grid;
        place-content: center;
        flex: 0 0 auto;
        cursor: pointer;
    }

    .option input[type=checkbox] {
        border-radius: 4px;
    }

    .option input[type=radio]::before {
        content: "";
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--pink);
        transform: scale(0);
        transition: .15s ease;
    }

    .option input[type=checkbox]::before {
        content: "";
        width: 10px;
        height: 10px;
        border-radius: 2px;
        background: var(--pink);
        transform: scale(0);
        transition: .15s ease;
    }

    .option input:checked {
        border-color: var(--pink);
    }

        .option input:checked::before {
            transform: scale(1);
        }

    .option .price {
        color: var(--pink);
        font-weight: 700;
        margin-left: auto;
    }

    .option .note {
        color: var(--grey);
        font-weight: 500;
        font-size: 13px;
    }

.inline-choice {
    display: flex;
    gap: 32px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* form fields */
label {
    display: block;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 6px;
    font-weight: 500;
}

    label .req {
        color: var(--pink);
    }

.field {
    margin-bottom: 18px;
}

    .field textarea, .field input[type=text], .field input[type=email],
    .field input[type=tel], .field input[type=date], .field input[type=month], .field select {
        width: 100%;
        border: 1.5px solid var(--field-border);
        border-radius: 10px;
        padding: 12px 14px;
        font-size: 15px;
        font-family: inherit;
        color: var(--ink);
        background: #fff;
    }

    .field textarea {
        min-height: 110px;
        resize: vertical;
    }

        .field input:focus, .field select:focus, .field textarea:focus {
            outline: none;
            border-color: var(--pink-dark);
            box-shadow: 0 0 0 3px var(--pink-soft);
        }

.row-2 {
    display: flex;
    gap: 16px;
}

    .row-2 .field {
        flex: 1;
        min-width: 0;
    }

@media (max-width:480px) {
    .row-2 {
        flex-direction: column;
        gap: 0;
    }
}

.upload-box {
    border: 1.5px solid var(--field-border);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 6px;
}

    .upload-box input[type=file] {
        font-size: 14px;
    }

.mobile-note {
    margin: 0px 0 16px;
    font-size: .8rem;
    line-height: 1.5;
    color: #9a7485;
}

.upload-hint {
    font-size: 12px;
    color: var(--grey);
    margin: 8px 0 0;
}

.dropzone-hint {
    font-size: 13px;
    color: var(--grey);
    margin: 6px 0 18px;
}

.schedule-fields {
    display: none;
    margin: -4px 0 18px 32px;
}

    .schedule-fields.show {
        display: block;
    }

.medicare-card {
    max-width: 100%;
    border-radius: 10px;
    margin: 14px 0 22px;
    display: block;
}

.subtotal {
    text-align: center;
    font-weight: 700;
    font-size: 17px;
    margin: 22px 0 4px;
}

    .subtotal .amt {
        color: var(--pink);
    }

.surcharge-note {
    text-align: center;
    color: var(--grey);
    font-size: 13px;
    margin: 0 0 24px;
    display:none;
}

.total-block {
    text-align: center;
    margin: 18px 0 26px;
}

    .total-block .label {
        font-weight: 700;
        font-size: 18px;
    }

    .total-block .amt {
        color: var(--pink);
        font-weight: 700;
        font-size: 22px;
        margin-left: 6px;
    }

.btn-row {
    display: flex;
    gap: 14px;
    margin-top: 8px;
}

.btn {
    flex: 1;
    border: none;
    border-radius: var(--radius-pill);
    padding: 15px 20px;
    font-family: 'Poppins',sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: filter .15s ease;
}

    .btn:active {
        filter: brightness(.94);
    }

.btn-primary {
    background: var(--pink);
    color: #fff;
}

.btn-outline {
    background: #fff;
    color: var(--pink);
    border: 2px solid var(--pink);
}

.error-text {
    color: #D3273E;
    font-size: 13px;
    margin: 6px 0 0;
    display: none;
    line-height: 1.4;
}

.field.invalid textarea, .field.invalid input, .field.invalid select {
    border-color: #D3273E;
}

/* Stripe Elements card field — matches the rest of the field styling */
.stripe-card-element {
    border: 1.5px solid var(--field-border);
    border-radius: 10px;
    padding: 14px;
    background: #fff;
}

    .stripe-card-element.StripeElement--focus {
        border-color: var(--pink-dark);
        box-shadow: 0 0 0 3px var(--pink-soft);
    }

    .stripe-card-element.StripeElement--invalid {
        border-color: #D3273E;
    }

#paymentStatusMessage.success {
    color: #1c8a4b;
    font-weight: 600;
}

#paymentStatusMessage.error {
    color: #D3273E;
    font-weight: 600;
}

.btn-primary[disabled] {
    opacity: .6;
    cursor: not-allowed;
}


/***********************/

.pay-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1000;
}

    .pay-modal.open {
        display: block;
    }

.pay-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(31,39,51,.55);
}

.pay-modal__dialog {
    position: relative;
    max-width: 440px;
    margin: 8vh auto 0;
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: fadeIn .2s ease;
}

.pay-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: none;
    font-size: 26px;
    line-height: 1;
    color: var(--grey);
    cursor: pointer;
}

.pay-modal__title {
    font-family: 'Poppins',sans-serif;
    font-size: 20px;
    text-align: center;
    color: var(--ink);
    margin: 0 0 18px;
}

.pay-modal .btn-primary {
    width: 100%;
    margin-top: 18px;
}

@media (max-width:480px) {
    .pay-modal__dialog {
        margin: 4vh 14px 0;
    }
}