/* ── FORM PAGES ── */
.form-page {
  min-height: calc(100vh - 70px);
  padding: 3rem 1.5rem 5rem;
  background: var(--cream);
}

.form-container {
  max-width: 680px;
  margin: 0 auto;
}

.form-header {
  margin-bottom: 2.5rem;
}

.form-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  border: 1px solid var(--clay);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.form-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.form-subtitle {
  font-size: 1.05rem;
  color: var(--warm-gray);
  line-height: 1.7;
  max-width: 540px;
}

/* ── FORM FIELDS ── */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
}

.label-hint {
  font-weight: 400;
  color: var(--warm-gray);
  font-size: 0.82rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #DDD7CE;
  border-radius: 10px;
  background: white;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--charcoal);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(196, 82, 42, 0.1);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6560' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* ── CHECKBOXES ── */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.checkbox-grid--wide {
  grid-template-columns: repeat(3, 1fr);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid #DDD7CE;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--charcoal);
  background: white;
  transition: border-color 0.15s ease, background 0.15s ease;
  user-select: none;
}

.checkbox-label:hover {
  border-color: var(--clay-light);
  background: #FEF9F6;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--clay);
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-label:has(input:checked) {
  border-color: var(--clay);
  background: rgba(196, 82, 42, 0.06);
  color: var(--clay);
  font-weight: 500;
}

/* ── SUBMIT BUTTON ── */
.btn-submit {
  padding: 1rem 2rem;
  background: var(--clay);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  align-self: flex-start;
  margin-top: 0.5rem;
  box-shadow: 0 4px 16px rgba(196, 82, 42, 0.25);
}

.btn-submit:hover {
  background: #B04420;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196, 82, 42, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ── SUCCESS / ERROR STATES ── */
.form-success {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: 20px;
  border: 1px solid #E8E0D4;
}

.success-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.form-success h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.form-success p {
  font-size: 1rem;
  color: var(--warm-gray);
  line-height: 1.7;
}

.form-error {
  background: #FFF0ED;
  border: 1px solid #F5C5B8;
  color: #C4522A;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: -0.5rem;
}

/* ── CTA BUTTONS on landing page ── */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  background: var(--clay);
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 16px rgba(196, 82, 42, 0.25);
}

.btn-primary:hover {
  background: #B04420;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196, 82, 42, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid rgba(45,42,38,0.25);
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.btn-secondary:hover {
  border-color: var(--charcoal);
  background: rgba(45,42,38,0.04);
  transform: translateY(-1px);
}

/* closing section CTAs - on dark bg */
.btn-primary--light {
  background: white;
  color: var(--clay);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-primary--light:hover {
  background: var(--cream);
  transform: translateY(-1px);
}

.btn-secondary--light {
  color: white;
  border-color: rgba(255,255,255,0.4);
}

.btn-secondary--light:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .field-group {
    grid-template-columns: 1fr;
  }

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

  .checkbox-grid--wide {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
