.guest-feedback-section {
    position: relative;
    padding: 88px 0;
    background: #ede4d2;
}

.guest-feedback-section::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 18px;
    background: url('../images/village-border.svg') repeat-x center;
    background-size: 100px 18px;
    opacity: .55;
}

.guest-feedback-layout {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: clamp(34px, 6vw, 90px);
    align-items: start;
}

.guest-feedback-copy {
    padding-top: 30px;
}

.guest-feedback-copy .eyebrow {
    margin-bottom: 19px;
}

.guest-feedback-copy h2 {
    margin-bottom: 24px;
    font-size: clamp(36px, 4vw, 55px);
}

.guest-feedback-copy > p:not(.eyebrow) {
    max-width: 450px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.85;
}

.verified-stay-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 440px;
    margin-top: 31px;
    padding: 17px 18px;
    border: 1px solid #c8b48f;
    border-radius: 5px;
    background: #f8f2e6;
    color: #574936;
    font-size: 13px;
    line-height: 1.65;
}

.verified-stay-note::before {
    content: '✓';
    display: grid;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid #889072;
    border-radius: 50%;
    color: var(--olive);
    font-weight: 800;
}

.verified-stay-note strong {
    display: block;
    color: var(--ink);
    font-size: 13px;
}

/* A small village keeps the introduction balanced beside the form. */
.guest-feedback-side-card {
    position: relative;
    max-width: 440px;
    margin-top: 28px;
    padding: 28px 28px 22px;
    overflow: hidden;
    border: 1.5px solid rgba(233, 204, 160, 0.45);
    border-radius: 120px 120px 12px 12px;
    color: #f8f2e6;
    background:
        radial-gradient(ellipse 90% 65% at 50% 40%, rgba(233, 204, 160, 0.20) 0%, rgba(72, 83, 59, 0) 72%),
        linear-gradient(165deg, #4f5a41 0%, #3a4430 55%, #2a3222 100%);
    box-shadow: 0 18px 42px rgba(42, 50, 34, 0.28), 0 0 32px rgba(231, 198, 141, 0.16);
    text-align: center;
}
.feedback-village-art { margin: 2px -10px 14px; color: #e7c68d; }
.feedback-village-art svg { display: block; width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; --icon-tint: #586146; }
.guest-feedback-side-eyebrow { margin: 0 0 12px; color: #f0d4ab; font-size: 9px; font-weight: 800; letter-spacing: 1.6px; }
.guest-feedback-side-quote {
    display: inline-block;
    margin: 4px auto 0;
    padding: 6px 18px 7px;
    border-radius: 999px;
    background: rgba(233, 204, 160, 0.18);
    border: 1px solid rgba(233, 204, 160, 0.45);
    color: #ffffff;
    font-family: 'Gujarati Sangam MN', sans-serif;
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.guest-feedback-side-text { max-width: 320px; margin: 12px auto 0; color: #eee7d8; font-size: 13px; line-height: 1.8; }
.guest-feedback-side-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 22px; padding-top: 15px; border-top: 1px solid #e9cca044; color: #e6d8bd; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.guest-feedback-side-footer .icon { width: 20px; height: 20px; color: #e9cca0; }

.guest-feedback-card {
    padding: clamp(25px, 4vw, 42px);
    border: 1px solid #c5b18d;
    border-radius: 6px;
    background: var(--paper-light);
    box-shadow: 0 16px 36px rgba(79, 61, 35, .08);
}

.guest-feedback-card h3 {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 31px;
}

.guest-feedback-card > p {
    margin-bottom: 27px;
    color: var(--muted);
    font-size: 13.5px;
}

.feedback-alert {
    margin: 0 0 22px;
    padding: 14px 16px;
    border: 1px solid #dbc7a6;
    border-radius: 4px;
    background: #f8f1e2;
    color: #5c452d;
    font-size: 14px;
    line-height: 1.55;
}

.feedback-alert.success {
    border-color: #a8bf98;
    background: #edf5e8;
    color: #35512e;
}

.feedback-alert.error {
    border-color: #e0b6a2;
    background: #fcf0ea;
    color: #80351f;
}

.feedback-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

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

.feedback-form-grid > .full {
    grid-column: 1 / -1;
}

.feedback-field label,
.feedback-rating legend,
.feedback-choice legend {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .45px;
    text-transform: uppercase;
}

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

.feedback-type-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.feedback-type-options input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.feedback-type-options label {
    display: flex;
    align-items: center;
    min-height: 70px;
    position: relative;
    gap: 10px;
    padding: 15px 24px 15px 14px;
    border: 1px solid #cfbea0;
    border-radius: 5px;
    color: #514a3b;
    background: #fffdf7;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s, box-shadow .2s, transform .2s;
}

.feedback-type-options label:hover,
.feedback-type-options input:focus-visible + label {
    border-color: #a64d33;
    box-shadow: 0 0 0 3px rgba(153, 67, 45, .12);
    transform: translateY(-1px);
}

.feedback-type-options input:checked + label {
    border-color: var(--clay);
    color: #fffaf0;
    background: var(--clay);
    box-shadow: 0 8px 14px rgba(153, 67, 45, .16);
}

.feedback-type-mark {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 0;
    color: #a75236;
    font-size: 17px;
    line-height: 1;
}

.feedback-type-mark .icon { width: 25px; height: 25px; }

.feedback-type-options input:checked + label::after { content: '✓'; position: absolute; top: 7px; right: 8px; color: #f5d59e; font-size: 11px; }

.feedback-type-options input:checked + label .feedback-type-mark {
    color: #f5d59e;
}

.feedback-type-options strong,
.feedback-type-options small {
    display: block;
}

.feedback-type-options strong {
    font-size: 14px;
    line-height: 1.25;
}

.feedback-type-options small {
    margin-top: 3px;
    color: #7a705f;
    font-size: 10.5px;
    line-height: 1.35;
}

.feedback-type-options input:checked + label small {
    color: #f5e7cc;
}

.feedback-field input,
.feedback-field select,
.feedback-field textarea {
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #cfc0a5;
    border-radius: 4px;
    color: var(--ink);
    background: #fffdf7;
    font: inherit;
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}

.feedback-field textarea {
    min-height: 52px;
    height: 52px;
    line-height: 1.45;
    resize: none;
    overflow-y: hidden;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s, height .12s ease;
}

.feedback-field input:focus,
.feedback-field select:focus,
.feedback-field textarea:focus {
    outline: none;
    border-color: var(--clay);
    box-shadow: 0 0 0 3px rgba(153, 67, 45, .13);
}

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

/* Native radios preserve keyboard navigation and form validation. */
.rating-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    max-width: 370px;
    gap: 5px;
    padding: 8px;
    border: 1px solid #ddcfb5;
    border-radius: 7px;
    background: #f4ecdc;
}
.rating-options input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rating-options label { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 61px; gap: 6px; border: 1px solid transparent; border-radius: 5px; color: #77664b; cursor: pointer; transition: background .18s, border-color .18s; }
.rating-options label svg { width: 30px; height: 30px; fill: transparent; stroke: #987646; stroke-width: 1.4; stroke-linejoin: round; transition: fill .18s, transform .18s; }
.rating-options label small { font-size: 11px; font-weight: 700; line-height: 1; }
.rating-options label.is-filled svg { fill: #b37a31; stroke: #b37a31; }
.rating-options label:hover svg { transform: translateY(-2px); }
.rating-options input:focus-visible + label { outline: 2px solid var(--clay); outline-offset: 2px; }
.rating-options input:checked + label { border-color: #b28c52; color: var(--clay); background: #fffaf0; box-shadow: 0 2px 4px #7d562315; }
.rating-caption { margin: 9px 0 0; color: #75634c; font-size: 12px; line-height: 1.5; }
.feedback-rating[hidden] { display: none; }

.feedback-security {
    margin-top: 20px;
}

.feedback-security .security-check {
    align-items: flex-start;
    padding: 0;
}

.feedback-submit {
    width: 100%;
    margin-top: 20px;
    cursor: pointer;
}

.feedback-client-status {
    display: none;
    margin-top: 13px;
}

@media (max-width: 1100px) and (min-width: 901px) {
    .feedback-type-options { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .guest-feedback-section { padding-block: 40px; }
    .guest-feedback-layout { grid-template-columns: 1fr; gap: 24px; }
    .guest-feedback-copy { padding-top: 0; }
    .guest-feedback-copy h2 { font-size: clamp(24px, 6.5vw, 32px); line-height: 1.2; margin-bottom: 10px; }
    .guest-feedback-copy > p:not(.eyebrow), .verified-stay-note { max-width: none; }
    .guest-feedback-side-card { max-width: none; padding: 20px 16px; border-radius: 8px; }
    .feedback-village-art { max-width: 200px; margin: 0 auto 12px; }
    .guest-feedback-side-footer { max-width: 380px; margin-inline: auto; }
}
@media (max-width: 560px) {
    .guest-feedback-section { padding-block: 20px 22px; }
    .guest-feedback-layout { gap: 14px; }
    .guest-feedback-copy .eyebrow { font-size: 8px; margin-bottom: 3px; }
    .guest-feedback-copy h2 { font-size: clamp(21px, 6vw, 25px); line-height: 1.2; margin-bottom: 6px; }
    .guest-feedback-copy > p:not(.eyebrow) { font-size: 12px; line-height: 1.45; margin-bottom: 8px; }
    .verified-stay-note { margin-top: 8px; padding: 8px 10px; font-size: 11px; line-height: 1.4; gap: 7px; border-radius: 4px; }
    .verified-stay-note::before { width: 18px; height: 18px; flex: 0 0 18px; font-size: 10px; }
    .guest-feedback-card { padding: 13px 12px; border-radius: 7px; }
    .guest-feedback-card h3 { font-size: 18px; line-height: 1.2; margin-bottom: 3px; }
    .guest-feedback-card > p { font-size: 11.5px; line-height: 1.35; margin-bottom: 10px; }
    
    /* 2 Columns on Phone Screen: Phone Number & Email side-by-side */
    .feedback-form-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px 8px;
    }
    .feedback-form-grid > .full {
        grid-column: 1 / -1;
    }
    .feedback-field label,
    .feedback-rating legend,
    .feedback-choice legend {
        font-size: 10px;
        margin-bottom: 3px;
        font-weight: 700;
        letter-spacing: .3px;
    }
    .feedback-field input,
    .feedback-field select {
        padding: 8px 10px;
        font-size: 13px;
        min-height: 36px;
        border-radius: 4px;
    }
    .feedback-field textarea {
        min-height: 48px;
        height: 48px;
        padding: 7px 10px;
        font-size: 13px;
        line-height: 1.4;
        border-radius: 4px;
        resize: none;
        overflow-y: hidden;
    }
    
    /* Feedback and Review side-by-side in 1 single row on Phone */
    .feedback-type-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }
    .feedback-type-options label {
        min-height: 44px;
        padding: 6px 8px;
        gap: 6px;
        border-radius: 5px;
    }
    .feedback-type-mark {
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
    }
    .feedback-type-mark .icon {
        width: 17px;
        height: 17px;
    }
    .feedback-type-options strong {
        font-size: 12px;
        line-height: 1.2;
    }
    .feedback-type-options small {
        font-size: 9px;
        line-height: 1.2;
        margin-top: 1px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 95px;
        display: block;
    }
    .feedback-type-options input:checked + label::after {
        top: 3px;
        right: 5px;
        font-size: 9px;
    }

    .rating-options { gap: 2px; padding: 3px; }
    .rating-options label { min-height: 36px; padding: 2px; }
    .rating-options label svg { width: 18px; height: 18px; }
    .rating-caption { font-size: 10.5px; margin-top: 4px; }

    .feedback-security { margin-top: 8px; }
    .feedback-submit {
        margin-top: 10px;
        min-height: 38px;
        padding: 8px 12px;
        font-size: 12.5px;
    }

    .guest-feedback-side-card { padding: 12px 10px; margin-top: 10px; border-radius: 8px; }
    .feedback-village-art { max-width: 110px; margin: 0 auto 6px; }
    .guest-feedback-side-eyebrow { font-size: 7.5px; margin-bottom: 3px; }
    .guest-feedback-side-quote { font-size: 12.5px; padding: 3px 12px; margin-top: 2px; }
    .guest-feedback-side-text { font-size: 11px; line-height: 1.4; margin: 4px auto 0; }
    .guest-feedback-side-footer { margin-top: 8px; padding-top: 6px; font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
    .feedback-type-options label, .rating-options label, .rating-options label svg { transition: none; }
    .feedback-type-options label:hover, .rating-options label:hover svg { transform: none; }
}
