/* === LEADS PAGE === */
:root {
  --bg: #0c0b09;
  --bg-warm: #131109;
  --bg-card: #1a1810;
  --fg: #f0ebe0;
  --fg-muted: #a09080;
  --gold: #C9A96E;
  --gold-light: #e0c88a;
  --gold-dark: #8a6f3a;
}

.leads-page { background: var(--bg); color: var(--fg); }

/* Hero */
.leads-hero {
  padding: 7rem 6vw 5rem;
  background: var(--bg);
  border-bottom: 1px solid rgba(201,169,110,0.12);
  position: relative;
  overflow: hidden;
}
.leads-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 30% 50%, rgba(201,169,110,0.05) 0%, transparent 70%);
}
.leads-hero-inner { max-width: 620px; position: relative; z-index: 2; }
.leads-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--fg);
  margin: 0 0 1.5rem;
}
.leads-title em { font-style: italic; color: var(--gold); }
.leads-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
}

/* Body */
.leads-body {
  padding: 5rem 6vw;
  max-width: 760px;
}

/* Form */
.lead-form { position: relative; }

.field-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  flex: 1 1 0;
}
.field-group--full { flex: 1 1 100%; }

.field-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.field-optional { font-weight: 300; letter-spacing: 0; text-transform: none; color: var(--fg-muted); }

.field-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201,169,110,0.3);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.75rem 0;
  outline: none;
  transition: border-color 0.25s;
  width: 100%;
  -webkit-appearance: none;
  border-radius: 0;
}
.field-input::placeholder { color: rgba(160,144,128,0.4); }
.field-input:focus { border-color: var(--gold); }
.field-input--error { border-color: #c05a3a; }

.field-select {
  cursor: pointer;
  background: var(--bg);
}
.field-select option { background: #1a1810; color: var(--fg); }

.field-textarea {
  resize: none;
  min-height: 120px;
  line-height: 1.65;
}

.field-error {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: #c05a3a;
  margin-top: 0.4rem;
  min-height: 1.2em;
}

/* Form layout: two columns on wider screens */
@media (min-width: 640px) {
  .lead-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
  }
  .field-group--full { grid-column: 1 / -1; }
}

/* Form footer */
.form-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(201,169,110,0.1);
  flex-wrap: wrap;
}
.form-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 300px;
  margin: 0;
}
.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gold);
  color: #0c0b09;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  min-width: 180px;
  justify-content: center;
  flex-shrink: 0;
}
.submit-btn:hover:not(:disabled) { background: var(--gold-light); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.submit-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(12,11,9,0.3);
  border-top-color: #0c0b09;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.submit-btn.is-loading .submit-label { display: none; }
.submit-btn.is-loading .submit-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Success / error messages */
.form-message { display: none; }
.form-message--error { color: #c05a3a; }
.form-message { color: var(--fg-muted); font-size: 0.9rem; }

.is-submitted .field-group,
.is-submitted .form-footer { display: none; }

.form-message {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.form-message[style*="flex"] { display: flex; }

.form-message-inner { max-width: 480px; }
.form-message h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--fg);
  margin: 0 0 0.75rem;
}
.form-message p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}
.form-message-icon { margin-bottom: 0.5rem; }

/* Footer */
.leads-footer {
  border-top: 1px solid rgba(201,169,110,0.08);
  padding: 2.5rem 6vw;
}
.leads-footer-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover { color: var(--gold); }
.footer-sep { color: rgba(201,169,110,0.3); }
.footer-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--gold); }

@media (max-width: 600px) {
  .form-footer { flex-direction: column; gap: 1.5rem; }
  .submit-btn { width: 100%; }
}