:root {
  --cream: #faf6f1;
  --sand: #e5d8c8;
  --taupe: #c3b6a5;
  --taupe-soft: #a89d93;
  --gold: #d1b37a;
  --charcoal: #2d2a26;
  --shadow-soft: 0 18px 36px rgba(0, 0, 0, 0.12);
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top left, var(--cream) 0, var(--sand) 40%, #d9c7b4 100%);
  color: var(--charcoal);
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 20px 48px;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.field-error input,
.field-error select,
.field-error textarea {
  border-color: #ce4c4c;
  box-shadow: 0 0 0 3px rgba(206, 76, 76, 0.12);
}

.error-text {
  color: #ce4c4c;
  font-size: 12px;
  margin-top: 4px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6d5c4d;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border: 1px solid #e2d7c7;
  border-radius: 8px;
  background: #f8f2e9;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.back-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 32px;
  font-family: "Playfair Display", serif;
  letter-spacing: 0.02em;
}

.hero p {
  margin: 0;
  color: var(--taupe-soft);
  max-width: 640px;
  font-size: 15px;
  line-height: 1.5;
}

.title-icon {
  margin-right: 8px;
  color: var(--taupe-soft);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  color: var(--taupe-soft);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(209, 179, 122, 0.25);
}

.surface {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.9);
  margin-bottom: 14px;
}

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

.section-lead {
  margin: -6px 0 16px;
  color: var(--taupe-soft);
  font-size: 14px;
}

label {
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 600;
  display: block;
}

label input,
label select,
label textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--sand);
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  color: var(--charcoal);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(209, 179, 122, 0.25);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 10px;
}

.option-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 8px 0 0;
}

.option-list label {
  position: relative;
  border: 1px solid var(--sand);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.option-list label::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.option-list label:hover {
  border-color: var(--taupe-soft);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.option-list label:has(input:checked) {
  border-color: var(--gold);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(233, 221, 203, 0.94));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

.option-list label:has(input:checked)::after {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 6px rgba(209, 179, 122, 0.26);
}

.actions {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-top: 4px;
}

.actions .btn,
.actions .status {
  align-self: flex-end;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 14px;
  background: linear-gradient(120deg, #e2cda8, #d1b37a);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.status {
  color: var(--taupe-soft);
  font-size: 14px;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .page {
    padding: 40px 16px;
  }

  .hero {
    flex-direction: column;
  }

  .hero-actions {
    align-self: flex-start;
  }

  .pill {
    align-self: flex-start;
  }
}
