/* Booking-specific styles */

/* Additional table styling for booking moments */
.booking-table table {
    margin-bottom: 0;
}

.booking-table tbody tr td {
    vertical-align: middle;
}

/* Responsive adjustments for booking table */
@media (max-width: 768px) {
    .booking-table {
        font-size: 0.85rem;
    }
    
    .booking-table th,
    .booking-table td {
        padding: 0.5rem !important;
    }
    
    .booking-table .btn-select-slot {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }
}

/* === Booking – Pagina 2 typografie & rust === */
:root {
  --ebvn-text: #0f172a;            /* hoofdtekst */
  --ebvn-muted: #6b7280;           /* ondersteunende tekst */
  --ebvn-placeholder: #9ca3af;     /* placeholders subtieler */
  --ebvn-accent: #00115c;          /* merkaccent */
}

/* Formulier basis */
.booking-form .form-label {
  font-size: 0.875rem;             /* 14px – kleiner dan veldtekst */
  font-weight: 600;                /* duidelijker dan placeholder */
  color: var(--ebvn-text);
  margin-bottom: .25rem;           /* dichter op veld */
}
.booking-form .form-control,
.booking-form .form-select {
  font-size: 1rem;                 /* leesbaar, niet overdreven */
  color: var(--ebvn-text);
  padding: .55rem .75rem;          /* iets compacter verticaal */
}
.booking-form .form-control::placeholder {
  color: var(--ebvn-placeholder);
  font-weight: 400;                /* lichter dan labels */
  opacity: 1;                      /* consistent in alle browsers */
}
.booking-form .form-text {         /* helpteksten onder velden */
  color: var(--ebvn-muted);
  font-size: .8125rem;             /* 13px */
  margin-top: .25rem;
}
/* Focus – rustig maar duidelijk toegankelijk */
.booking-form .form-control:focus,
.booking-form .form-select:focus {
  border-color: var(--ebvn-accent);
  box-shadow: 0 0 0 .25rem rgba(0,17,92,.12);
}

/* Checkbox/consent – minder dominant */
.booking-form .form-check-label {
  font-size: .9375rem;             /* net onder body-tekst */
  font-weight: 500;
  color: var(--ebvn-text);
}
.booking-form .form-check-input {
  width: 1.05rem; height: 1.05rem; margin-top: .15rem;
}

/* Verticale ritme – wat lucht zonder ‘lange’ pagina */
.booking-form .row > [class*="col-"].mb-3 { margin-bottom: .85rem !important; }
.booking-form .consent-section { padding-top: .25rem; border-top: 1px solid #eef2f7; }

/* Trust indicators – subtieler */
.trust-indicators { display: flex; gap: 1rem; align-items: center; }
.trust-indicators .trust-item { color: var(--ebvn-muted); font-size: .9rem; }
.trust-indicators .trust-item i { font-size: 1rem; margin-right: .4rem; }

/* Inklapbare moment-samenvatting – klik-element rustiger */
.selected-moment-summary .moment-summary-toggle {
  background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: .75rem 1rem; color: var(--ebvn-text);
}
.selected-moment-summary .detail-label { color: var(--ebvn-muted); }

/* Compact mode – calmer visual hierarchy for page 2 */
.booking-card.booking-compact .booking-subtitle { display: none !important; }

/* Option A: hide stepper entirely and show a tiny step hint */
.booking-card.booking-compact .booking-progress { display: none !important; }
.booking-card.booking-compact .booking-title::before {
  content: 'Stap 2 van 3'; display: block; font-size: .75rem; color: var(--ebvn-muted);
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .25rem;
}

/* Soften general text a touch (keep contrast AA) */
.booking-card.booking-compact .booking-form .form-label { font-weight: 500; color: #334155; }
.booking-card.booking-compact .booking-form .form-control,
.booking-card.booking-compact .booking-form .form-select { color: #1f2937; }

/* Moment summary: inline, unboxed, no chevron */
.booking-card.booking-compact .selected-moment-summary .moment-summary-toggle {
  background: transparent; border: 0; border-radius: 0; padding: .25rem 0; color: var(--ebvn-muted);
}
.booking-card.booking-compact .selected-moment-summary .toggle-icon { display: none; }
.booking-card.booking-compact .selected-moment-summary { margin-bottom: .75rem; }

/* Icons and trust indicators – tone down or hide on desktop */
@media (min-width: 768px) {
  .booking-card.booking-compact .trust-indicators { display: none !important; }
}
.booking-card.booking-compact .consent-title i { display: none; }

/* Consent block lighter */
.booking-card.booking-compact .consent-section { border-top: 0; padding-top: 0; }
.booking-card.booking-compact .consent-title {
  font-size: .875rem; color: var(--ebvn-muted); margin-bottom: .5rem; font-weight: 600;
}

/* Tighter rhythm */
.booking-card.booking-compact .booking-form .row > [class*="col-"].mb-3 { margin-bottom: .65rem !important; }
.booking-card.booking-compact .form-check-label { font-size: .9rem; }

/* CTA: keep it simple */
.booking-card.booking-compact #submit-btn { font-size: 1rem; padding: .6rem .9rem; }
.booking-card.booking-compact .form-actions p + p { display: none; }

/* ===== MOVED FROM INLINE STYLES IN TEMPLATE ===== */

/* Optimized booking header */
.booking-header {
  max-width: 600px;
  margin: 0 auto;
}

.booking-logo {
  max-width: 100px;
  height: auto;
}

/* Compact progress indicator - horizontal flow */
.booking-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 2rem 0 1rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.progress-step.completed .step-circle {
  background: #28a745;
  color: white;
}

.progress-step.active .step-circle {
  background: #00115c;
  color: white;
  box-shadow: 0 0 0 4px rgba(0, 17, 92, 0.1);
}

.step-label {
  font-size: 0.75rem;
  color: #6c757d;
  font-weight: 500;
  white-space: nowrap;
}

.progress-step.completed .step-label {
  color: #28a745;
}

.progress-step.active .step-label {
  color: #00115c;
  font-weight: 600;
}

.progress-line {
  width: 60px;
  height: 2px;
  background: #e9ecef;
  margin: 0;
  align-self: flex-start;
  margin-top: 19px;
}

.progress-line.completed {
  background: #28a745;
}

/* Title styling */
.booking-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #00115c;
  margin-bottom: 0.5rem;
}

.booking-subtitle {
  font-size: 1rem;
  margin-bottom: 0;
}

/* Form actions */
.form-actions {
  max-width: 500px;
  margin: 2rem auto 0;
}

/* ===== FLOAT LABEL PATTERN ===== */

.form-floating {
  position: relative;
}

.form-floating > .form-control,
.form-floating > .form-select {
  height: calc(3.5rem + 2px);
  line-height: 1.25;
  padding: 1rem 0.75rem;
}

.form-floating > label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  padding: 1rem 0.75rem;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
  color: #6b7280;
  font-size: 0.9375rem;
  font-weight: 400;
}

/* Float the label when focused or has value */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select:focus ~ label,
.form-floating > .form-select:not([value=""]):valid ~ label,
.form-floating.has-value > label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
  color: #00115c;
  font-weight: 500;
}

/* Required asterisk in float label */
.form-floating > label .text-danger {
  color: #dc2626;
}

/* Adjust for date inputs */
.form-floating > .form-control[type="date"],
.form-floating > .form-control[type="datetime-local"] {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}

.form-floating > .form-control[type="date"] ~ label,
.form-floating > .form-control[type="datetime-local"] ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
  color: #00115c;
  font-weight: 500;
}

/* Focus state */
.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  border-color: #00115c;
  box-shadow: 0 0 0 3px rgba(0, 17, 92, 0.08);
}

/* Disabled state */
.form-floating > .form-control:disabled ~ label,
.form-floating > .form-select:disabled ~ label {
  color: #9ca3af;
}

/* Help text positioning for float labels */
.form-floating + .form-text {
  margin-top: 0.25rem;
}

/* Select specific styling */
.form-floating > .form-select {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}

.form-floating > .form-select ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
  color: #00115c;
  font-weight: 500;
}

/* Invalid state */
.form-floating > .form-control.is-invalid,
.form-floating > .form-select.is-invalid {
  border-color: #dc2626;
}

.form-floating > .form-control.is-invalid:focus,
.form-floating > .form-select.is-invalid:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .booking-progress {
    max-width: 100%;
  }
  
  .progress-line {
    width: 40px;
  }
  
  .step-label {
    font-size: 0.7rem;
  }
  
  .step-circle {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }
  
  .trust-indicators {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  
  .booking-title {
    font-size: 1.5rem;
  }
  
  .detail-row {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .detail-value {
    text-align: left;
  }
}


/* --- Conditional required asterisk for shipping fields --- */
#shipping-address-section.required-active label[data-required-when-shipping]::after {
  content: " *";
  color: #dc3545; /* Bootstrap danger color */
}
