/* Form validation — shared inline field error state, used by every field
   in the booking/contact forms (text, email, date, time).
   Tokens sourced from moremunich.webflow.css (--error200 / --error700) */

.voxestudio-form_input.is-field-invalid,
.voxestudio-form_input-w-icon.is-field-invalid {
  border-color: var(--error200) !important;
}

.voxestudio-form-field-wrapper {
  position: relative;
}

.field-error-message {
  display: none;
  color: var(--error200);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.field-error-message.is-visible {
  display: block;
}

/* Non-blocking 24h lead-time notice (cro-05). Shown near the date/time
   fields when the selected pickup is in the future but sooner than the
   24h-in-advance policy, so the constraint is surfaced before submission
   instead of only in the distant FAQ. Amber/warning tone (not error red)
   since it does not block the form — booking still submits. */
.field-lead-time-notice {
  display: none;
  color: var(--warning700);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.field-lead-time-notice.is-visible {
  display: block;
}

/* Normalize native date/time picker text color to match existing text inputs
   (Webflow inputs are styled for a dark UI) */
.voxestudio-form_input[type="date"],
.voxestudio-form_input[type="time"] {
  color-scheme: dark;
}

/* Hourly "Dauer"/"Duration" field — numeric input with a visible unit
   suffix ("Stunden"/"hours") so the expected format is unambiguous. */
.voxestudio-form-input-group {
  position: relative;
}

.voxestudio-form-input-group .voxestudio-form_input {
  padding-right: 4.5rem;
}

.voxestudio-form-unit-suffix {
  position: absolute;
  top: 50%;
  right: 0.875rem;
  transform: translateY(-50%);
  color: var(--gray500);
  font-size: 0.875rem;
  pointer-events: none;
}

/* Hide native number-input spinner arrows so they don't overlap the unit
   suffix text. */
.voxestudio-form-input-group input[type="number"]::-webkit-outer-spin-button,
.voxestudio-form-input-group input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.voxestudio-form-input-group input[type="number"] {
  -moz-appearance: textfield;
}

/* Required field cue (form-ux-02).
   .voxestudio-field-label is visible (display: block), so the red "*"
   inside the label is the single, non-duplicated required-field indicator.
   Placeholders intentionally do NOT repeat the "*" to avoid showing the
   marker twice (once in the label above the field, once in the empty
   input) while the field is unfilled. */
.voxestudio-field-required {
  color: var(--error500);
}

/* Reserved for a genuinely optional field, should one be added to a form
   (all fields on the transfer/hourly/contact forms are currently
   required — see js/form-handler.js). */
.voxestudio-field-optional {
  color: var(--gray500);
  font-weight: 400;
  font-size: 0.8rem;
}
