:root {
  --bg: #f5f1e9;
  --fg: #1f2a2e;
  --muted: #5a6a6e;
  --accent: #2f6f62;
  --card: #ffffff;
  --ring: rgba(47, 111, 98, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Serif 4", "Georgia", serif;
  color: var(--fg);
  background: var(--bg);
}

.bg {
  position: fixed;
  inset: -40px;
  background:
    linear-gradient(120deg, rgba(245, 241, 233, 0.6), rgba(232, 244, 239, 0.7)),
    url("bg.jpg") center / cover no-repeat;
  filter: blur(5px) saturate(1.05);
  transform: scale(1.03);
  z-index: 0;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 12% 10%, rgba(255, 247, 231, 0.8) 0%, transparent 60%),
    radial-gradient(900px 420px at 90% 90%, rgba(232, 244, 239, 0.7) 0%, transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.wrap {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 48px 20px 24px;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.card {
  width: min(760px, 100%);
  background: var(--card);
  border-radius: 24px;
  padding: 40px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.08),
    0 2px 12px rgba(0, 0, 0, 0.06);
}

.badge {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--ring);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(32px, 6vw, 56px);
  margin: 0 0 12px;
}

.lead {
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 28px;
}

.cta {
  background: #f8f6f2;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid #efe6d6;
}

.cta-title {
  margin: 0 0 12px;
  font-weight: 600;
}

.flash {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.flash--success {
  background: #e7f3ed;
  color: #1f4f3f;
  border: 1px solid #cfe6db;
}

.flash--error {
  background: #fdecec;
  color: #7a2f2f;
  border: 1px solid #f6caca;
}

.flash--info {
  background: #eef3f7;
  color: #2e3f4a;
  border: 1px solid #d7e3ee;
}

.form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

input[type="email"] {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d6dcd6;
  font-size: 16px;
  background: white;
}

input[type="text"],
textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d6dcd6;
  font-size: 16px;
  background: white;
  font-family: inherit;
}

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

button {
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 16px;
  cursor: pointer;
}

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

.note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.contact {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
}

.contact-details {
  width: 100%;
}

.contact-details summary {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.contact-details summary::-webkit-details-marker {
  display: none;
}

.contact-details summary::after {
  content: "▾";
  margin-left: 6px;
  font-size: 12px;
}

.contact-details[open] summary::after {
  content: "▴";
}

.contact-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.back-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.footer {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .card {
    padding: 28px 22px;
  }

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

  button {
    width: 100%;
  }
}
