/* === Scrollbar fix applied === */
html, body { margin:0; padding:0; }
.container > :last-child { margin-bottom:0 !important; }

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background-color: white;
    min-height: 0;
    color: #333;
    line-height: 1.6;
    /* overflow-y: hidden; */
}

/* Top blue strip */
.top-strip {
    background-color: #1a368f;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 14px;
    display: flex;
    justify-content: center;
  }

  .top-strip a {
    /* text-decoration: none; */
    font-weight: bold;
    display: flex;
    align-items: center;
  }

  /* .top-strip a::after {
    content: ' >';
    font-weight: normal;
  } */

  /* Main header */
  .banner {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 16px 30px;
    /* background-color: white; */
  }

  .logo img {
    width: 189px;
    height: 64px;
  }

  @media (max-width: 768px) {
    .search-container {
      max-width: 100%;
      margin: 10px 0;
    }

    .header {
      flex-direction: column;
      align-items: stretch;
      padding: 16px;
    }
  }

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Header and Stepper */
.header {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 1;
}

.step.completed { cursor: pointer; }
.step.active { cursor: pointer; }
.step:not(.completed):not(.active) { cursor: default; }

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e1e5e9;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.step.completed .step-number {
    background: #10b981;
    color: white;
}

.step-label {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
}

.step.active .step-label {
    color: #3b82f6;
    font-weight: 600;
}

.step.completed .step-label {
    color: #10b981;
}

.step-line {
    width: 60px;
    height: 2px;
    background: #e1e5e9;
    transition: all 0.3s ease;
}

.step-line.completed {
    background: #10b981;
}

/* Main Content */
.main-content {
    flex: 1;
    background-color: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.step-header p {
    font-size: 16px;
    color: #6b7280;
    font-weight: 400;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
    position: relative;
    z-index: auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.error,
.form-select.error {
    border-color: #ef4444;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Date Input Container - CRITICAL FIX */
.date-input-container {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    z-index: 1;
}

/* Target BOTH the regular input AND flatpickr's input */
.date-display,
#date-display,
.date-input-container input[type="text"],
.flatpickr-input {
    width: 100% !important;
    max-width: 100% !important;
    cursor: pointer !important;
    background-color: white !important;
    padding-right: 48px !important;
    box-sizing: border-box !important;
}


/* Flatpickr wraps the input in a .flatpickr-wrapper (inline-block by default).
   Force the wrapper to take full width so the input can truly be 100%. */
.date-input-container .flatpickr-wrapper,
.flatpickr-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Some Flatpickr themes apply display:inline-block; ensure the input is block-level */
.date-input-container .flatpickr-input,
.date-input-container input.flatpickr-input {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Override any Flatpickr inline styles */
input.flatpickr-input.form-input {
    width: 100% !important;
}

.date-calendar-btn {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 4px !important;
    transition: color 0.3s ease !important;
    pointer-events: auto !important;
    z-index: 10 !important;
}

.date-calendar-btn:hover {
    color: #3b82f6 !important;
}

/* Quick Date Selection */
.quick-date-selection {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.quick-date-btn {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.quick-date-btn:hover:not(:disabled) {
    border-color: #3b82f6;
    /* background: #f8fafc; */
    transform: translateY(-1px);
}

.quick-date-btn.selected {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.quick-date-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
    color: #9ca3af;
}

.quick-date-btn:disabled:hover {
    border-color: #e5e7eb;
    /* background: #f9fafb; */
    transform: none;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.time-slot {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.time-slot:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.time-slot.selected {
    background: #10b981;
    color: white;
    border-color: #10b981;
    border-width: 3px;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transform: scale(1.05);
    font-weight: 700;
    position: relative;
}

.time-slot.selected::before {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.time-slot.available {
    border-color: #10b981;
    background: #10b981;
    color: white;
    font-weight: 600;
}

.time-slot.available:hover {
    border-color: #059669;
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.time-slot.unavailable {
    border-color: #d1d5db;
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
    opacity: 0.8;
}

.time-slot.unavailable:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
    transform: none;
}

.no-slots {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #d1d5db;
}

/* Buttons */
.button-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 16px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: inherit;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover:not(:disabled) {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Confirmation Styles */
.confirmation-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.confirmation-section {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.confirmation-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.confirmation-section h3 i {
    color: #3b82f6;
}

.confirmation-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.confirmation-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.confirmation-item .label {
    font-weight: 600;
    color: #6b7280;
    font-size: 12px;
}

.confirmation-item .value {
    font-weight: 500;
    font-size: 10px;
    color: #1f2937;
    text-align: center;
    max-width: 60%;
    word-wrap: break-word;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    margin-bottom: 24px;
}

.success-icon {
    font-size: 48px;
    color: #10b981;
    margin-bottom: 16px;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.modal-body {
    margin-bottom: 30px;
}

.modal-body p {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

.booking-reference {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .main-content {
        padding: 24px;
    }
    
    .stepper {
        gap: 10px;
    }
    
    .step-line {
        width: 30px;
    }
    
    .step-label {
        font-size: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 8px;
    }

	/* When we show "no slots" messages/cards, don't use the grid layout */
	.time-slots.time-slots--message {
	  display: flex;
	  flex-direction: column;
	  gap: 12px;
	}
	
    
    .quick-date-selection {
        gap: 6px;
    }
    
    .quick-date-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .confirmation-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .button-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .step-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 16px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .stepper {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .step-line {
        display: none;
    }
    
    .step {
        flex: 1;
        min-width: 80px;
    }
    
    .date-calendar-btn {
        padding: 6px;
        right: 8px;
    }
    
    .modal-content {
        padding: 24px;
        margin: 20px;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.error-message i {
    font-size: 12px;
}

/* Success States */
.success-message {
    color: #10b981;
    font-size: 14px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.success-message i {
    font-size: 12px;
}

/* Location Display */
.location-display {
    /* background: #fef2f2; */
    /* border: 2px solid #ef4444; */
    /* border-radius: 12px; */
    /* padding: 16px; */
    margin-top: 8px;
    display: inline;
    gap: 4px;
    color: black;
    animation: fadeIn 0.3s ease;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

/* Selected DateTime Display */
.selected-datetime {
    background: #f0fdf4;
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #065f46;
    font-size: 16px;
    animation: fadeIn 0.3s ease;
}

.selected-datetime i {
    color: #10b981;
    font-size: 18px;
}

.selected-datetime strong {
    font-weight: 600;
} 

/* Time slots en buttons krijgen normale z-index (lager dan calendar) */
.button-group, .time-slots, .quick-date-selection {
    position: relative;
    z-index: 1;
    pointer-events: auto !important;
}

.btn, .time-slot, .quick-date-btn {
    pointer-events: auto !important;
}

/* De onzichtbare input mag NOOIT buiten de container treden */
.date-input-hidden {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide the technical field used for storing YYYY-MM-DD */
#appointment-date{display:none !important;}

/* Flatpickr must sit above EVERYTHING */
.flatpickr-calendar {
    z-index: 999999 !important;
}

/* Zorg dat form-groups geen z-index conflicten veroorzaken */
#step-2 .form-group {
    position: relative;
    z-index: 1;
    overflow: visible;
}

#date-display {
    cursor: pointer;
}

/* Hide logo & header when embedded in iframe */
.in-iframe .banner,
.in-iframe .logo {
    display: none !important;
}

/* Optional: tighten top spacing when header is gone */
.in-iframe .container {
    padding-top: 10px;
}

/* =========================================================
   DailyRun booking – Mobile spacing tighten (ONLY mobile)
   Plak onderaan multistepper_styles.css
   ========================================================= */
@media (max-width: 480px) {

  /* 1) Algemeen: minder padding zodat alles compacter voelt */
  .container { padding: 8px !important; }
  .main-content { padding: 14px !important; }
  .header {
    padding: 12px !important;
    margin-bottom: 12px !important;
    border-radius: 14px !important;
  }

  /* 2) Header-tekst: minder hoogte */
  .step-header { margin-bottom: 16px !important; }
  .step-header h2 { font-size: 20px !important; margin-bottom: 4px !important; }
  .step-header p { font-size: 14px !important; line-height: 1.35 !important; }

  /* 3) Stepper compacter (dit pakt jouw “stappenbalk” witruimte aan) */
  .stepper { gap: 8px !important; }
  .step { gap: 4px !important; min-width: 66px !important; }
  .step-number {
    width: 30px !important;
    height: 30px !important;
    font-size: 13px !important;
  }
  .step-label { font-size: 11px !important; line-height: 1.1 !important; }

  /* 4) “Locatie: DailyRun …” minder hoog */
  .location-display { font-size: 14px !important; margin-top: 6px !important; }

  /* 5) Quick buttons compacter */
  .quick-date-selection { gap: 6px !important; margin-top: 6px !important; }
  .quick-date-btn {
    padding: 6px 10px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }

  /* 6) Datumveld compacter (zonder je calendar-fix te slopen) */
  .date-display,
  #date-display,
  .date-input-container input[type="text"],
  .flatpickr-input {
    padding: 10px 44px 10px 12px !important; /* rechts ruimte voor icoon, maar kleiner */
    font-size: 15px !important;
  }

  /* 7) “Gekozen” (selected-datetime) kaart kleiner: grootste winst op mobiel */
  .selected-datetime {
    padding: 10px 12px !important;
    margin-top: 10px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    gap: 8px !important;
  }
  .selected-datetime i { font-size: 16px !important; }
  .selected-datetime strong { font-weight: 700 !important; }

  /* 8) Tijdslots compacter en netter: meer slots in beeld */
  .time-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }
  .time-slot {
    padding: 10px 8px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
  }

  /* 9) Minder witruimte vóór/na knoppen */
  .button-group { margin-top: 18px !important; gap: 10px !important; }
  .btn { padding: 12px 16px !important; border-radius: 12px !important; }
}
