/* Matches the SmartSurvey theme used by the screening questionnaire */
:root {
    --blue: #0060a6;
    --blue-dark: #004373;
    --blue-light: #3088c7;
    --text: #000000;
    --text-soft: rgba(0, 0, 0, 0.9);
    --white: #ffffff;
    --error: #d5281b;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
}

body {
    font-family: "Lato", sans-serif;
    font-size: 18px;
    line-height: 1.51;
    color: var(--text);
    background: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
}

a:focus,
a:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.inner {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 16px;
}

.skip-link {
    position: absolute;
    left: -10000px;
    top: 0;
    background: var(--white);
    padding: 8px 16px;
    z-index: 10;
}

.skip-link:focus {
    left: 16px;
}

/* Header bands */
.band {
    color: var(--white);
}

.band-logo {
    background: var(--blue);
    padding: 16px 0;
}

.band-title {
    background: var(--blue-light);
    padding: 16px 0;
}

.logo {
    display: block;
    width: 150px;
    height: auto;
}

.survey-title {
    margin: 0;
    font-size: 27.2px;
    font-weight: 500;
    line-height: 1.44;
}

@media (min-width: 576px) {
    .survey-title {
        font-size: 32px;
    }
}

/* Content */
.content {
    flex: 1;
    padding-top: 32px;
    padding-bottom: 48px;
    color: var(--text-soft);
}

.page-title {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.49;
    color: var(--blue);
}

.content p {
    margin: 0 0 16px;
}

.error {
    border-left: 6px solid var(--error);
    padding: 12px 16px;
    margin: 0 0 24px;
    color: var(--error);
    font-weight: 700;
    background: #fdf2f1;
}

.gate {
    margin-top: 24px;
}

.cf-turnstile {
    margin-bottom: 24px;
}

/* Honeypot – off-screen rather than display:none so naive bots still fill it */
.hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Buttons */
.button {
    display: inline-block;
    font: inherit;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 16px 24px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.button.primary {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

.button.primary:hover:not(:disabled) {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

.button:focus,
.button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer */
.site-footer {
    padding: 24px 0;
    font-size: 15px;
    text-align: center;
    border-top: 1px solid #e5e5e5;
}

/* Survey view – embed takes the full page, it brings its own header */
.survey-view {
    display: block;
}

.survey-embed {
    width: 100%;
}

.survey-embed iframe {
    display: block;
    width: 100% !important;
    min-height: 100vh;
    border: 0;
}

@media (max-width: 575px) {
    .button {
        width: 100%;
        text-align: center;
    }
}
