:root {
  --bg: #f4efe4;
  --panel: rgba(255, 252, 245, 0.85);
  --ink: #1d2a33;
  --muted: #5f6e77;
  --accent: #c7512f;
  --accent-dark: #8f3119;
  --line: rgba(29, 42, 51, 0.12);
  --success: #2a7d4f;
  --warning: #8c6d1f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(199, 81, 47, 0.25), transparent 34%),
    linear-gradient(180deg, #f8f3ea 0%, #efe5d4 100%);
}

.shell {
  width: min(960px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero {
  padding: 8px 4px 20px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--accent-dark);
}

h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.muted {
  color: var(--muted);
  white-space: pre-line;
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(53, 42, 28, 0.08);
}

.banner {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(140, 109, 31, 0.12);
  color: var(--warning);
}

.hidden {
  display: none;
}

.form {
  display: grid;
  gap: 18px;
}

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

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

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

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

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
}

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

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 16px;
}

textarea {
  resize: vertical;
}

.grid > * {
  min-width: 0;
}

.phone-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.phone-prefix {
  padding: 14px 0 14px 16px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.phone-field input {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
}

input[type="date"] {
  min-width: 0;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.checkbox input {
  width: 18px;
  height: 18px;
}

.ghost-field {
  visibility: hidden;
}

button {
  border: 0;
  border-radius: 16px;
  padding: 14px 20px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

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

button:disabled {
  cursor: default;
  opacity: 0.6;
  transform: none;
}

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

.submit {
  color: white;
  background: linear-gradient(135deg, #c7512f, #8f3119);
  box-shadow: 0 16px 22px rgba(143, 49, 25, 0.28);
}

.secondary {
  color: white;
  background: linear-gradient(135deg, #cf2b22, #ff2a2a);
  box-shadow: 0 10px 18px rgba(207, 43, 34, 0.24);
}

.tertiary {
  color: white;
  background: linear-gradient(135deg, #708e86, #5e7b74);
}

@media (max-width: 720px) {
  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 18px;
    border-radius: 22px;
  }

  .actions {
    flex-direction: column;
  }
}
