:root {
    --blue-main: #005fae;
    --blue-selected: #69c0ff;
    --blue-text-on-btn: #fff;
    --border-radius: 12px;
    --border-color: #003e79;
    --font-stack: -apple-system, BlinkMacSystemFont, "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-stack);
    color: #000;
    background-color: #fff;
    line-height: 1.3;
    margin: 0;
}

.page-shell {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Header / title */
.intro-block {
    margin-bottom: clamp(2rem,2vw,3rem);
    max-width: 70ch;
}

.intro-headline {
    font-size: clamp(2.4rem, 1vw + 2rem, 3.4rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.15;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .intro-headline {
        white-space: normal;
    }
}

/* Question blocks always take up layout space */
.question-block {
    margin-bottom: clamp(2rem,2vw,3rem);
}

/* hidden-preserve:
   keeps the element's space in layout so the disclaimer
   always stays under the Q3 "slot." */
.hidden-preserve {
    visibility: hidden;
    pointer-events: none;
}

.question-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: clamp(1rem,1.5vw,2rem);
}

.question-text {
    flex: 1 1 320px;
    font-size: clamp(2rem, .6vw + 1.5rem, 3rem);
    font-weight: 400;
    min-width: 280px;
    line-height: 1.25;
}

.answers-area {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

/* Yes / No buttons */
.answer-btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    background-color: var(--blue-main);
    color: var(--blue-text-on-btn);
    font-size: clamp(1.4rem, .4vw + 1.1rem, 2rem);
    font-weight: 500;
    line-height: 1.2;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    box-shadow: 0 4px 8px rgb(0 0 0 / 0.15);
    transition: background-color .15s linear, box-shadow .15s linear;
}

.answer-btn[aria-pressed="true"] {
    background-color: var(--blue-selected);
    color: #00315c;
    font-weight: 600;
}

.checkmark {
    font-size: 1.2em;
    line-height: 1;
    display: none;
}

.answer-btn[aria-pressed="true"] .checkmark {
    display: inline;
}

/* Custom State Dropdown */
.state-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
}

.custom-select {
    position: relative;
    flex: 0 0 auto;
    min-width: 360px;
    max-width: 360px;
    width: 360px;
}

.state-input {
    width: 100%;
    font-size: clamp(1.4rem, .4vw + 1.1rem, 2rem);
    padding: 1rem 3rem 1rem 1rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    line-height: 1.2;
    background-color: #fff;
    color: #000;
}

/* Blue box on the right side of the dropdown input */
.custom-select::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 3rem;
    border-left: 2px solid var(--border-color);
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    background-color: var(--blue-main);
    box-shadow: 0 4px 8px rgb(0 0 0 / 0.15);
    pointer-events: none;
    z-index: 1;
}

/* ▼ Down arrow icon */
.custom-select::before {
    content: "";
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: .5rem solid transparent;
    border-right: .5rem solid transparent;
    border-bottom: 0;
    border-top: .7rem solid var(--blue-text-on-btn); /* this makes a downward-facing triangle */
    pointer-events: none;
    z-index: 2;
}

.dropdown-list {
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 16px rgb(0 0 0 / 0.2);
    z-index: 1000;
    display: none;
}

.custom-select.open .dropdown-list {
    display: block;
}

.dropdown-item {
    font-size: clamp(1.25rem, .4vw + 1rem, 1.6rem);
    line-height: 1.3;
    padding: .75rem 1rem;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: var(--blue-selected);
    color: #00315c;
}

/* Disclaimer sits permanently after Q3 space. */
.regulatory-note {
    max-width: 100%;
    font-size: clamp(1rem, .3vw + .9rem, 1.125rem);
    line-height: 1.4;
    color: #444;
    white-space: nowrap;        /* force single line */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin-top: 0;
    margin-bottom: clamp(2rem,2vw,3rem);
}

.regulatory-note a {
    color: var(--blue-main);
    text-decoration: underline;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .answers-area {
        width: 100%;
    }
    .answer-btn {
        flex: 1 1 auto;
        min-width: 160px;
        justify-content: center;
    }
    .state-wrapper {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    .custom-select {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

