:root {
  --sage: #a7ad89;
  --cream: #dbd0c4;
  --moss: #8c916c;
  --sand: #b69c85;
  --forest: #697254;
  --earth: #92735c;

  --bg: #f3eee7;
  --surface: #fbf8f3;
  --text: #4a4234;
  --text-soft: #7a6f5e;
  --border: #e3dacd;

  --radius: 18px;
  --shadow: 0 18px 50px -22px rgba(74, 66, 52, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Jost", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(167, 173, 137, 0.35), transparent 60%),
    radial-gradient(1000px 500px at 110% 110%, rgba(182, 156, 133, 0.35), transparent 55%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}

.card {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 30px 22px;
}

.card__header {
  display: flex;
  justify-content: center;
}

.logo {
  width: 180px;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.intro {
  text-align: center;
  margin-top: 6px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--moss);
  margin: 0 0 6px;
}

.intro h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 2.5rem;
  letter-spacing: 0.04em;
  color: var(--forest);
  margin: 0 0 12px;
}

.lead {
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 auto;
  max-width: 38ch;
}

.lead strong {
  font-weight: 500;
  color: var(--earth);
}

.form {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.field label {
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--forest);
}

.field .optional {
  color: var(--text-soft);
  font-weight: 300;
}

input,
textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: #b6ab98;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(167, 173, 137, 0.28);
}

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

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: #c0654f;
  box-shadow: 0 0 0 3px rgba(192, 101, 79, 0.18);
}

.btn {
  position: relative;
  margin-top: 4px;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #fbf8f3;
  background: var(--forest);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.05s ease, opacity 0.18s ease;
}

.btn:hover {
  background: #5a634a;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -3px;
  animation: spin 0.7s linear infinite;
}

.btn.is-loading .btn__spinner {
  display: inline-block;
}

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

.form__status {
  margin: 2px 0 0;
  min-height: 1.2em;
  font-size: 0.9rem;
  text-align: center;
  color: #c0654f;
}

.success {
  text-align: center;
  padding: 18px 6px 4px;
  animation: fade-in 0.4s ease;
}

.success__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #fff;
  background: var(--sage);
  border-radius: 50%;
}

.success h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 2rem;
  color: var(--forest);
  margin: 0 0 10px;
}

.success p {
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 auto;
  max-width: 36ch;
}

.card__footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.card__footer p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 420px) {
  .card {
    padding: 26px 20px 18px;
  }
  .intro h1 {
    font-size: 2.1rem;
  }
}
