/* ============================================================
   MKS – forms.css
   Kontaktformular & alle Formular-Elemente
   ============================================================ */

/* ── FORM CARD ── */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--desert);
}
.form-card h2 {
  margin-bottom: 1.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--sand);
}

/* ── STEP INDICATOR ── */
.form-steps {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--sand);
}
.form-step {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.4rem;
  font-size: 0.75rem;
  background: var(--parchment);
  color: var(--text-mid);
  cursor: default;
  border-right: 1px solid var(--sand);
  transition: all 0.2s;
  font-weight: 500;
}
.form-step:last-child { border-right: none; }
.form-step .step-num { display: block; font-size: 0.95rem; font-weight: 700; }
.form-step.active { background: var(--blue-sky); color: var(--white); }
.form-step.done   { background: var(--fields); color: var(--white); }

/* ── FIELDS ── */
.form-section { display: none; }
.form-section.active { display: block; }

.field-group { margin-bottom: 1.2rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.field-row.full { grid-template-columns: 1fr; }

.field { display: flex; flex-direction: column; gap: 0.35rem; }
label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
}
label .req { color: var(--pine); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-size: 0.92rem;
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue-sky);
  box-shadow: 0 0 0 3px rgba(76,181,245,0.12);
}
textarea { resize: vertical; min-height: 120px; }
select { cursor: pointer; }

/* ── LEISTUNGS-KACHELN ── */
.leistung-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}
.leistung-card { position: relative; }
.leistung-card input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.leistung-card label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border: 2px solid var(--sand);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--parchment);
  transition: all 0.2s;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
}
.leistung-card label:hover {
  border-color: var(--blue-sky);
  background: rgba(76,181,245,0.06);
}
.leistung-card input:checked + label {
  border-color: var(--blue-sky);
  background: rgba(76,181,245,0.08);
  color: var(--crevice);
}
.leistung-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.leistung-name { font-weight: 600; display: block; }
.leistung-desc { font-size: 0.74rem; font-weight: 300; color: var(--text-light); display: block; margin-top: 0.1rem; }

/* ── RADIO PILLS ── */
.radio-group { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.radio-pill input[type="radio"] { display: none; }
.radio-pill label {
  display: inline-block;
  padding: 0.38rem 1rem;
  border: 1.5px solid var(--sand);
  border-radius: 30px;
  font-size: 0.82rem;
  cursor: pointer;
  background: var(--parchment);
  transition: all 0.2s;
  font-weight: 500;
  color: var(--text-mid);
}
.radio-pill input:checked + label { background: var(--blue-sky); border-color: var(--blue-sky); color: var(--white); }
.radio-pill label:hover { border-color: var(--blue-sky); }

/* ── BUDGET SLIDER ── */
.slider-wrap { margin-bottom: 1.2rem; }
.slider-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.45rem; }
.slider-val { font-weight: 600; color: var(--pine); font-size: 0.9rem; }
input[type="range"] {
  -webkit-appearance: none;
  width: 100%; height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--desert) 20%, var(--sand) 20%);
  outline: none;
  border: none;
  padding: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--pine);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(70,33,26,0.3);
}
.slider-hints { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-light); margin-top: 0.3rem; }

/* ── CONSENT ── */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sand);
}
.consent-row input[type="checkbox"] {
  width: 17px; height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--pine);
}
.consent-row label {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.45;
}

/* ── FORM NAV ── */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--sand);
}
.btn-form-next { background: var(--blue-sky); color: var(--white); border: none; }
.btn-form-next:hover { background: var(--pine); color: var(--white); }
.btn-form-back { background: transparent; color: var(--text-mid); border: 1.5px solid var(--sand); }
.btn-form-back:hover { border-color: var(--cloud-shadow); color: var(--crevice); background: transparent; }
.btn-submit-final {
  background: linear-gradient(135deg, var(--red-clay), var(--desert));
  color: var(--white);
  border: none;
  padding: 0.8rem 2.2rem;
  font-size: 1rem;
}
.btn-submit-final:hover { opacity: 0.92; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(52,103,92,0.4); }

/* ── SUCCESS ── */
.form-success { display: none; text-align: center; padding: 2.5rem 1rem; }
.form-success .success-icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success h3 { color: var(--crevice); margin-bottom: 0.5rem; }
.form-success p  { color: var(--text-mid); }

/* ── SECTION TITLE IN FORM ── */
.form-section-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 1.2rem;
}

/* honeypot */
.hp { display: none !important; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .leistung-grid { grid-template-columns: 1fr; }
  .form-card { padding: 1.5rem; }
}
