:root {
    --brand-orange: #ef7d00;
    --brand-orange-dark: #d86f00;
    --brand-orange-soft: #fff3e5;
    --ink: #171717;
    --ink-soft: #505050;
    --line: #dedede;
    --surface: #ffffff;
    --surface-soft: #f6f6f4;
    --success: #177245;
    --danger: #b42318;
    --shadow: 0 24px 60px rgba(21, 21, 21, 0.10);
    --radius-lg: 22px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 0 0, rgba(239, 125, 0, 0.11), transparent 28rem),
        linear-gradient(180deg, #f9f9f7 0%, #f1f1ee 100%);
    line-height: 1.55;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

.page-shell {
    min-height: 100vh;
}

.brand-header {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    width: min(310px, 52vw);
    height: auto;
    display: block;
}

.support-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    color: var(--ink);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(23, 23, 23, 0.08);
    border-radius: 999px;
    padding: 10px 17px;
    box-shadow: 0 8px 24px rgba(21, 21, 21, 0.06);
}

.support-pill__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--ink-soft);
}

.support-pill strong {
    font-size: 1rem;
    color: var(--brand-orange-dark);
}

.form-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 52px;
    display: grid;
    grid-template-columns: minmax(290px, 0.78fr) minmax(0, 1.45fr);
    align-items: start;
    gap: 30px;
}

.intro-panel {
    position: sticky;
    top: 24px;
    overflow: hidden;
    min-height: 570px;
    border-radius: var(--radius-lg);
    color: #fff;
    background:
        linear-gradient(145deg, rgba(0, 0, 0, 0.96), rgba(28, 28, 28, 0.92)),
        #111;
    box-shadow: var(--shadow);
}

.intro-panel::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border: 60px solid rgba(239, 125, 0, 0.82);
    border-radius: 50%;
    right: -145px;
    top: -105px;
}

.intro-panel::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    background: rgba(239, 125, 0, 0.12);
    transform: rotate(45deg);
    left: -115px;
    bottom: -105px;
}

.intro-panel__inner {
    position: relative;
    z-index: 1;
    padding: 52px 42px;
}

.eyebrow,
.step-label {
    margin: 0 0 12px;
    font-weight: 800;
    font-size: 0.76rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--brand-orange);
}

.intro-panel h1 {
    margin: 0;
    max-width: 440px;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.intro-copy {
    margin: 24px 0 0;
    max-width: 510px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.03rem;
}

.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(239, 125, 0, 0.18);
    color: #fff;
    font-weight: 700;
    font-size: 0.86rem;
}

.time-badge span {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand-orange);
    color: #fff;
    font-size: 0.75rem;
}

.promise-card {
    margin-top: 34px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    backdrop-filter: blur(7px);
}

.promise-card h2 {
    margin: 0 0 13px;
    font-size: 1rem;
}

.promise-card ul {
    margin: 0;
    padding-left: 19px;
    color: rgba(255, 255, 255, 0.72);
}

.promise-card li + li {
    margin-top: 8px;
}

.privacy-note {
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.8rem;
}

.feedback-card {
    background: var(--surface);
    border: 1px solid rgba(23, 23, 23, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 42px;
}

.feedback-card__header {
    margin-bottom: 30px;
}

.feedback-card__header h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.feedback-card__header p:last-child {
    color: var(--ink-soft);
    margin-bottom: 0;
}

.required-mark {
    color: var(--brand-orange-dark);
}

.alert {
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 24px;
}

.alert ul {
    margin-bottom: 0;
}

.alert-error {
    border: 1px solid #f5b7b1;
    background: #fff4f2;
    color: var(--danger);
}

fieldset {
    min-width: 0;
    border: 0;
    padding: 0;
    margin: 0;
}

fieldset + fieldset {
    border-top: 1px solid var(--line);
    margin-top: 34px;
    padding-top: 34px;
}

legend {
    width: 100%;
    margin-bottom: 20px;
    padding: 0;
    font-size: 1.14rem;
    font-weight: 800;
}

.fieldset-help {
    margin: -12px 0 18px;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.field-grid {
    display: grid;
    gap: 20px;
}

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

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

.form-field label,
.field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 750;
}

.form-field small {
    display: block;
    margin-top: 7px;
    color: #737373;
    font-size: 0.76rem;
}

input[type="text"],
input[type="date"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    border: 1px solid #cdcdcd;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    padding: 13px 14px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #a9a9a9;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 4px rgba(239, 125, 0, 0.14);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.09);
}

textarea {
    resize: vertical;
    min-height: 112px;
}

.rating-block {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.rating-question {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    background: #fff;
}

.rating-question + .rating-question {
    border-top: 1px solid var(--line);
}

.rating-question > div:first-child label {
    display: block;
    font-weight: 800;
    font-size: 0.92rem;
}

.rating-question small {
    display: block;
    margin-top: 3px;
    color: #757575;
    font-size: 0.77rem;
}

.rating-question select {
    min-width: 145px;
}

.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}

.star-rating input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.star-rating label {
    width: 32px;
    height: 32px;
    overflow: hidden;
    color: transparent;
    cursor: pointer;
    position: relative;
}

.star-rating label::before {
    content: "★";
    position: absolute;
    inset: 0;
    color: #d1d1d1;
    font-size: 1.72rem;
    line-height: 32px;
    text-align: center;
    transition: transform 130ms ease, color 130ms ease;
}

.star-rating label:hover::before,
.star-rating label:hover ~ label::before,
.star-rating input:checked ~ label::before {
    color: var(--brand-orange);
    transform: translateY(-1px);
}

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

.choice-card {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    background: var(--surface-soft);
}

.choice-card:has(input:checked) {
    border-color: var(--brand-orange);
    background: var(--brand-orange-soft);
}

.choice-card input {
    accent-color: var(--brand-orange);
}

.consent-box {
    margin-top: 28px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.consent-box label {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    cursor: pointer;
    font-size: 0.84rem;
    color: var(--ink-soft);
}

.consent-box input {
    margin-top: 4px;
    accent-color: var(--brand-orange);
}

.submit-button {
    width: 100%;
    border: 0;
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
    font-weight: 850;
    letter-spacing: 0.015em;
    cursor: pointer;
    box-shadow: 0 13px 28px rgba(239, 125, 0, 0.24);
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(239, 125, 0, 0.31);
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.form-footer-note {
    margin: 16px 0 0;
    text-align: center;
    font-size: 0.8rem;
    color: #686868;
}

.form-footer-note a {
    color: var(--brand-orange-dark);
    font-weight: 750;
    text-decoration: none;
}

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

.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 34px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #717171;
    font-size: 0.78rem;
}

.site-footer p {
    margin: 0;
}

/* Thank-you and status screens */
.status-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.status-card {
    width: min(650px, 100%);
    padding: 46px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid rgba(23, 23, 23, 0.08);
    box-shadow: var(--shadow);
    text-align: center;
}

.status-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 19px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--success);
    font-size: 2rem;
    font-weight: 900;
}

.status-card h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: -0.04em;
}

.status-card > p {
    color: var(--ink-soft);
}

.reference-box {
    margin: 24px 0;
    padding: 17px;
    border-radius: 12px;
    background: var(--brand-orange-soft);
    color: var(--ink);
}

.reference-box strong {
    display: block;
    color: var(--brand-orange-dark);
    font-size: 1.12rem;
    margin-top: 4px;
}

.status-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.status-actions a {
    text-decoration: none;
    border-radius: 9px;
    padding: 12px 17px;
    font-weight: 750;
}

.action-primary {
    color: #fff;
    background: var(--brand-orange);
}

.action-secondary {
    color: var(--ink);
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

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

    .intro-panel {
        position: relative;
        top: auto;
        min-height: 0;
    }

    .intro-panel__inner {
        padding: 38px 32px;
    }
}

@media (max-width: 640px) {
    .brand-header {
        min-height: 78px;
    }

    .support-pill {
        display: none;
    }

    .form-layout {
        width: min(100% - 20px, 1180px);
        margin-top: 8px;
        gap: 15px;
    }

    .feedback-card {
        padding: 28px 19px;
        border-radius: 16px;
    }

    .intro-panel {
        border-radius: 16px;
    }

    .intro-panel__inner {
        padding: 32px 24px;
    }

    .promise-card {
        display: none;
    }

    .field-grid--two,
    .choice-row {
        grid-template-columns: 1fr;
    }

    .rating-question {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .rating-question select {
        min-width: 0;
        width: 100%;
    }

    .site-footer {
        width: min(100% - 28px, 1180px);
        flex-direction: column;
        text-align: center;
    }

    .status-card {
        padding: 36px 22px;
    }
}
