:root {
  --bg: #f4efe8;
  --bg-soft: rgba(255, 255, 255, 0.76);
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #fffdf9;
  --text: #1f2430;
  --muted: #616b7b;
  --line: rgba(31, 36, 48, 0.1);
  --line-strong: rgba(31, 36, 48, 0.16);
  --accent: #b86f52;
  --accent-deep: #8b523f;
  --accent-soft: rgba(184, 111, 82, 0.12);
  --cta-start: #efd7bb;
  --cta-end: #d8a982;
  --cta-shadow: rgba(78, 55, 39, 0.24);
  --success-bg: rgba(60, 128, 102, 0.12);
  --success-text: #1d6c53;
  --error-bg: rgba(177, 67, 67, 0.12);
  --error-text: #9b2f2f;
  --hero-deep: #1f2430;
  --hero-mid: #2f3646;
  --hero-soft: #dba57a;
  --shadow-xl: 0 30px 80px rgba(50, 40, 32, 0.14);
  --shadow-lg: 0 20px 48px rgba(50, 40, 32, 0.1);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(184, 111, 82, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(157, 169, 137, 0.14), transparent 24%),
    linear-gradient(180deg, #faf6f1 0%, #f5f0e8 40%, #efe9e1 100%);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

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

.site-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  color: #f8f4ee;
  background:
    radial-gradient(circle at left top, rgba(219, 165, 122, 0.26), transparent 22%),
    radial-gradient(circle at right 20%, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(135deg, var(--hero-deep) 0%, var(--hero-mid) 58%, #444c5f 100%);
}

.site-hero::before,
.site-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.site-hero::before {
  top: -120px;
  right: min(10vw, 140px);
  width: 360px;
  height: 360px;
  background: rgba(219, 165, 122, 0.12);
  filter: blur(8px);
}

.site-hero::after {
  left: -140px;
  bottom: -140px;
  width: 420px;
  height: 420px;
  background: rgba(255, 255, 255, 0.05);
  filter: blur(8px);
}

.site-hero__inner,
.page-shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-hero__inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 42px;
  padding: 52px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.88fr);
  gap: 34px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.hero__content,
.hero__summary,
.form-header,
.form-card,
.submit-panel {
  backdrop-filter: blur(20px);
}

.hero__content {
  padding: 68px 64px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-xl);
}

.eyebrow,
.form-header__eyebrow,
.hero-card__label {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 244, 238, 0.78);
}

.hero h1,
.form-header h2,
.submit-panel h2 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin-top: 22px;
  max-width: 11ch;
  font-size: clamp(3rem, 5vw, 5.1rem);
  line-height: 0.94;
}

.hero__lead {
  margin: 26px 0 0;
  max-width: 56ch;
  color: rgba(248, 244, 238, 0.76);
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  min-width: min(280px, 100%);
  padding: 0 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: #2c231d;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 20px 40px var(--cta-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(78, 55, 39, 0.3);
  filter: saturate(1.04);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero__badges span {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff9f2;
  font-size: 0.94rem;
}

.hero__summary {
  display: grid;
  gap: 18px;
  align-content: center;
}

.hero__footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 16px;
}

.hero-card,
.hero-metrics div {
  padding: 28px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-lg);
}

.hero-card__label {
  padding-inline: 0;
  background: transparent;
  color: rgba(248, 244, 238, 0.6);
}

.hero-card strong,
.hero-metrics strong {
  display: block;
  font-size: 1.16rem;
}

.hero-card p,
.hero-metrics span {
  display: block;
  margin: 10px 0 0;
  color: rgba(248, 244, 238, 0.74);
  line-height: 1.76;
}

.hero-metrics {
  display: grid;
  gap: 16px;
}

.page-shell {
  padding: 42px 0 78px;
}

.content {
  margin-top: 0;
}

.form-wrapper {
  display: grid;
  gap: 22px;
}

.form-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 22px;
  padding: 28px 30px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 249, 242, 0.78)),
    rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-lg);
}

.form-header__eyebrow {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.form-header h2 {
  margin-top: 16px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
}

.form-header p {
  margin: 0;
  align-self: end;
  color: var(--muted);
  line-height: 1.8;
}

.brief-form {
  display: grid;
  gap: 20px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.status-banner {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  line-height: 1.6;
}

.status-banner.is-success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid rgba(29, 108, 83, 0.18);
}

.status-banner.is-error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid rgba(155, 47, 47, 0.14);
}

.form-card {
  margin: 0;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.brief-form .form-card:first-of-type {
  margin-top: 100px;
}

.form-card legend {
  display: flex;
  float: left;
  width: 100%;
  align-items: center;
  gap: 14px;
  padding: 0;
  margin-top: 0;
  margin-bottom: 26px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.form-card > *:not(legend) {
  clear: both;
}

.card-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 800;
}

.card-intro {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.7;
}

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

.field {
  display: grid;
  gap: 10px;
}

.field--full {
  grid-column: 1 / -1;
}

.field span {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
}

.field em {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #858c9b;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--line-strong);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(184, 111, 82, 0.56);
  box-shadow: 0 0 0 4px rgba(184, 111, 82, 0.12);
  transform: translateY(-1px);
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-chip {
  appearance: none;
  border: 1px solid rgba(31, 36, 48, 0.1);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
}

.choice-chip:hover,
.choice-chip:focus-visible {
  border-color: rgba(184, 111, 82, 0.32);
  background: rgba(184, 111, 82, 0.08);
}

.choice-chip.is-applied {
  border-color: rgba(184, 111, 82, 0.38);
  background: rgba(184, 111, 82, 0.12);
  color: var(--accent-deep);
}

.submit-panel {
  display: grid;
  gap: 22px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(34, 41, 53, 0.96), rgba(63, 71, 84, 0.92)),
    rgba(34, 41, 53, 0.94);
  color: #f8f4ee;
  box-shadow: var(--shadow-xl);
}

.submit-panel h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.submit-panel p {
  margin: 12px 0 0;
  max-width: 72ch;
  color: rgba(248, 244, 238, 0.76);
  line-height: 1.75;
}

.legal-consent {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(248, 244, 238, 0.9);
  line-height: 1.7;
}

.legal-consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #e6ba92;
  flex: 0 0 auto;
}

.legal-consent a {
  color: #f5d0ae;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.legal-consent a:hover,
.legal-consent a:focus-visible {
  color: #fff5ea;
}

.submit-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 20px 28px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #f0d4b2, #d79a74);
  color: #232020;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(15, 14, 14, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(15, 14, 14, 0.28);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.84;
}

.submit-button__loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(35, 32, 32, 0.28);
  border-top-color: #232020;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.submit-button.is-loading .submit-button__loader {
  display: inline-flex;
}

.submit-button.is-loading .submit-button__label {
  opacity: 0.8;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .hero,
  .form-header {
    grid-template-columns: 1fr;
  }

  .site-hero {
    min-height: auto;
  }

  .site-hero__inner {
    min-height: 100vh;
    gap: 34px;
    padding: 46px 0 40px;
  }

  .hero {
    padding: 0;
  }

  .content {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .site-hero__inner,
  .page-shell {
    width: min(calc(100% - 20px), var(--container));
  }

  .site-hero__inner {
    min-height: auto;
    gap: 28px;
    padding: 34px 0 32px;
  }

  .page-shell {
    padding: 24px 0 40px;
  }

  .hero {
    gap: 22px;
    padding: 0;
  }

  .hero__content,
  .hero-card,
  .hero-metrics div,
  .form-header,
  .form-card,
  .submit-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .hero__lead {
    font-size: 1rem;
    line-height: 1.8;
  }

  .hero__footer {
    padding-bottom: 4px;
  }

  .hero__cta {
    width: 100%;
  }

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

  .legal-consent {
    padding: 16px;
  }
}
