:root {
  --green: #1a7a5e;
  --green-dark: #0f5a44;
  --green-soft: #e8f5f0;
  --green-glow: rgba(26, 122, 94, 0.14);
  --ink: #1a2421;
  --muted: #5c6b66;
  --border: rgba(26, 122, 94, 0.14);
  --radius: 14px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --container: min(480px, calc(100% - 1.5rem));
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #f7faf8;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }

.container {
  width: var(--container);
  margin: 0 auto;
  padding: 24px 0 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 28px;
}

.brand:hover { text-decoration: none; }

.page-head {
  margin-bottom: 20px;
}

.page-head h1 {
  margin: 0 0 6px;
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.req { color: #c0392b; }

.muted-label {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.82rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  border: none;
  padding: 0;
  min-width: 0;
}

.field[hidden] {
  display: none !important;
}

.field legend {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.field label {
  font-weight: 600;
  font-size: 0.88rem;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}

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

.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-error {
  margin: 0 0 10px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #fdecea;
  color: #922b21;
  font-size: 0.88rem;
  font-weight: 600;
}

.form-foot {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

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

.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.btn-primary:hover:not(:disabled) {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--green-dark);
  border-color: rgba(26, 122, 94, 0.35);
}

.btn-block { width: 100%; }

.form-success {
  text-align: center;
  padding: 8px 0;
}

.success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
}

.form-success h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.form-success p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.ref-line {
  color: var(--ink);
  font-size: 0.9rem;
}

.success-hint {
  font-size: 0.82rem !important;
}
