/* ── Homepage discovery survey ────────────────────────────
   A native <dialog>: centred card on desktop, bottom sheet on phones so the
   invite never covers the page on arrival. Colours follow the hero: amber
   pill for the main action, teal for progress and selected answers. */

.initd-survey {
    width: min(34rem, calc(100vw - 2rem));
    max-height: calc(100vh - 3rem);
    padding: 0;
    border: none;
    border-radius: 1rem;
    background: #fff;
    color: #1e293b;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
    overflow: auto;
}

.initd-survey::backdrop {
    background: rgba(15, 23, 42, 0.45);
}

.initd-survey__form {
    position: relative;
    padding: 2.25rem 2rem 1.75rem;
}

.initd-survey__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.initd-survey__close:hover,
.initd-survey__close:focus-visible {
    background: #f1f5f9;
    color: #1e293b;
}

.initd-survey__eyebrow {
    margin: 0 0 0.5rem;
    color: #0f766e;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.initd-survey__title {
    margin: 0 0 0.75rem;
    padding: 0;
    color: #1e293b;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    text-wrap: balance;
    outline: none;
}

.initd-survey__lede {
    margin: 0 0 1.5rem;
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

.initd-survey__hint {
    margin: -0.25rem 0 0.75rem;
    color: #64748b;
    font-size: 0.875rem;
}

.initd-survey__progress {
    height: 4px;
    margin: 0 2rem 1.25rem 0;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.initd-survey__progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #0f766e;
    transition: width 0.25s ease;
}

.initd-survey__fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.initd-survey__options {
    display: grid;
    gap: 0.5rem;
}

.initd-survey__option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.4;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.initd-survey__option:hover {
    border-color: #94a3b8;
}

.initd-survey__option:has(input:checked) {
    border-color: #0f766e;
    background: #f0fdfa;
    color: #134e4a;
}

.initd-survey__option input,
.initd-survey__inline input {
    flex: none;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    accent-color: #0f766e;
}

.initd-survey__input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #fff;
    color: #1e293b;
    font-size: 0.95rem;
}

.initd-survey__input:focus {
    border-color: #0f766e;
    outline: 2px solid rgba(15, 118, 110, 0.2);
    outline-offset: 0;
}

.initd-survey__fields {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.initd-survey__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.initd-survey__field {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
}

.initd-survey__field em {
    color: #64748b;
    font-style: normal;
    font-weight: 400;
}

.initd-survey__consent-wa {
    margin: 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    background: #f8fafc;
}

.initd-survey__consent-wa legend {
    float: left;
    width: 100%;
    margin: 0 0 0.5rem;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.45;
}

.initd-survey__inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 1.25rem 0 0;
    color: #334155;
    font-size: 0.95rem;
    cursor: pointer;
}

.initd-survey__consent {
    margin: 0 0 1.25rem;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.5;
}

.initd-survey__consent a {
    color: #0f766e;
}

.initd-survey__error {
    margin: 0 0 0.75rem;
    color: #b91c1c;
    font-size: 0.875rem;
    font-weight: 600;
}

.initd-survey__actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.initd-survey__actions--stack {
    flex-direction: column;
    align-items: stretch;
    margin-top: 0;
}

.initd-survey__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}

.initd-survey__btn--primary {
    background: #f59e0b;
    color: #3a2600;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.initd-survey__btn--primary:hover,
.initd-survey__btn--primary:focus-visible {
    color: #3a2600;
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
}

.initd-survey__btn--primary:disabled {
    opacity: 0.45;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.initd-survey__btn--ghost {
    border-color: #cbd5e1;
    background: #fff;
    color: #334155;
}

.initd-survey__btn--ghost:hover {
    background: #f1f5f9;
}

.initd-survey__btn--link {
    padding: 0.5rem;
    background: transparent;
    color: #64748b;
    font-weight: 600;
}

.initd-survey__btn--link:hover {
    color: #1e293b;
}

.initd-survey__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: #f0fdfa;
    color: #0f766e;
    font-size: 1.5rem;
    font-weight: 700;
}

.initd-survey__turnstile {
    min-height: 65px;
    margin: 0 0 1rem;
}

/* Spam trap: off-screen, so people never see or fill it. */
.initd-survey__hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Phones: a bottom sheet, sized to its content. */
@media (max-width: 575.98px) {
    .initd-survey {
        width: 100%;
        max-width: 100%;
        max-height: 88vh;
        margin: auto 0 0;
        border-radius: 1rem 1rem 0 0;
    }

    .initd-survey::backdrop {
        background: rgba(15, 23, 42, 0.3);
    }

    .initd-survey__form {
        padding: 1.75rem 1rem 1.25rem;
    }

    .initd-survey__title {
        font-size: 1.25rem;
    }

    .initd-survey__row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .initd-survey__btn,
    .initd-survey__progress span {
        transition: none;
    }
}
