/* ===== Form row (Contact Form 7), Figma 548:3418 =====
   The CF7 form (seeded with .oda-cf7 markup) shown as a Default Content row,
   inside a bordered card. The .oda-cf7 field rules mirror the section form
   (assets/css/sections.css) so the same seeded forms render identically here. */

/* Bordered card around the form (880px, like Figma). */
.default-content__block--form .oda-form {
  max-width: 880px;
  margin: 0;
  padding: 20px;
  border: 1px solid #e6e4e0;
  border-radius: 10px;
  background: #fff;
}
.default-content__block--form .oda-form--shortcode .wpcf7-form {
  margin: 0;
}

/* ---- Fields ---- */
.oda-cf7 p {
  margin: 0 0 16px;
}
.oda-cf7 input[type="text"],
.oda-cf7 input[type="email"],
.oda-cf7 input[type="tel"],
.oda-cf7 input[type="date"],
.oda-cf7 input[type="time"],
.oda-cf7 input[type="number"],
.oda-cf7 select,
.oda-cf7 textarea {
  width: 100%;
  border: 1px solid #e6e4e0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: #0f0f10;
  background: #fff;
  font-family: "Inter", sans-serif;
}
.oda-cf7 input::placeholder,
.oda-cf7 textarea::placeholder {
  color: #87878d;
}

/* Date & time fields — native picker with a site-styled calendar / clock icon. */
.oda-cf7 input[type="date"],
.oda-cf7 input[type="time"] {
  position: relative;
  cursor: pointer;
  padding-right: 42px;
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
}
.oda-cf7 input[type="date"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23424248' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='17' rx='2'/%3E%3Cpath d='M16 2.5v4M8 2.5v4M3 9.5h18'/%3E%3C/svg%3E");
}
.oda-cf7 input[type="time"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23424248' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}
.oda-cf7 input[type="date"]:hover,
.oda-cf7 input[type="time"]:hover {
  border-color: #c00;
}
.oda-cf7 input[type="date"]::-webkit-calendar-picker-indicator,
.oda-cf7 input[type="time"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 0;
  top: 0;
  width: 42px;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.oda-cf7 .wpcf7-form-control-wrap {
  display: block;
}

/* Two-column rows + the document/quantity row (1fr 130px). */
.oda-cf7 .oda-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}
.oda-cf7 .oda-form__row > .wpcf7-form-control-wrap,
.oda-cf7 .oda-form__row > p {
  margin: 0;
}
.oda-cf7 .oda-form__row--doc {
  grid-template-columns: 1fr 130px;
  align-items: end;
}
.oda-cf7 .oda-form__field {
  margin: 0 0 16px;
}
.oda-cf7 .oda-form__field > label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: #87878d;
}
.oda-cf7 .oda-form__help {
  margin: -8px 0 16px;
  font-size: 12px;
  color: #87878d;
}

/* ---- Fieldsets / legends ---- */
.oda-cf7 fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
}
.oda-cf7 legend {
  width: 100%;
  margin-bottom: 16px;
  padding: 0 0 14px;
  border-bottom: 2px solid #e6e4e0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.05px;
  text-transform: uppercase;
  color: #c00;
}

/* ---- Submit (red pill) ---- */
.oda-cf7 .wpcf7-submit,
.oda-cf7 input.oda-form__submit {
  margin-top: 20px;
  padding: 11px 44px 11px 20px;
  border: 0;
  border-radius: 999px;
  background-color: #c00;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5%2012h14'/%3E%3Cpath%20d='M13%206l6%206-6%206'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.08px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.oda-cf7 .wpcf7-submit:hover,
.oda-cf7 input.oda-form__submit:hover {
  background: #a30000;
}
.oda-cf7 .wpcf7-spinner {
  margin: 0 0 0 10px;
}
.oda-cf7 .wpcf7-response-output {
  margin: 16px 0 0;
  border-radius: 8px;
}

/* ---- Choice groups (radios / checkboxes) ---- */
.oda-form__choices .wpcf7-form-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.oda-form__choices .wpcf7-list-item {
  margin: 0;
}
/* Pills (Raumauswahl / Bestuhlung) */
.oda-form__choices--pills .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid #e6e4e0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
}
.oda-form__choices--pills .wpcf7-list-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.oda-form__choices--pills .wpcf7-list-item label:has(input:checked) {
  border-color: #c00;
  color: #c00;
}
/* Plain stacked checkboxes (fallback — NOT pills, NOT the Verpflegung cards).
   Must exclude --cards so its higher specificity doesn't clobber the card rules. */
.oda-form__choices:not(.oda-form__choices--pills):not(.oda-form__choices--cards) .wpcf7-form-control {
  flex-direction: column;
  gap: 12px;
}
.oda-form__choices:not(.oda-form__choices--pills):not(.oda-form__choices--cards) .wpcf7-list-item label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: #424248;
}

/* 3-up row (Veranstaltung: Zeit / Datum / Einrichten). */
.oda-cf7 .oda-form__row--3 {
  grid-template-columns: 1fr 1fr 1fr;
}
/* Inline "von … bis …" time pair. */
.oda-cf7 .oda-form__field--times {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.oda-cf7 .oda-form__field--times > label {
  width: 100%;
}
.oda-cf7 .oda-form__field--times .wpcf7-form-control-wrap {
  flex: 1;
}
.oda-cf7 .oda-form__sep {
  color: #87878d;
  font-size: 13px;
}
/* Label-only field (heading above pills) — keep it tight. */
.oda-cf7 .oda-form__field:has(> label:only-child) {
  margin-bottom: 8px;
}
.oda-cf7 .oda-form__field > label:only-child {
  margin-bottom: 0;
}
/* Verpflegung — bordered option cards (Figma 1354:864). 8px gap between cards. */
.oda-form__choices--cards .wpcf7-form-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.oda-form__choices--cards .wpcf7-list-item {
  margin: 0;
}
.oda-form__choices--cards .wpcf7-list-item label {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 15px 17px;
  border: 1px solid #e6e4e0;
  border-radius: 10px;
  color: #0f0f10;
  cursor: pointer;
  height: 100%;
}
.oda-form__choices--cards .wpcf7-list-item input[type="checkbox"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid #e6e4e0;
  border-radius: 2.667px;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.oda-form__choices--cards .wpcf7-list-item input[type="checkbox"]:checked {
  background: #c00;
  border-color: #c00;
}
.oda-form__choices--cards .wpcf7-list-item input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2.5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.oda-form__choices--cards .wpcf7-list-item-label {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3.75px;
}
.oda-vopt__t {
  font-weight: 600;
  font-size: 14px;
  line-height: 19.6px;
  text-transform: uppercase;
  color: #0f0f10;
}
.oda-vopt__p {
  font-weight: 600;
  font-size: 12px;
  line-height: 18px;
  text-transform: uppercase;
  color: #424248;
}

@media (max-width: 640px) {
  /* Figma mobile (1353:459): fields run edge-to-edge — no outer card. */
  .default-content__block--form .oda-form {
    padding: 0;
    border: 0;
    border-radius: 0;
  }
  .oda-cf7 .oda-form__row,
  .oda-cf7 .oda-form__row--doc,
  .oda-cf7 .oda-form__row--3 {
    grid-template-columns: 1fr;
  }
  .oda-form__choices--cards .wpcf7-form-control {
    grid-template-columns: 1fr;
  }
}
