.survey-landing {
    max-width: 920px;
    margin: 0 auto;
    padding: 0.5rem 0 2.5rem;
    width: 100%;
    min-width: 0;
    overflow-x: clip;
}

.survey-landing__form {
    position: relative;
    max-width: 100%;
    min-width: 0;
}

.survey-landing__hero {
    margin-bottom: 1.5rem;
}

.survey-landing__eyebrow {
    font-size: 0.85rem;
    color: #6366f1;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.survey-landing__title {
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    overflow-wrap: anywhere;
}

.survey-landing__intro {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.survey-landing__intro ul {
    padding-right: 1.25rem;
}

.survey-q-row {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
}

.survey-q-row--invalid {
    background: rgba(220, 53, 69, 0.06);
    box-shadow: inset 0 0 0 1px rgba(220, 53, 69, 0.35);
    padding-inline: 0.75rem;
}

.survey-field--invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.survey-q-row:last-child {
    border-bottom: 0;
}

.survey-scale {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: 100%;
}

.survey-scale label {
    cursor: pointer;
    margin: 0;
    padding: 0.3rem 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(102, 126, 234, 0.25);
    font-size: 0.85rem;
    background: #fff;
}

.survey-scale input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.survey-scale label:has(input:checked) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.18), rgba(118, 75, 162, 0.14));
    border-color: #667eea;
    font-weight: 600;
}

.survey-options {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-width: 100%;
}

.survey-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    min-width: 0;
}

.survey-option span {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.survey-option input {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.survey-option:has(input:checked) {
    font-weight: 600;
}

.survey-landing__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.survey-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.survey-thankyou {
    padding-top: 1rem;
}

.site-main--survey {
    padding-top: 0.5rem;
}

/* ── Tablet & mobile ── */
@media (max-width: 991.98px) {
    .survey-scale {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .survey-scale label {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 2.75rem;
        padding: 0.45rem 0.25rem;
        font-size: 0.95rem;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .survey-landing {
        padding: 0 0 1rem;
    }

    .survey-landing__hero {
        margin-bottom: 1rem;
    }

    .survey-landing__eyebrow {
        font-size: 0.8rem;
    }

    .survey-landing__title {
        font-size: 1.2rem;
        line-height: 1.45;
        margin-bottom: 0.5rem;
    }

    .survey-landing__intro {
        font-size: 0.9rem;
        line-height: 1.75;
    }

    .survey-landing__intro p {
        margin-bottom: 0.65rem;
    }

    .survey-landing .card {
        border-radius: 0.65rem;
        margin-bottom: 0.85rem !important;
    }

    .survey-landing .card-body {
        padding: 0.85rem 0.75rem;
    }

    .survey-landing .card-body > .h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem !important;
    }

    .survey-q-row {
        padding: 0.85rem 0;
    }

    .survey-q-row--invalid {
        padding-inline: 0.5rem;
    }

    .survey-q-row .fw-semibold {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .survey-scale label {
        min-height: 2.85rem;
        font-size: 1rem;
        font-weight: 500;
    }

    .survey-options {
        gap: 0.5rem;
    }

    .survey-option {
        padding: 0.7rem 0.75rem;
        border: 1px solid rgba(102, 126, 234, 0.22);
        border-radius: 0.55rem;
        background: #fff;
        font-size: 0.88rem;
        -webkit-tap-highlight-color: transparent;
    }

    .survey-option:has(input:checked) {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.08));
        border-color: #667eea;
    }

    .survey-option input {
        width: 1.1rem;
        height: 1.1rem;
        margin-top: 0.15rem;
    }

    .survey-rank .form-label {
        margin-bottom: 0.25rem;
    }

    .survey-rank .form-select {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .survey-landing__actions {
        position: sticky;
        bottom: 0;
        z-index: 100;
        padding: 0.75rem 0;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(to top, var(--site-body-bg, #fff) 70%, rgba(255, 255, 255, 0));
    }

    .survey-landing__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .survey-thankyou .card-body {
        padding: 2rem 1rem !important;
    }
}

@media (max-width: 380px) {
    .survey-scale {
        gap: 0.3rem;
    }

    .survey-scale label {
        min-height: 2.6rem;
        font-size: 0.9rem;
        border-radius: 0.4rem;
    }
}
