/* =========================
   RAZOR PUNCH – KONTAKT-/BOOKING-FORMULAR (inc/contact-form.php)
   Dunkle Felder, roter Fokus, zwei Spalten ab Tablet.
   ========================= */

.rp-form {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
  scroll-margin-top: calc(var(--rp-header-h) + 1.5rem);
}

.rp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.25rem;
}

.rp-form-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin: 0;
}

.rp-form-field--wide {
  grid-column: 1 / -1;
}

.rp-form label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rp-muted);
}

.rp-form-req {
  margin-left: .2em;
  color: var(--rp-accent);
}

.rp-form input[type="text"],
.rp-form input[type="email"],
.rp-form input[type="tel"],
.rp-form input[type="date"],
.rp-form textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  background: rgba(0, 0, 0, .45);
  color: var(--rp-white);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color-scheme: dark; /* dunkler Datepicker */
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.rp-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.rp-form ::placeholder {
  color: rgba(245, 245, 245, .35);
}

.rp-form input:focus,
.rp-form textarea:focus {
  outline: none;
  border-color: var(--rp-accent);
  background: rgba(0, 0, 0, .6);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, .25);
}

/* Fehlerhafte Eingabe erst nach dem ersten Tippen rot markieren */
.rp-form input:user-invalid,
.rp-form textarea:user-invalid {
  border-color: #ff6b5e;
}

/* Einwilligung */
.rp-form-consent {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin: 1.4rem 0 0;
}

.rp-form-consent input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: .15rem 0 0;
  accent-color: var(--rp-accent);
}

.rp-form-consent label {
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
  color: var(--rp-text);
}

.rp-form-consent a {
  color: var(--rp-white);
}

.rp-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 1.75rem 0 0;
}

.rp-form-hint {
  font-size: .75rem;
  color: var(--rp-muted);
}

.rp-form-hint span {
  color: var(--rp-accent);
}

/* Honigtopf unsichtbar (nicht display:none, das erkennen manche Bots) */
.rp-form-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Meldung nach dem Absenden */
.rp-form-notice {
  margin: 0 0 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: 6px;
  border-left: 4px solid;
  font-size: .95rem;
  line-height: 1.5;
}

.rp-form-notice--ok {
  border-color: #3ecf6e;
  background: rgba(62, 207, 110, .12);
}

.rp-form-notice--error {
  border-color: var(--rp-accent);
  background: rgba(225, 6, 0, .14);
}

@media (max-width: 600px) {
  .rp-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rp-form-actions .btn {
    width: 100%;
    text-align: center;
  }
}
