/* ============================================================
   MIDLANDS MEN'S HIKE — INTEREST FORM STYLES
   assets/form-style.css
   ============================================================ */

/* Wrap */
.mmh-form-wrap {
  max-width: 740px;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem);
}

/* Notices */
.mmh-form-notice {
  padding: 1.1rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
}
.mmh-form-notice--success {
  background: #edf7ee;
  border-left: 4px solid #2d7a3a;
  color: #1c4d24;
}
.mmh-form-notice--error {
  background: #fdf1f0;
  border-left: 4px solid #c0392b;
  color: #7b1e16;
}
.mmh-form-notice strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Form rows */
.mmh-form__row {
  margin-bottom: 1.5rem;
}
.mmh-form__row--two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 560px) {
  .mmh-form__row--two {
    grid-template-columns: 1fr 1fr;
  }
}

/* Groups */
.mmh-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.mmh-form__row .mmh-form__group {
  margin-bottom: 0;
}

/* Labels */
.mmh-form__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3a4a56;
}
.mmh-form__required {
  color: #b8963e;
  margin-left: 2px;
}
.mmh-form__optional {
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: none;
  color: #888;
}

/* Inputs */
.mmh-form__input,
.mmh-form__textarea {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  color: #2a2a2a;
  background: #fff;
  border: 1px solid #ccc6bb;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
}
.mmh-form__input:focus,
.mmh-form__textarea:focus {
  border-color: #b8963e;
  box-shadow: 0 0 0 3px rgba(184, 150, 62, 0.18);
}
.mmh-form__textarea {
  resize: vertical;
  min-height: 110px;
}

/* Honeypot — visually hidden */
.mmh-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Submit row */
.mmh-form__submit-row {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-start;
}

/* Re-use the site button styles (defined in astra-child/about-page.css)
   but we redeclare the core here so the form page is self-contained   */
.mmh-form-wrap .mmh-btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 2.5rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}
.mmh-form-wrap .mmh-btn--gold {
  background-color: #b8963e;
  color: #1c1c1e;
  border-color: #b8963e;
}
.mmh-form-wrap .mmh-btn--gold:hover {
  background-color: #d4af6a;
  border-color: #d4af6a;
  transform: translateY(-2px);
}

/* ── Three-column row: City / State / Zip ────────────────── */
.mmh-form__row--three {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 560px) {
  .mmh-form__row--three {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.mmh-form__row--three .mmh-form__group {
  margin-bottom: 0;
}

/* ── Select ───────────────────────────────────────────────── */
.mmh-form__select {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  color: #2a2a2a;
  background: #fff 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='%233a4a56' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
  background-size: 12px 8px;
  border: 1px solid #ccc6bb;
  border-radius: 4px;
  padding: 0.75rem 2.25rem 0.75rem 1rem;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mmh-form__select:focus {
  border-color: #b8963e;
  box-shadow: 0 0 0 3px rgba(184, 150, 62, 0.18);
}

/* ── Fieldset / Legend ────────────────────────────────────── */
.mmh-form__fieldset {
  border: 1px solid #ccc6bb;
  border-radius: 4px;
  padding: 1.25rem 1.5rem 1.5rem;
  margin: 0 0 1.5rem;
}
.mmh-form__legend {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3a4a56;
  padding: 0 0.5rem;
  line-height: 1.5;
}
.mmh-form__legend .mmh-form__optional {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: #888;
  margin-top: 0.15rem;
}

/* ── Checkbox group ───────────────────────────────────────── */
.mmh-form__check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1rem;
}

.mmh-form__check-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
}
.mmh-form__check-label--single {
  align-items: flex-start;
  gap: 0.75rem;
}

.mmh-form__checkbox {
  /* Hide native, render custom */
  appearance: none;
  -webkit-appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  border: 2px solid #ccc6bb;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  position: relative;
  top: 0.1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  outline: none;
}
.mmh-form__checkbox:checked {
  background: #b8963e;
  border-color: #b8963e;
}
.mmh-form__checkbox:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.mmh-form__checkbox:focus {
  box-shadow: 0 0 0 3px rgba(184, 150, 62, 0.25);
  border-color: #b8963e;
}

.mmh-form__check-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  color: #2a2a2a;
  line-height: 1.5;
}

/* ── Harbison group spacing ───────────────────────────────── */
.mmh-form__group--harbison {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: #f5f0e8;
  border: 1px solid #e0d9cc;
  border-left: 3px solid #b8963e;
  border-radius: 4px;
}
