:root {
    --page-bg: #f6efe6;
    --page-bg-deep: #ead8c6;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --text: #1c1714;
    --text-soft: #6b6159;
    --line: rgba(54, 35, 20, 0.12);
    --accent: #0f766e;
    --accent-strong: #115e59;
    --accent-soft: rgba(15, 118, 110, 0.12);
    --success-soft: rgba(32, 158, 74, 0.12);
    --success-line: rgba(32, 158, 74, 0.26);
    --error-soft: rgba(203, 68, 49, 0.12);
    --error-line: rgba(203, 68, 49, 0.26);
    --shadow: 0 22px 60px rgba(38, 20, 7, 0.12);
    --radius-lg: 32px;
    --radius-md: 22px;
    --radius-sm: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Manrope", system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 34%),
        linear-gradient(160deg, var(--page-bg), var(--page-bg-deep));
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

.feedback-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 64px;
}

.feedback-shell--form {
    width: min(900px, calc(100% - 32px));
}

.hero,
.feedback-header,
.form-card,
.department-card {
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.hero,
.feedback-header {
    border-radius: var(--radius-lg);
    padding: 36px;
}

.feedback-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.feedback-topbar--hero {
    margin-bottom: 16px;
}

.language-switch {
    display: inline-flex;
    gap: 8px;
}

.language-switch__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.55);
    color: var(--text-soft);
    font-weight: 700;
}

.language-switch__link--active {
    background: var(--surface-strong);
    color: var(--text);
}

.hero__eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.hero__title {
    margin: 12px 0 0;
    font-family: "Fraunces", serif;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    max-width: 11ch;
}

.hero__copy {
    max-width: 54ch;
    margin: 18px 0 0;
    color: var(--text-soft);
    font-size: 17px;
}

.department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.department-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-radius: var(--radius-md);
    padding: 24px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.department-card:hover {
    transform: translateY(-4px);
}

.department-card__logo {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.48));
    border: 1px solid rgba(255, 255, 255, 0.7);
    font-weight: 700;
    color: var(--accent-strong);
    font-size: 18px;
    letter-spacing: 0.08em;
}

.department-card__logo::before {
    content: "CS";
}

.department-card__logo--hotel::before {
    content: "HOT";
}

.department-card__logo--spa::before {
    content: "SPA";
}

.department-card__logo--school::before {
    content: "SURF";
}

.department-card__logo--7seas::before {
    content: "7S";
}

.department-card__logo--weddings::before {
    content: "WED";
}

.department-card__name {
    font-size: 26px;
    font-family: "Fraunces", serif;
}

.department-card__summary {
    color: var(--text-soft);
}

.feedback-back {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    color: var(--text-soft);
    font-weight: 600;
}

.feedback-header__logo {
    margin-bottom: 22px;
}

.form-card {
    margin-top: 22px;
    border-radius: var(--radius-lg);
    padding: 30px;
}

.notice {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
}

.notice--success {
    background: var(--success-soft);
    border: 1px solid var(--success-line);
}

.notice--error {
    background: var(--error-soft);
    border: 1px solid var(--error-line);
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.feedback-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-field--error .feedback-input,
.feedback-field--error select {
    border-color: var(--error-line);
}

.feedback-field__label {
    display: inline-block;
    font-size: 17px;
    font-weight: 700;
}

.feedback-field__help,
.feedback-field__error,
.empty-copy {
    margin: 0;
    color: var(--text-soft);
}

.feedback-field__error {
    color: #b23b2a;
    font-size: 14px;
}

.required-mark {
    color: #b23b2a;
}

.feedback-input {
    width: 100%;
    min-height: 56px;
    padding: 15px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface-strong);
    color: var(--text);
}

.feedback-input--textarea {
    resize: vertical;
    min-height: 140px;
}

.feedback-input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.checkbox-options {
    display: grid;
    gap: 10px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface-strong);
}

.checkbox-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.rating-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}

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

.rating-stars__label {
    cursor: pointer;
    color: #d8cfc3;
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1;
    transition: transform 140ms ease, color 140ms ease, text-shadow 140ms ease;
}

.rating-stars__label:hover,
.rating-stars__label:hover ~ .rating-stars__label {
    color: #f2b93b;
    transform: translateY(-1px);
}

.rating-stars__input:checked ~ .rating-stars__label {
    color: #f2b93b;
    text-shadow: 0 6px 18px rgba(242, 185, 59, 0.28);
}

.rating-stars__input:focus-visible + .rating-stars__label {
    outline: 2px solid rgba(15, 118, 110, 0.35);
    outline-offset: 6px;
    border-radius: 6px;
}

.feedback-actions {
    padding-top: 8px;
}

.feedback-button {
    min-height: 56px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--accent-strong));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 700px) {
    .feedback-shell,
    .feedback-shell--form {
        width: min(100% - 20px, 1120px);
    }

    .hero,
    .feedback-header,
    .form-card {
        padding: 22px;
        border-radius: 24px;
    }

    .hero__title {
        font-size: clamp(34px, 12vw, 50px);
    }

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