:root {
  --bg: #f7f1e8;
  --bg-accent: #efe2d2;
  --surface: rgba(255, 252, 247, 0.86);
  --surface-strong: #fffaf4;
  --border: rgba(92, 56, 28, 0.16);
  --text: #2d1d12;
  --muted: #6a5647;
  --brand: #bf5b2c;
  --brand-dark: #944319;
  --shadow: 0 28px 90px rgba(68, 35, 14, 0.13);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 32%),
    linear-gradient(135deg, #f7efe2 0%, #efdac7 52%, #ead8c5 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 75%);
}

.page-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 48px 20px 72px;
}

.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.45;
  pointer-events: none;
}

.hero-glow-left {
  top: -120px;
  left: -140px;
  background: radial-gradient(circle, rgba(255, 211, 170, 0.9), rgba(255, 211, 170, 0));
}

.hero-glow-right {
  right: -180px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(255, 175, 127, 0.75), rgba(255, 175, 127, 0));
}

.layout {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.intro-card,
.form-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.intro-card {
  padding: 36px;
}

.form-card {
  padding: 32px;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-dark);
}

h1,
h2 {
  font-family: "Fraunces", serif;
  line-height: 1.02;
  margin: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 6vw, 5.1rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.lead {
  max-width: 54ch;
  margin: 18px 0 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.intro-grid article {
  padding: 20px;
  background: rgba(255, 247, 239, 0.72);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(92, 56, 28, 0.1);
}

.intro-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.card-head,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(191, 91, 44, 0.1);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.92rem;
}

.stack {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

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

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

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

.field {
  display: grid;
  gap: 10px;
  font-weight: 700;
}

.field span,
.checkbox-field span {
  font-size: 0.96rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(92, 56, 28, 0.14);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: var(--surface-strong);
  transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(191, 91, 44, 0.64);
  box-shadow: 0 0 0 4px rgba(191, 91, 44, 0.12);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
  min-height: 144px;
}

.checkbox-field {
  min-height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(92, 56, 28, 0.14);
  background: var(--surface-strong);
  font-weight: 700;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 15px 22px;
  background: linear-gradient(135deg, var(--brand) 0%, #d46f3f 100%);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(191, 91, 44, 0.28);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(191, 91, 44, 0.34);
  filter: saturate(1.05);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  box-shadow: none;
}

.helper {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.helper.error {
  color: #9f2f1b;
}

.helper.success {
  color: #216641;
}

.hidden {
  display: none;
}

@media (max-width: 860px) {
  .intro-grid,
  .two-up,
  .three-up,
  .card-head,
  .actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .intro-card,
  .form-card {
    padding: 24px;
  }
}
