/* =========================================================
   Tartelier Brunch Aanvraag — brunch-form.css  v1.6.7
   ========================================================= */

.tart-brunch-wrap {
  width: 100%;
}

.tart-brunch-form {
  width: 100%;
}

/* ── 3-column grid ───────────────────────────────────── */
.tart-brunch-grid {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.tart-brunch-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Field ───────────────────────────────────────────── */
.tart-brunch-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tart-brunch-field--full {
  margin-bottom: 20px;
}

.tart-brunch-field > label {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-label, rgba(44, 34, 22, 0.5));
  user-select: none;
  margin: 0 !important;
}

.tart-brunch-field input[type="text"],
.tart-brunch-field input[type="email"],
.tart-brunch-field input[type="tel"],
.tart-brunch-field select,
.tart-brunch-field textarea {
  font-size: 13px !important;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.tart-brunch-field input::placeholder,
.tart-brunch-field textarea::placeholder {
  font-size: 12px !important;
  color: rgba(120, 120, 120, 0.55) !important;
}

.tart-brunch-field input:focus,
.tart-brunch-field textarea:focus {
  border: none !important;
  border-bottom: 1px solid var(--color-input-focus, rgba(52, 36, 25, 0.85)) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Red underline on invalid fields after submit attempt */
.tart-brunch-field.field-error input,
.tart-brunch-field.field-error select,
.tart-brunch-field.field-error .flatpickr-input {
  border-bottom-color: #e53e3e !important;
}

.tart-brunch-field textarea {
  resize: vertical;
  min-height: 72px;
}

.tart-brunch-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 20px;
  cursor: pointer;
  border: none !important;
  border-bottom: 1px solid var(--color-input-border, rgba(52, 36, 25, 0.15)) !important;
  border-radius: 0 !important;
  color: var(--color-foreground, #2c2c2c) !important;
}

.tart-brunch-field select:focus {
  border-bottom-color: var(--color-input-focus, rgba(52, 36, 25, 0.85)) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ── Datum switch (bovenaan form) ────────────────────── */
.tart-brunch-switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.tart-brunch-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
}

.tart-brunch-switch input {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  min-height: 0 !important;
}

.tart-brunch-switch__track {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.2);
  border-radius: 20px;
  transition: background 0.22s ease;
  cursor: pointer;
}

.tart-brunch-switch__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.22s ease;
}

.tart-brunch-switch input:checked + .tart-brunch-switch__track {
  background: var(--color-primary, hsl(15, 52%, 47%));
}

.tart-brunch-switch input:checked + .tart-brunch-switch__track::after {
  transform: translateX(16px);
}

.tart-brunch-switch__label {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  color: var(--color-muted, #888);
  cursor: pointer;
  user-select: none;
}

/* ── Actions ─────────────────────────────────────────── */
.tart-brunch-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 8px;
}

.tart-brunch-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body, 'DM Sans', sans-serif) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  background-color: var(--color-primary, hsl(15, 52%, 47%)) !important;
  border: 1.5px solid transparent !important;
  border-radius: 100px !important;
  padding: 14px 28px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
  box-shadow: none !important;
  min-height: 0 !important;
  height: auto !important;
  width: auto !important;
}

.tart-brunch-submit:hover {
  background-color: transparent !important;
  color: var(--color-primary, hsl(15, 52%, 47%)) !important;
  border-color: var(--color-primary, hsl(15, 52%, 47%)) !important;
}
.tart-brunch-submit:disabled { opacity: 0.5 !important; cursor: not-allowed !important; }

/* ── Feedback message ────────────────────────────────── */
.tart-brunch-msg {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.tart-brunch-msg--success {
  background: #dcfce7;
  color: #166534;
}

.tart-brunch-msg--error {
  background: #fee2e2;
  color: #991b1b;
}

/* ── Flatpickr override ──────────────────────────────── */
.tart-brunch-field .flatpickr-input {
  border: none !important;
  border-bottom: 1px solid var(--color-input-border, rgba(52, 36, 25, 0.15)) !important;
  border-radius: 0 !important;
  padding: 8px 0 !important;
  font-size: 13px !important;
  color: var(--color-foreground, #2c2c2c) !important;
  background: transparent !important;
  width: 100% !important;
  outline: none !important;
  box-shadow: none !important;
}

.tart-brunch-field .flatpickr-input:focus {
  border-bottom-color: var(--color-input-focus, rgba(52, 36, 25, 0.85)) !important;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .tart-brunch-grid {
    flex-direction: column;
    gap: 0;
  }
  .tart-brunch-col {
    gap: 16px;
    margin-bottom: 16px;
  }
}

/* ── Required / optional field markers ──────────────────── */
.tart-brunch-field:has([required]) > label::after {
  content: ' *';
  color: var(--color-primary, #B65A39);
  font-size: 12px;
  line-height: 1;
}
.tart-brunch-field:not(:has([required])) > label::after {
  content: ' — optioneel';
  letter-spacing: 0.04em;
  text-transform: lowercase;
  opacity: 0.5;
}
