.questionnaire-page {
    min-height: 100vh;
    background: #f3f8f7;
}

.questionnaire-page [hidden] {
    display: none !important;
}

.form-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid #dbe7e4;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.form-header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.form-header-help,
.aside-help {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-header-help > span,
.aside-help > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #0f766e;
    background: #ccfbf1;
}

.form-header-help p,
.aside-help p {
    margin: 0;
}

.form-header-help small,
.form-header-help a,
.aside-help small,
.aside-help a {
    display: block;
}

.form-header-help small,
.aside-help small {
    color: #647168;
    font-size: 12px;
}

.form-header-help a,
.aside-help a {
    color: #134e4a;
    font-weight: 800;
}

.questionnaire-main {
    padding: 42px 0 70px;
}

.questionnaire-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 30px;
}

.wizard-card,
.aside-card {
    border: 1px solid #dbe7e4;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 75, 70, 0.08);
}

.wizard-card {
    min-width: 0;
    padding: 38px 42px 34px;
}

.wizard-heading {
    position: relative;
    padding-right: 90px;
}

.back-home {
    position: absolute;
    top: 0;
    right: 0;
    color: #53615d;
    font-size: 14px;
    font-weight: 700;
}

.back-home:hover {
    color: #0f766e;
}

.wizard-heading h1 {
    margin-bottom: 9px;
    color: #142d2b;
    font-size: clamp(29px, 3vw, 40px);
    letter-spacing: -0.035em;
}

.wizard-heading > p:last-child {
    max-width: 650px;
    margin-bottom: 0;
    color: #647168;
}

.progress-shell {
    margin: 30px 0 38px;
}

.progress-copy {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 8px;
    color: #52605c;
    font-size: 13px;
}

.progress-copy strong,
.progress-copy span:last-child {
    color: #0f766e;
}

.progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6eeec;
}

.progress-track span {
    width: 16.666%;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f766e, #14a294);
    transition: width 220ms ease;
}

.step-indicators {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 9px 0 0;
    padding: 0;
    color: #87928f;
    font-size: 11px;
    list-style: none;
}

.step-indicators li {
    text-align: center;
}

.step-indicators li:first-child {
    text-align: left;
}

.step-indicators li:last-child {
    text-align: right;
}

.step-indicators li.is-active,
.step-indicators li.is-complete {
    color: #0f766e;
    font-weight: 800;
}

.form-step[hidden],
.conditional-field[hidden] {
    display: none;
}

.form-step.is-active {
    animation: step-enter 180ms ease-out;
}

.single-question-wizard .question-stage {
    min-height: 390px;
}

.single-question-body {
    max-width: 820px;
}

.single-input-field {
    max-width: 590px;
}

.exact-date-field {
    max-width: 470px;
}

.date-picker-wrap {
    position: relative;
}

.date-picker-wrap input[type="date"] {
    min-height: 62px;
    padding: 13px 54px 13px 16px;
    border: 2px solid #cbd7eb;
    border-radius: 12px;
    color: #111f40;
    background: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.date-picker-wrap input[type="date"]:hover {
    border-color: #1747a6;
}

.date-picker-wrap input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    cursor: pointer;
    opacity: 0;
}

.date-picker-icon {
    position: absolute;
    top: 50%;
    right: 17px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    transform: translateY(-50%);
    border-radius: 8px;
    background: #edf3ff;
    font-size: 17px;
    pointer-events: none;
}

.date-selection {
    min-height: 24px;
    margin: 10px 2px 0;
    color: #65738c;
    font-size: 13px;
}

.date-selection strong {
    color: #1747a6;
}

.single-choice-fieldset {
    margin-top: 0;
}

.single-choice-fieldset .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.buyer-protection-faq {
    margin-top: 24px;
    padding: 24px 26px;
    border: 1px solid #d5deee;
    border-left: 4px solid #1747a6;
    border-radius: 14px;
    color: #42516d;
    background: #f7f9fd;
    font-size: 14px;
    line-height: 1.65;
}

.buyer-protection-faq-kicker {
    margin: 0 0 4px;
    color: #1747a6;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.buyer-protection-faq h3 {
    margin: 0 0 13px;
    color: #111f40;
    font-size: 20px;
    line-height: 1.3;
}

.buyer-protection-faq h4 {
    margin: 0 0 7px;
    color: #111f40;
    font-size: 14px;
}

.buyer-protection-faq p {
    margin: 0 0 11px;
}

.buyer-protection-faq-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 17px;
}

.buyer-protection-faq ul {
    margin: 0;
    padding-left: 19px;
}

.buyer-protection-faq li + li {
    margin-top: 4px;
}

.grouped-question {
    max-width: 760px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grouped-question .form-field:last-child:nth-child(odd),
.address-question .form-field:last-child {
    grid-column: 1 / -1;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@keyframes step-enter {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 28px;
}

.step-kicker {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border-radius: 11px;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 13px;
    font-weight: 800;
}

.step-heading h2 {
    margin-bottom: 5px;
    color: #1a302e;
    font-size: 25px;
}

.step-heading p {
    margin: 0;
    color: #71807b;
}

.form-grid {
    display: grid;
    gap: 18px;
}

.two-columns {
    grid-template-columns: 1fr 0.55fr;
}

.contact-grid {
    grid-template-columns: 0.7fr 1fr 1fr;
}

.contact-grid .form-field:nth-child(4),
.contact-grid .form-field:nth-child(5) {
    grid-column: span 1;
}

.contact-grid .form-field:nth-child(4) {
    grid-column: 1 / 3;
}

.address-grid {
    grid-template-columns: 1fr 0.36fr 0.46fr 0.9fr;
}

.street-field {
    grid-column: 1 / 4;
}

.number-field {
    grid-column: 4;
}

.postcode-field {
    grid-column: 1;
}

.city-field {
    grid-column: 2 / 5;
}

.full-field {
    grid-column: 1 / -1;
}

.form-field {
    min-width: 0;
}

.form-field > label,
.choice-fieldset > legend {
    display: block;
    margin-bottom: 8px;
    color: #304441;
    font-size: 14px;
    font-weight: 800;
}

.legend-hint {
    display: block;
    margin-top: 3px;
    color: #84908d;
    font-size: 11px;
    font-weight: 500;
}

.choose-service-note {
    margin: 24px 0 0;
    padding: 14px 16px;
    border: 1px dashed #9bc8c2;
    border-radius: 12px;
    color: #526965;
    background: #f4fbf9;
}

.form-field > label span {
    color: #84908d;
    font-size: 12px;
    font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
    background: #fff;
}

.form-field textarea {
    width: 100%;
    min-height: 126px;
    resize: vertical;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    box-shadow: var(--shadow-sm);
}

.form-field textarea:focus {
    border-color: #0f766e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"],
.choice-fieldset[aria-invalid="true"] .choice-card {
    border-color: #dc4c41;
}

.field-hint {
    display: block;
    margin-top: 5px;
    color: #84908d;
    text-align: right;
}

.choice-fieldset {
    min-width: 0;
    margin: 27px 0 0;
    padding: 0;
    border: 0;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.choice-grid.two-choice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card {
    position: relative;
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 15px;
    border: 1px solid #d8e2df;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.choice-card:hover {
    border-color: #79bcb5;
    background: #f6fffd;
    transform: translateY(-1px);
}

.choice-card.is-selected {
    border-color: #0f766e;
    background: #effcf9;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.choice-card input {
    width: 19px;
    height: 19px;
    min-height: auto;
    flex: 0 0 19px;
    margin: 0;
    accent-color: #0f766e;
    box-shadow: none;
}

.choice-card span,
.choice-card strong,
.choice-card small {
    display: block;
}

.choice-card strong {
    color: #263c39;
    font-size: 14px;
    line-height: 1.3;
}

.choice-card small {
    margin-top: 3px;
    color: #788580;
    font-size: 11px;
}

.dynamic-block + .dynamic-block {
    margin-top: 27px;
}

.input-with-unit {
    position: relative;
}

.input-with-unit input {
    padding-right: 54px;
}

.input-with-unit span {
    position: absolute;
    top: 50%;
    right: 15px;
    color: #64716d;
    transform: translateY(-50%);
    pointer-events: none;
}

.conditional-field {
    max-width: 330px;
    margin-top: 18px;
    padding: 17px;
    border: 1px solid #d6e6e2;
    border-radius: 13px;
    background: #f6fbfa;
}

.form-error {
    display: none;
    margin-bottom: 22px;
    padding: 12px 14px;
    border: 1px solid #f0aca6;
    border-radius: 10px;
    color: #9b1c14;
    background: #fff5f4;
    font-size: 14px;
    font-weight: 700;
}

.form-error.is-visible {
    display: block;
}

.request-summary {
    margin-top: 28px;
    padding: 18px;
    border: 1px solid #d6e7e3;
    border-radius: 14px;
    background: #f5fbfa;
}

.request-summary h3 {
    margin-bottom: 13px;
    color: #203c38;
    font-size: 17px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

.summary-grid p {
    margin: 0;
    color: #64716d;
    font-size: 13px;
}

.summary-grid strong {
    display: block;
    color: #263c39;
    font-size: 14px;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 20px;
    color: #52605c;
    font-size: 13px;
    cursor: pointer;
}

.privacy-details {
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid #d9e6e3;
    border-radius: 12px;
    color: #596963;
    background: #fafdfc;
    font-size: 12px;
}

.privacy-details summary {
    color: #30504a;
    font-weight: 800;
    cursor: pointer;
}

.privacy-details p {
    margin: 11px 0 0;
    line-height: 1.6;
}

.privacy-details a {
    color: #0f766e;
    font-weight: 800;
}

.consent-row input {
    width: 19px;
    height: 19px;
    min-height: auto;
    flex: 0 0 19px;
    margin-top: 1px;
    accent-color: #0f766e;
}

.consent-row a {
    color: #0f766e;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wizard-actions {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid #e3ebe9;
}

.wizard-actions [data-next],
.wizard-actions [data-submit] {
    margin-left: auto;
}

.secure-note {
    margin: 0 auto 0 0;
    color: #5a6964;
    font-size: 12px;
}

.secure-note span {
    color: #0f766e;
    font-weight: 800;
}

.submit-request {
    min-width: 235px;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.sticky-card {
    position: sticky;
    top: 24px;
    padding: 27px 25px;
}

.aside-kicker {
    margin-bottom: 8px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aside-card h2 {
    margin-bottom: 23px;
    color: #18332f;
    font-size: 23px;
}

.aside-card ul {
    display: grid;
    gap: 17px;
    margin: 0;
    padding: 0 0 23px;
    border-bottom: 1px solid #e0e9e7;
    list-style: none;
}

.aside-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.aside-card li > span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    border-radius: 999px;
    color: #fff;
    background: #0f766e;
    font-size: 12px;
    font-weight: 800;
}

.aside-card li p {
    margin: 0;
}

.aside-card li strong,
.aside-card li small {
    display: block;
}

.aside-card li strong {
    color: #2f4541;
    font-size: 14px;
}

.aside-card li small {
    color: #7b8884;
    font-size: 12px;
}

.aside-help {
    margin-top: 22px;
}

.form-footer {
    color: #d8e7e3;
    background: #102a27;
}

.form-footer > .container {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: 13px;
}

.form-footer p {
    margin: 0;
}

.form-footer nav {
    display: flex;
    gap: 20px;
}

.form-footer a:hover {
    color: #fff;
}

.result-main {
    min-height: calc(100vh - 146px);
    display: grid;
    place-items: center;
    padding: 55px 20px;
}

.result-card {
    width: min(100%, 760px);
    padding: 48px 50px;
    border: 1px solid #d8e8e4;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(15, 75, 70, 0.1);
    text-align: center;
}

.result-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    margin: 0 auto 22px;
    border-radius: 999px;
    color: #fff;
    background: #0f766e;
    font-size: 34px;
    font-weight: 800;
}

.result-card h1 {
    margin-bottom: 13px;
    color: #18332f;
    font-size: clamp(30px, 4vw, 43px);
}

.result-card > p:not(.eyebrow) {
    max-width: 620px;
    margin: 0 auto 28px;
    color: #66736f;
}

.result-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    margin-bottom: 30px;
    text-align: left;
}

.result-steps p {
    margin: 0;
    padding: 16px;
    border: 1px solid #dce9e6;
    border-radius: 13px;
    background: #f7fcfb;
}

.result-steps p > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    margin-bottom: 11px;
    border-radius: 9px;
    color: #0f766e;
    background: #ccfbf1;
    font-weight: 800;
}

.result-steps strong,
.result-steps small {
    display: block;
}

.result-steps strong {
    color: #2c423e;
    font-size: 14px;
}

.result-steps small {
    margin-top: 4px;
    color: #7b8783;
    font-size: 11px;
}

.result-error .result-icon {
    background: #dc4c41;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 11px;
}

@media (max-width: 980px) {
    .questionnaire-layout {
        grid-template-columns: 1fr;
    }

    .questionnaire-aside {
        order: -1;
    }

    .sticky-card {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1.7fr auto;
        align-items: center;
        gap: 22px;
        padding: 20px 22px;
    }

    .aside-kicker {
        grid-column: 1;
        margin: 0;
    }

    .aside-card h2 {
        grid-column: 1;
        margin: 0;
        font-size: 19px;
    }

    .aside-card ul {
        grid-column: 2;
        grid-row: 1 / 3;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
        padding: 0;
        border: 0;
    }

    .aside-help {
        grid-column: 3;
        grid-row: 1 / 3;
        margin: 0;
    }
}

@media (max-width: 740px) {
    .form-header-inner {
        min-height: 70px;
    }

    .form-header-help {
        display: none;
    }

    .questionnaire-main {
        padding: 20px 0 130px;
    }

    .questionnaire-layout {
        gap: 16px;
    }

    .questionnaire-aside {
        display: none;
    }

    .wizard-card {
        padding: 26px 20px 24px;
        border-radius: 16px;
    }

    .wizard-heading {
        padding: 30px 0 0;
    }

    .back-home {
        top: 0;
        right: auto;
        left: 0;
    }

    .wizard-heading h1 {
        font-size: 28px;
        line-height: 1.12;
    }

    .wizard-heading > p:last-child {
        font-size: 14px;
    }

    .progress-shell {
        margin: 24px 0 30px;
    }

    .step-indicators {
        display: none;
    }

    .step-heading {
        margin-bottom: 23px;
    }

    .step-heading h2 {
        font-size: 22px;
    }

    .step-heading p {
        font-size: 13px;
    }

    .single-question-wizard .question-stage {
        min-height: 350px;
    }

    .buyer-protection-faq {
        margin-top: 18px;
        padding: 19px 17px;
        font-size: 13px;
        line-height: 1.55;
    }

    .buyer-protection-faq h3 {
        font-size: 18px;
    }

    .buyer-protection-faq-columns {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .date-picker-wrap input[type="date"] {
        min-height: 58px;
        font-size: 16px;
    }

    .progress-copy span:last-child {
        max-width: 52%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .two-columns,
    .contact-grid,
    .address-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid .form-field:nth-child(4),
    .contact-grid .form-field:nth-child(5),
    .street-field,
    .number-field,
    .postcode-field,
    .city-field,
    .full-field {
        grid-column: auto;
    }

    .choice-grid,
    .choice-grid.two-choice,
    .single-choice-fieldset .choice-grid,
    .grouped-question {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .grouped-question .form-field:last-child:nth-child(odd),
    .address-question .form-field:last-child {
        grid-column: auto;
    }

    .choice-card {
        min-height: 56px;
        padding: 11px 13px;
    }

    .choice-fieldset,
    .dynamic-block + .dynamic-block {
        margin-top: 23px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .wizard-actions {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 100;
        min-height: 76px;
        margin: 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid #d6e3e0;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 -10px 30px rgba(15, 42, 39, 0.12);
        backdrop-filter: blur(12px);
    }

    .secure-note {
        display: none;
    }

    .wizard-actions [data-next],
    .wizard-actions [data-submit] {
        min-height: 50px;
        flex: 1 1 auto;
        margin-left: 0;
    }

    .wizard-actions [data-prev] {
        min-height: 50px;
        flex: 0 0 auto;
    }

    .submit-request {
        min-width: 0;
    }

    .form-footer > .container {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 18px;
    }

    .form-footer {
        padding-bottom: calc(88px + env(safe-area-inset-bottom));
    }

    .result-main {
        padding: 28px 14px;
    }

    .result-card {
        padding: 34px 21px;
        border-radius: 17px;
    }

    .result-steps {
        grid-template-columns: 1fr;
    }

    .result-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    .wizard-card {
        padding-inline: 16px;
    }

    .step-kicker {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .wizard-actions .button {
        padding-inline: 14px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .form-step.is-active {
        animation: none;
    }
}
