.feedback-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    color: var(--ink);
}

.feedback-page .site-header .header-inner {
    width: min(var(--max), calc(100% - 48px));
}

.feedback-page .main-nav {
    margin-right: clamp(22px, 5vw, 90px);
}

.feedback-main,
.survey-main {
    display: grid;
    flex: 1 0 auto;
    min-height: 58vh;
    padding: clamp(42px, 7vw, 84px) 24px;
    place-items: center;
    background: var(--cream);
}

.feedback-page .feedback-page,
.feedback-page .survey-page {
    width: min(100%, 760px);
    margin-inline: auto;
}

.feedback-card {
    width: 100%;
    padding: clamp(26px, 5vw, 52px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(52, 42, 31, .08);
}

.feedback-eyebrow {
    display: block;
    margin: 0 0 12px;
    color: var(--orange);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.5;
    text-transform: uppercase;
}

.feedback-card h1 {
    margin: 0 0 14px;
    color: var(--ink);
    font: 700 clamp(30px, 5vw, 42px)/1.15 Manrope, sans-serif;
    letter-spacing: -.04em;
}

.feedback-heading > p:last-child,
.survey-heading > p:last-child,
.feedback-success > p:not(.feedback-eyebrow) {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.feedback-form,
.survey-form {
    display: grid;
    gap: 22px;
    margin-top: 30px;
}

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

.feedback-fieldset legend,
.survey-question legend,
.feedback-field label {
    display: block;
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
}

.rating-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rating-options input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.rating-options label {
    display: grid;
    width: 44px;
    height: 44px;
    margin: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: #645d53;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.rating-options label:hover,
.rating-options input:checked + label {
    border-color: var(--orange);
    background: #fff0e9;
    color: #c7502b;
}

.rating-options input:focus-visible + label {
    outline: 3px solid rgba(231, 102, 59, .25);
    outline-offset: 2px;
}

.feedback-field textarea {
    display: block;
    width: 100%;
    min-height: 120px;
    padding: 13px 15px;
    border: 1px solid #ddd7cd;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: 400 14px/1.6 'DM Sans', sans-serif;
    resize: vertical;
}

.survey-options {
    display: grid;
    gap: 9px;
}

.survey-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.survey-option input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--orange);
}

.survey-form textarea {
    display: block;
    width: 100%;
    min-height: 120px;
    padding: 13px 15px;
    border: 1px solid #ddd7cd;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: 400 14px/1.6 'DM Sans', sans-serif;
    resize: vertical;
}

.survey-other-field {
    grid-column: 1 / -1;
    padding-left: 27px;
}

.feedback-field textarea::placeholder {
    color: #989187;
}

.feedback-field textarea:focus {
    border-color: var(--orange);
    outline: 3px solid rgba(231, 102, 59, .14);
}

.survey-form textarea:focus {
    border-color: var(--orange);
    outline: 3px solid rgba(231, 102, 59, .14);
}

.feedback-alert {
    margin: 22px 0 0;
    padding: 13px 15px;
    border: 1px solid #f2c6b7;
    border-radius: 12px;
    background: #fff2ec;
    color: #9f3f24;
    font-size: 14px;
    line-height: 1.5;
}

.feedback-submit,
.feedback-home-link,
.survey-home-link {
    display: inline-flex;
    width: fit-content;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 21px;
    border: 0;
    border-radius: 13px;
    background: var(--orange);
    box-shadow: 0 10px 18px rgba(231, 102, 59, .18);
    color: #fff;
    cursor: pointer;
    font: 700 14px/1 'DM Sans', sans-serif;
    transition: transform .18s ease, background .18s ease;
}

.feedback-submit:hover,
.feedback-home-link:hover {
    transform: translateY(-1px);
    background: #d95830;
}

.feedback-home-link {
    margin-top: 24px;
}

.survey-home-link {
    margin-top: 24px;
}

.feedback-page .site-footer {
    position: sticky;
    bottom: 0;
    z-index: 15;
    margin-top: auto;
    padding-block: 22px;
    background: var(--cream);
    box-shadow: 0 -1px 0 var(--line);
}

@media (max-width: 680px) {
    .feedback-page .site-header .header-inner {
        width: calc(100% - 36px);
    }

    .feedback-page .main-nav {
        margin-right: 0;
    }

    .feedback-main,
    .survey-main {
        min-height: 0;
        padding: 35px 18px;
    }

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

    .feedback-page .site-footer {
        padding-block: 22px;
    }
}
