.feedback-page {
    min-height: 100vh;
    background: #fbfaf7;
    color: #201915;
}

.feedback-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem clamp(1rem, 4vw, 2rem);
    background: rgba(251, 250, 247, 0.94);
    border-bottom: 1px solid rgba(32, 25, 21, 0.08);
    backdrop-filter: blur(14px);
}

.feedback-logo {
    width: 96px;
    height: auto;
    object-fit: contain;
}

.feedback-lang,
.feedback-home {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 42px;
    width: fit-content;
    border: 1px solid rgba(193, 34, 57, 0.18);
    border-radius: 8px;
    background: #fff;
    color: #8b1e2d;
    font-weight: 800;
    padding: 0.45rem 0.7rem;
}

.feedback-home {
    justify-self: end;
    width: 42px;
    justify-content: center;
}

.feedback-shell {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem) 1rem 4rem;
}

.feedback-hero {
    padding: clamp(1.2rem, 4vw, 2.6rem) 0 1.2rem;
}

.feedback-hero h1 {
    max-width: 13ch;
    margin: 0;
    color: #231915;
    font-size: clamp(2.05rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 0.95;
}

.feedback-hero p {
    max-width: 36rem;
    margin-top: 1rem;
    color: #76675e;
    font-size: 1.08rem;
    line-height: 1.65;
}

.feedback-form {
    display: grid;
    gap: 0.9rem;
}

.feedback-panel,
.feedback-done {
    background: #fff;
    border: 1px solid rgba(32, 25, 21, 0.08);
    border-radius: 8px;
    padding: clamp(1rem, 3vw, 1.4rem);
    box-shadow: 0 10px 28px rgba(32, 25, 21, 0.05);
}

.panel-heading,
.metric-section__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.panel-heading h2,
.metric-section__head h3,
.feedback-done h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.2;
}

.panel-mark {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #e9f2de;
    color: #2e5b35;
    font-size: 0.9rem;
    font-weight: 900;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.feedback-field {
    display: grid;
    gap: 0.4rem;
}

.feedback-field span,
.rating-field legend,
.segmented-field legend,
.metric-row legend {
    color: #4b4039;
    font-size: 0.92rem;
    font-weight: 850;
}

.feedback-field span em {
    margin-inline-start: 0.35rem;
    color: #8a7b72;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
}

.required-label {
    margin-inline-start: 0.35rem;
    color: #9f1d30;
    font-size: 0.78rem;
    font-weight: 900;
}

.feedback-field input,
.feedback-field select,
.feedback-field textarea {
    width: 100%;
    min-height: 46px;
    border: 1.5px solid #e5dfd8;
    border-radius: 8px;
    background: #fff;
    color: #201915;
    font: inherit;
    font-size: 1rem;
    padding: 0.65rem 0.8rem;
    outline: none;
}

.feedback-field textarea {
    resize: vertical;
    min-height: 100px;
}

.feedback-field input:focus,
.feedback-field select:focus,
.feedback-field textarea:focus {
    border-color: #c12239;
    box-shadow: 0 0 0 3px rgba(193, 34, 57, 0.1);
}

.feedback-field input:disabled,
.feedback-field select:disabled,
.feedback-field textarea:disabled {
    background: #f7f3ef;
    color: #76675e;
    cursor: not-allowed;
}

.feedback-field .iti {
    width: 100%;
}

.feedback-field .iti input {
    width: 100%;
}

.feedback-field .iti__search-input {
    min-height: 40px;
    border-radius: 8px;
    border: 1px solid #e5dfd8;
    font: inherit;
}

.order-lookup-status {
    color: #76675e;
    font-size: 0.84rem;
    font-weight: 800;
}

.order-lookup-status.is-searching {
    color: #7c5700;
}

.order-lookup-status.is-found {
    color: #2e5b35;
}

.order-lookup-status.is-missing,
.order-lookup-status.is-error {
    color: #9b1c1c;
}

.rating-field,
.segmented-field,
.metric-row {
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0;
}

.rating-field + .segmented-field,
.segmented-field + .segmented-field,
.metric-row + .metric-row {
    margin-top: 1rem;
}

.star-rating,
.segmented-field,
.metric-options,
.product-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.star-rating {
    margin-top: 0.5rem;
}

.star-rating label,
.segmented-field label,
.metric-options label,
.product-chip {
    cursor: pointer;
}

.star-rating input,
.segmented-field input,
.metric-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.star-rating span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1.5px solid #e5dfd8;
    border-radius: 8px;
    color: #76675e;
    font-weight: 900;
}

.star-rating input:checked + span,
.segmented-field input:checked + span,
.metric-options input:checked + span {
    border-color: #c12239;
    background: #fff1f3;
    color: #9f1d30;
}

.segmented-field span,
.metric-options span,
.product-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1.5px solid #e5dfd8;
    border-radius: 8px;
    background: #fff;
    color: #4b4039;
    font-weight: 800;
    line-height: 1.15;
    padding: 0.55rem 0.78rem;
}

.product-picker {
    margin-bottom: 1rem;
}

.selection-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 1rem;
}

.selector-label {
    margin-bottom: 0.45rem;
    color: #4b4039;
    font-size: 0.92rem;
    font-weight: 850;
}

.section-note {
    margin: -0.3rem 0 1rem;
    color: #76675e;
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.45;
}

.dynamic-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dynamic-picker--items {
    max-height: 18rem;
    overflow: auto;
    padding-inline-end: 0.25rem;
}

.item-filter-row {
    margin-bottom: 0.5rem;
}

.item-filter-row input {
    width: 100%;
    min-height: 42px;
    border: 1.5px solid #e5dfd8;
    border-radius: 8px;
    background: #fff;
    color: #201915;
    font: inherit;
    font-size: 1rem;
    padding: 0.55rem 0.75rem;
}

.product-chip {
    gap: 0.45rem;
    font: inherit;
}

.product-chip small {
    display: block;
    width: 100%;
    color: #8a7b72;
    font-size: 0.75rem;
    font-weight: 750;
}

.item-chip {
    flex-direction: column;
    align-items: flex-start;
    min-width: min(100%, 13rem);
}

.product-chip.is-selected {
    border-color: #2e5b35;
    background: #eef6e7;
    color: #244629;
}

.product-chip:disabled {
    cursor: default;
    opacity: 1;
}

.metric-section {
    border-top: 1px solid rgba(32, 25, 21, 0.08);
    padding-top: 1rem;
}

.metric-section + .metric-section {
    margin-top: 1rem;
}

.metric-section__clear {
    margin-inline-start: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 34px;
    border: 0;
    border-radius: 8px;
    background: #f7f2ec;
    color: #76675e;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 0.35rem 0.55rem;
    cursor: pointer;
}

.reviewed-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: -0.35rem 0 0.9rem;
}

.reviewed-items span {
    border-radius: 8px;
    background: #f7f2ec;
    color: #4b4039;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.22rem 0.5rem;
}

.empty-form-note {
    border: 1px dashed #d7cec5;
    border-radius: 8px;
    background: #fffaf4;
    color: #76675e;
    font-weight: 800;
    padding: 0.85rem;
}

.metric-row legend em {
    color: #c12239;
    font-style: normal;
    margin-inline-start: 0.2rem;
}

.discount-toggle {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: start;
    border: 1.5px solid #eadfc9;
    border-radius: 8px;
    background: #fffaf0;
    padding: 0.95rem;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.discount-toggle input {
    position: absolute;
    opacity: 0;
}

.discount-toggle:hover,
.discount-toggle:has(input:focus-visible) {
    border-color: #d6a51b;
    box-shadow: 0 0 0 3px rgba(214, 165, 27, 0.14);
}

.discount-toggle:has(input:checked) {
    border-color: #c12239;
    background: #fff1f3;
}

.discount-toggle__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #fff5d6;
    color: #7c5700;
}

.discount-toggle strong,
.discount-toggle small {
    display: block;
}

.discount-toggle small,
.consent-row {
    color: #76675e;
    font-size: 0.92rem;
}

.discount-fields {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(32, 25, 21, 0.08);
}

.consent-row {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin-top: 0.8rem;
}

.consent-row input {
    width: 18px;
    height: 18px;
    margin-top: 0.22rem;
    accent-color: #c12239;
}

.otp-panel {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.85rem;
    border: 1px solid #e5dfd8;
    border-radius: 8px;
    background: #fff;
    padding: 0.85rem;
    animation: otp-reveal 220ms ease-out;
}

.otp-panel.is-verified {
    border-color: #b8d7a9;
    background: #f4faef;
}

.otp-panel__status,
.otp-panel__actions,
.otp-code-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.otp-panel__status {
    color: #4b4039;
    font-weight: 850;
}

.otp-panel__status svg {
    color: #2e5b35;
    flex: 0 0 auto;
}

.otp-code-row {
    animation: otp-slide 180ms ease-out;
}

.otp-code-row input {
    width: min(100%, 10rem);
    min-height: 42px;
    border: 1.5px solid #e5dfd8;
    border-radius: 8px;
    background: #fff;
    color: #201915;
    font: inherit;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-align: center;
    padding: 0.5rem 0.7rem;
}

.otp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 42px;
    border: 1px solid #d9cfc4;
    border-radius: 8px;
    background: #f7f2ec;
    color: #4b4039;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    padding: 0.55rem 0.8rem;
}

.otp-button--verify {
    background: #2e5b35;
    color: #fff;
    border-color: #2e5b35;
}

.otp-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.otp-hint {
    color: #76675e;
    font-weight: 750;
}

@keyframes otp-reveal {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes otp-slide {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-submit-row {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: grid;
    gap: 0.65rem;
    padding: 0.8rem 0 calc(0.8rem + env(safe-area-inset-bottom, 0));
    background: linear-gradient(180deg, rgba(251, 250, 247, 0), #fbfaf7 24%);
}

.feedback-error {
    margin: 0;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff0f0;
    color: #9b1c1c;
    font-weight: 800;
    padding: 0.65rem 0.8rem;
}

.feedback-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    background: #c12239;
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    padding: 0.75rem 1rem;
}

.feedback-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.feedback-done {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
    text-align: center;
}

.done-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto;
    border-radius: 8px;
    background: #e9f2de;
    color: #2e5b35;
}

.feedback-done p {
    margin: 0 auto;
    max-width: 32rem;
    color: #76675e;
}

.promo-code-box {
    display: grid;
    gap: 0.2rem;
    width: min(100%, 320px);
    margin: 0.2rem auto;
    border: 1px dashed #c12239;
    border-radius: 8px;
    background: #fff8f2;
    color: #8b1e2d;
    padding: 0.8rem;
}

.promo-code-box strong {
    color: #201915;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
}

.qr-toggle,
.promo-qr__actions a,
.promo-qr__actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 40px;
    border: 1px solid #e5dfd8;
    border-radius: 8px;
    background: #fff;
    color: #8b1e2d;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
}

.promo-qr {
    display: grid;
    justify-items: center;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.promo-qr img {
    width: 180px;
    height: 180px;
    border: 1px solid #e5dfd8;
    border-radius: 8px;
    background: #fff;
    padding: 0.4rem;
}

.promo-qr__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.google-review-box {
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    width: min(100%, 360px);
    margin: 0.2rem auto;
    border: 1px solid #d9e2d3;
    border-radius: 8px;
    background: #f4faef;
    color: #2e5b35;
    padding: 0.9rem;
}

.google-review-box span {
    font-weight: 900;
}

.google-review-box p {
    margin: 0;
    color: #4f6449;
}

.google-review-box a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 42px;
    border-radius: 8px;
    background: #2e5b35;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    padding: 0.55rem 0.85rem;
}

.feedback-submit--link {
    justify-self: center;
    width: min(100%, 320px);
}

[hidden] {
    display: none !important;
}

@media (max-width: 620px) {
    .field-grid {
        grid-template-columns: 1fr;
    }

    .selection-layout {
        grid-template-columns: 1fr;
    }

    .feedback-hero h1 {
        max-width: 11ch;
    }

    .metric-options {
        display: grid;
        grid-template-columns: 1fr;
    }

    .metric-options span,
    .segmented-field span {
        width: 100%;
    }
}
