:root {
  --bg: #fbf7f2;
  --bg-shape: #f2e6d8;
  --surface: #ffffff;
  --text: #1b1b1b;
  --muted: #5d5a57;
  --accent: #b45a2b;
  --accent-dark: #8e421a;
  --border: #e7d9c8;
  --ok: #1f7a43;
  --error: #b42318;
  --shadow: 0 18px 40px rgba(63, 38, 18, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--text);
  background-image:
    linear-gradient(
      125deg,
      rgba(250, 246, 240, 0.82),
      rgba(245, 236, 224, 0.78)
    ),
    url("img/home.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100dvh;
}

.page {
  width: min(1120px, 92vw);
  margin: 1rem auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.2rem;
  align-items: start;
}

.hero {
  padding: 0.8rem 0.6rem;
  animation: fade-up 0.65s ease-out both;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-radius: 999px;
  background: #f6e8d9;
  color: #75452a;
  font-weight: 600;
}

h1,
h2,
legend {
  font-family: "Fraunces", Georgia, serif;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.8vw, 2.75rem);
  line-height: 1.1;
}

.lead {
  margin-top: 0.9rem;
  font-size: 1.03rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 50ch;
}

.pain-box {
  margin-top: 1rem;
  border: 1px solid var(--border);
  background: #fff7ef;
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
}

.pain-box h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.03rem;
}

.pain-points {
  margin: 0.55rem 0 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.4rem;
  color: #4e4640;
  font-size: 0.95rem;
}

.quick-note {
  margin: 0.85rem 0 0;
  color: #6e462a;
  font-weight: 600;
  font-size: 0.95rem;
}

.card {
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 1rem 1rem 1.1rem;
  animation: fade-up 0.8s ease-out both;
}

#form-shell[hidden],
.success-panel[hidden] {
  display: none;
}

h2 {
  margin: 0;
  font-size: 1.45rem;
}

.subtitle {
  margin: 0.2rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: 0;
  padding: 0.75rem;
}

fieldset + fieldset {
  margin-top: 0.7rem;
}

legend {
  padding: 0 0.3rem;
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 0.55rem;
}

.contact-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
}

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

.span-2 {
  grid-column: span 2;
}

label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.88rem;
  font-weight: 500;
}

input {
  width: 100%;
  border: 1px solid #d8c8b7;
  border-radius: 10px;
  padding: 0.55rem 0.68rem;
  font-size: 0.95rem;
  font: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  background: #fff;
}

small {
  display: block;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 90, 43, 0.2);
}

input:invalid[aria-invalid="true"] {
  border-color: var(--error);
}

.consent {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.5rem;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.86rem;
}

.consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
}

.consent a {
  color: var(--accent-dark);
  font-weight: 600;
}

.consent a:hover {
  text-decoration-thickness: 2px;
}

.captcha-wrap {
  margin-top: 0.8rem;
}

.verify-controls {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem;
  margin-top: 0;
  min-width: 220px;
}

.verify-controls input {
  width: 78px;
  text-align: center;
  letter-spacing: 0.08em;
  padding: 0.38rem 0.42rem;
  font-size: 0.82rem;
  justify-self: start;
}

.verify-btn {
  border: 1px solid #d4b99f;
  background: #fff5ec;
  color: #6d381c;
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.verify-controls .verify-btn {
  margin-top: 0;
  min-width: 88px;
  padding: 0.5rem 0.62rem;
}

.verify-btn:hover {
  filter: brightness(0.98);
}

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

.verify-message {
  min-height: 1.2em;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.phone-input-wrapper {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid #d8c8b7;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.phone-prefix {
  padding: 0.55rem 0.6rem;
  background: #f8ede1;
  color: #6d381c;
  border-right: 1px solid #e3d4c3;
  font-weight: 700;
}

.phone-input-wrapper input {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.phone-input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 90, 43, 0.2);
}

.phone-help {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.verify-message.success {
  color: var(--ok);
}

.verify-message.info {
  color: #0d6efd;
}

.verify-message.error {
  color: var(--error);
}

button {
  margin-top: 0.7rem;
  width: 100%;
  border: none;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--accent), #d97843);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.78rem 1rem;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    filter 0.2s ease;
}

button:hover {
  filter: brightness(1.05);
}

button:active {
  transform: translateY(1px);
}

.form-message {
  margin: 0.55rem 0 0;
  min-height: 1.1em;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-message.success {
  color: var(--ok);
}

.form-message.error {
  color: var(--error);
}

.success-panel {
  min-height: 480px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.9rem;
  padding: 2.4rem 1.2rem;
}

.success-check {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #4bd37b, var(--ok));
  color: #fff;
  font-size: 4rem;
  font-weight: 800;
  box-shadow: 0 18px 38px rgba(31, 122, 67, 0.28);
}

.success-title {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  color: var(--ok);
}

.success-text {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .page {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.8rem auto;
  }

  .hero {
    padding: 0.5rem;
  }

  .contact-line {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .verify-controls {
    min-width: 0;
  }
}

@media (min-width: 961px) {
  body {
    overflow: hidden;
  }

  .page {
    height: calc(100dvh - 2rem);
    align-items: center;
  }
}

@media (max-width: 640px) {
  .card {
    padding: 1.1rem 0.95rem 1.25rem;
    border-radius: 18px;
  }

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

  .span-2 {
    grid-column: auto;
  }

  h2 {
    font-size: 1.4rem;
  }
}
