*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

body {
    font-family: 'DM Sans', sans-serif;
    background: #FAFAF8;
    color: #1A1A1A;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* ── TOPBAR ── */
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 40px;
    border-bottom: 1px solid #EBEBEB;
    background: #fff;
}
.brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
}
.brand-logo {
    width: 38px; height: 38px;
    object-fit: contain;
    transform: scale(2.2);
    margin-right: 6px;
}
.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem; font-weight: 900;
    color: #C0392B; letter-spacing: 0.01em; line-height: 1;
}
.brand-name em { font-style: italic; color: #B8860B; }
.back-link {
    font-size: 0.78rem; font-weight: 500;
    color: #999; text-decoration: none;
    transition: color 0.18s;
}
.back-link:hover { color: #C0392B; }

/* ── MAIN ── */
.main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    max-width: 1040px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 40px;
    gap: 64px;
    align-items: start;
}

/* ── LEFT — FORM ── */
.section-tag {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 20px;
    margin-bottom: 1.2rem;
}
.headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 900; line-height: 1.1;
    color: #1A1A1A; margin-bottom: 0.85rem;
}
.headline em { font-style: italic; color: #C0392B; }
.subtext {
    font-size: 0.9rem; color: #999;
    line-height: 1.75; font-weight: 300;
    margin-bottom: 2rem;
}

.form-card {
    background: #fff;
    border: 1px solid #EBEBEB;
    border-radius: 16px;
    padding: 28px 26px;
}

.field { margin-bottom: 12px; }
.field label {
    display: block;
    font-size: 0.67rem; font-weight: 600;
    letter-spacing: 0.09em; text-transform: uppercase;
    color: #BBB; margin-bottom: 5px;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    background: #FAFAF8;
    border: 1.5px solid #EBEBEB;
    border-radius: 8px;
    padding: 10px 13px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.86rem; color: #1A1A1A; outline: none;
    transition: border-color 0.18s;
    appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: #D4D4D4; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: #C0392B; background: #fff; }
.field select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23CCC' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }
.field select option[value=""] { color: #D4D4D4; }
.field textarea { resize: vertical; min-height: 88px; }

/* Star rating picker */
.star-row {
    display: flex; gap: 6px; margin-top: 2px;
}
.star-btn {
    background: none; border: none; cursor: pointer;
    font-size: 1.5rem; color: #E8E8E8; padding: 0;
    transition: color 0.15s, transform 0.1s;
    line-height: 1;
}
.star-btn.active,
.star-btn.hover { color: #C0392B; }
.star-btn:hover { transform: scale(1.15); }

.submit-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%;
    background: #C0392B; color: #fff;
    border: none; border-radius: 8px;
    padding: 13px 20px; margin-top: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.83rem; font-weight: 600;
    letter-spacing: 0.03em; cursor: pointer;
    transition: background 0.18s, transform 0.15s;
}
.submit-btn:hover { background: #A93226; transform: translateY(-1px); }
.submit-btn:disabled { background: #E0E0E0; color: #AAA; cursor: not-allowed; transform: none; }

/* form success */
.form-success { display: none; text-align: center; padding: 28px 0; }
.success-icon {
    width: 50px; height: 50px; background: #ECFDF5;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px; font-size: 1.3rem; color: #16A34A;
}
.form-success h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem; font-weight: 900; color: #1A1A1A; margin-bottom: 6px;
}
.form-success p { font-size: 0.81rem; color: #AAA; line-height: 1.6; font-weight: 300; margin-bottom: 14px; }
.another-btn {
    background: none; border: 1.5px solid #EBEBEB;
    border-radius: 8px; padding: 9px 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem; font-weight: 600; color: #999;
    cursor: pointer; transition: border-color 0.18s, color 0.18s;
}
.another-btn:hover { border-color: #C0392B; color: #C0392B; }

/* ── RIGHT — REVIEWS ── */
.reviews-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.reviews-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem; font-weight: 900; color: #1A1A1A;
}
.reviews-title em { font-style: italic; color: #C0392B; }
.avg-badge {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid #EBEBEB;
    border-radius: 30px; padding: 6px 14px;
}
.avg-num {
    font-family: 'Playfair Display', serif;
    font-size: 1rem; font-weight: 900; color: #C0392B;
}
.avg-stars { color: #C0392B; font-size: 0.78rem; letter-spacing: 2px; }
.avg-count { font-size: 0.72rem; color: #CCC; font-weight: 400; }

.review-list { display: flex; flex-direction: column; gap: 12px; }

.review-card {
    background: #fff;
    border: 1px solid #EBEBEB;
    border-radius: 12px;
    padding: 18px 20px;
    animation: fadeIn 0.3s ease both;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.review-top {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 8px; gap: 10px;
}
.review-name {
    font-weight: 600; font-size: 0.88rem; color: #1A1A1A; line-height: 1.2;
}
.review-place {
    font-size: 0.75rem; color: #BBB; font-weight: 300; margin-top: 2px;
}
.review-stars { color: #C0392B; font-size: 0.82rem; letter-spacing: 2px; flex-shrink: 0; }
.review-text { font-size: 0.83rem; color: #888; line-height: 1.65; font-weight: 300; }
.review-date { font-size: 0.68rem; color: #CCC; margin-top: 10px; }

/* ── VIEW ALL BUTTON ── */
.view-all-wrap {
    margin-top: 16px;
    text-align: center;
    display: none;
}
.view-all-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: #fff;
    border: 1.5px solid #EBEBEB;
    border-radius: 30px;
    padding: 10px 22px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem; font-weight: 600;
    color: #C0392B;
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
}
.view-all-btn:hover {
    border-color: #C0392B;
    box-shadow: 0 3px 12px rgba(192,57,43,0.12);
    transform: translateY(-1px);
}
.view-all-btn svg {
    width: 13px; height: 13px;
    transition: transform 0.2s;
}
.view-all-btn.expanded svg {
    transform: rotate(180deg);
}
.view-all-btn .btn-label { transition: none; }

.empty-state {
    background: #fff; border: 1px solid #EBEBEB;
    border-radius: 12px; padding: 36px 20px;
    text-align: center; color: #CCC; font-size: 0.85rem;
}

/* ── FOOTER ── */
.footer {
    border-top: 1px solid #EBEBEB;
    padding: 18px 40px;
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; flex-wrap: wrap; gap: 8px;
}
.footer span { font-size: 0.72rem; color: #CCC; }

/* ── TOAST ── */
.toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(60px);
    background: #1A1A1A; color: #fff;
    font-size: 0.79rem; padding: 10px 20px;
    border-radius: 30px; z-index: 999;
    transition: transform 0.3s ease; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 780px) {
    .main { grid-template-columns: 1fr; padding: 36px 20px; gap: 40px; }
    .topbar, .footer { padding: 16px 20px; }
}
@media (max-width: 420px) {
    .headline { font-size: 1.6rem; }
    .form-card { padding: 20px 16px; }
    .brand-logo { transform: scale(1.6); margin-right: 2px; }
}
