:root {
    --blue: #2f4aa0;
    --blue-2: #324ea8;
    --gray-1: #f3f4f6;
    --gray-2: #e5e7eb;
    --gray-3: #9ca3af;
    --text: #0f172a;
    --red: #de0033;
    --card: #ffffff;
    --shadow: 0 12px 30px rgba(15, 23, 42, .08);
    --radius: 14px;
    --bg: #f3f3f5;
    --panel: #ffffff;
    --text: #222;
    --muted: #6b7280;
    --primary: #e71d35; /* red submit */
    --primary-hover: #cf172c;
    --accent: #1f4fbf; /* deep blue headings */
    --border: #dcdfe6;
    --focus: #2f6fff;
    /*--radius: 10px;*/
    /*--shadow: 0 12px 40px rgba(0,0,0,0.12);*/
    --font-family: Arial,Helvetica,sans-serif
}



/**{ box-sizing:border-box; }
    body{
      margin:0;
      font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
      background: linear-gradient(135deg, #f6f7fb, #eef2ff);
      color:var(--text);
      min-height:100vh;
      display:grid;
      place-items:center;
      padding: 24px;
    }*/

.wizard {
    /*width: 100%;*/
    background: var(--card);
    /*border-radius: var(--radius);*/
    box-shadow: var(--shadow);
    padding: 26px 26px 28px;
    border: 2px solid var(--red);
}

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    font-weight: 700;
    color: var(--blue);
}

.top .right {
    color: #334155;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.progressWrap {
    margin: 10px 0 18px;
    height: 12px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.progressBar {
    height: 100%;
    width: 0%;
    background: var(--red);
    border-radius: 999px;
    transition: width .35s ease;
}

.questionText {
    margin: 10px 0 18px;
    font-size: clamp(22px, 1.6vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--blue);
}

.choices {
    display: grid;
    gap: 14px;
    margin: 18px 0 24px;
}

.choice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px !important;
    border: 2px solid #d1d5db;
    cursor: pointer;
    user-select: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .05s ease;
    background: #fff;
}

    .choice:hover {
        border-color: #94a3b8;
        box-shadow: 0 8px 16px rgba(2,6,23,.06);
    }

    .choice:active {
        transform: translateY(1px);
    }

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

    .dot::after {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: transparent;
        transition: background .2s ease;
    }

.label {
    font-weight: 650;
    color: #1f2937;
}

/* Selected state */
.choice[data-selected="true"] {
    border-color: var(--blue-2);
    box-shadow: 0 10px 20px rgba(47,74,160,.12);
}

.choice[data-selected="true"] .dot {
    border-color: var(--red);
}

    .choice[data-selected="true"] .dot::after {
        background: var(--red);
    }

.choice[data-selected="true"] .label {
    color: var(--blue-2);
}

.footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
}

button, input[type="submit"], input[type="button"] {
    border: 0;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: .02em;
    border-radius: 999px;
    padding: 14px 28px;
    font-size: 16px;
    transition: transform .08s ease, filter .15s ease, opacity .15s ease;
}

.btn-primary {
    background: var(--red);
    color: #fff;
    min-width: 240px;
    text-transform: uppercase;
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-primary[disabled] {
    opacity: .45;
    cursor: not-allowed;
    filter: grayscale(.2);
}

.btn-ghost {
    background: transparent;
    color: #334155;
    border: 2px solid #e5e7eb;
    padding: 12px 18px;
    font-weight: 700;
}

.btn-ghost:active {
    transform: translateY(1px);
}

.done {
    text-align: center;
    padding: 16px 8px 2px;
}

    .done h2 {
        margin: 10px 0 6px;
        color: var(--blue);
        font-size: 26px;
    }

    .done pre {
        text-align: left;
        background: #0b1220;
        color: #e2e8f0;
        padding: 14px 14px;
        border-radius: 12px;
        overflow: auto;
        font-size: 13px;
        line-height: 1.35;
        margin-top: 14px;
    }

/* Small screen tweaks */
@media (max-width: 420px) {
    .btn-primary {
        min-width: 100%;
    }

    .footer {
        flex-direction: column;
    }
}

.survey-step {
    display: none;
}

.survey-step.active {
    display: table-row;
}


/* Card that holds the content */
.card {
    /*width: min(720px, 92vw);*/
    padding: 28px 24px 28px;
    position: relative;
    overflow: hidden;
    background-color: #fff;
    border: 2px solid var(--red);
}


.card__header {
    text-align: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.card__badge {
    height: 64px;
    width: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 8px auto 6px;
    color: #fff;
    background: linear-gradient(135deg, #1f4fbf, #2f6fff);
    font-weight: 800;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(47,111,255,0.35);
}

.card__title {
    margin: 10px 0 6px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    color: var(--blue);
    font-weight: 800;
}

.card__subtitle {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: clamp(14px, 2.4vw, 18px);
    text-align: center;
}

/* Form layout: stacked with nice spacing */
.form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 1;
    /* This keeps the button visually toward the bottom if there’s more space,
     but allows it to be pushed down naturally when there’s a lot of content. */
    min-height: 540px; /* adjust to taste */
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form__label {
    color: var(--blue);
    font-weight: 600;
    font-size: 15px;
}

.req {
    color: #d90429;
    margin-left: 2px;
}

.form__control {
    /*width: 100%;*/
    /*height: 44px;*/
    padding: 10px 12px;
    border: 1px solid var(--border);
    /*border-radius: 6px;*/
    background: #fff;
    font-size: 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form__control:focus {
    outline: none;
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(47,111,255,0.15);
}

/* Custom checkbox with helper text */
.check {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: start;
    gap: 10px;
    margin-top: 6px;
    user-select: none;
}

.check__input {
    position: absolute;
    opacity: 0;
}

.check__box {
    height: 20px;
    width: 20px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    background: #fff;
    display: inline-block;
    position: relative;
    margin-top: 2px;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.check__input:focus + .check__box {
    box-shadow: 0 0 0 3px rgba(47,111,255,0.15);
    border-color: var(--focus);
}

.check__input:checked + .check__box {
    background: var(--focus);
    border-color: var(--focus);
}

.check__input:checked + .check__box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: 2px solid #fff;
    border-left: 0;
    border-top: 0;
    transform: rotate(45deg);
}

.check__text {
    font-size: 14px;
    line-height: 1.35;
    color: var(--text);
}

.help {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

/* Bottom-centered CTA region */
.form__cta {
    display: flex;
    justify-content: center; /* center horizontally */
    margin-top: auto; /* push button to the bottom of the form block when space allows */
    padding-top: 8px;
    flex-direction: column;
    align-items:center;
}

/* Disclaimer under the button */
.disclaimer {
    margin: 10px auto 0;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    max-width: 46ch;
}

/* Responsiveness */
@media (max-width: 520px) {
    .card {
        padding: 22px 16px 22px;
    }

    .form {
        min-height: unset;
    }
}
