:root {
  --bg: #f4efe6;
  --bg-accent: radial-gradient(circle at top left, rgba(190, 129, 53, 0.2), transparent 28%),
    linear-gradient(180deg, #f8f4eb 0%, #f2eadb 100%);
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --text: #241e16;
  --muted: #6d6255;
  --primary: #8f3d24;
  --primary-dark: #6f2e1b;
  --border: rgba(101, 74, 44, 0.16);
  --shadow: 0 18px 48px rgba(79, 49, 16, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background: var(--bg-accent);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  padding: 24px 14px 48px;
}

.page {
  width: min(100%, 860px);
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero {
  padding: 28px 22px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.2;
}

.lead {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  color: var(--primary-dark);
  font-size: 14px;
}

.form-card,
.admin-controls,
.stats-card,
.table-card {
  padding: 20px;
  margin-bottom: 18px;
}

.form-section + .form-section {
  margin-top: 28px;
}

.section-title h2,
.person-block h3 {
  margin: 0;
  font-size: 20px;
}

.section-title p,
.person-block p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.person-block {
  margin-top: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(143, 61, 36, 0.08);
  border-radius: 18px;
}

.person-block.secondary {
  background: rgba(255, 250, 245, 0.72);
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

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

.field span,
.choice-group legend {
  font-size: 14px;
  font-weight: 700;
}

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

input,
select,
textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(109, 98, 85, 0.2);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(143, 61, 36, 0.48);
  box-shadow: 0 0 0 4px rgba(143, 61, 36, 0.08);
}

.choice-group {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(109, 98, 85, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
}

.choice-group legend {
  margin-bottom: 12px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.option-grid.compact {
  gap: 10px;
}

.option-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.option-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.option-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(109, 98, 85, 0.22);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease,
    transform 0.15s ease;
}

.option-card input:checked + span {
  border-color: rgba(143, 61, 36, 0.62);
  background: linear-gradient(180deg, rgba(180, 83, 47, 0.12), rgba(143, 61, 36, 0.18));
  box-shadow: 0 8px 20px rgba(143, 61, 36, 0.12);
}

.option-card input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(143, 61, 36, 0.14);
}

.option-card:active span {
  transform: scale(0.98);
}

#hotel-nights-group[aria-disabled="true"] .option-card span,
#hotel-nights-group .option-card input:disabled + span {
  opacity: 0.42;
  background: rgba(247, 244, 239, 0.9);
}

.submit-panel {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(109, 98, 85, 0.14);
}

.tips {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.tips p {
  margin: 0;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--primary) 0%, #b4532f 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.66;
}

button.ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary-dark);
  border: 1px solid rgba(143, 61, 36, 0.2);
}

.form-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--primary-dark);
  line-height: 1.6;
}

.form-message.error {
  color: #b00020;
}

.admin-grid {
  margin-bottom: 16px;
}

.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.stats-grid article {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(109, 98, 85, 0.12);
}

.stats-grid span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.stats-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(109, 98, 85, 0.12);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

th {
  font-size: 14px;
  color: var(--muted);
}

.empty-row {
  text-align: center;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(143, 61, 36, 0.09);
  color: var(--primary-dark);
  font-size: 12px;
  margin-right: 6px;
  margin-bottom: 6px;
}

@media (min-width: 720px) {
  body {
    padding: 36px 20px 72px;
  }

  .hero,
  .form-card,
  .admin-controls,
  .stats-card,
  .table-card {
    padding: 28px;
  }

  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
