/*
 * afspraak.css — Afspraak Maken (Booking) page-specific styles
 * Fietsdirectservice.nl — Mechanical Atelier Design System
 *
 * Covers: multi-step booking form, booking summary sidebar, trust points.
 */

/* ================================================================== */
/*  BOOKING LAYOUT                                                     */
/* ================================================================== */

.booking {
  background: var(--surface-container-low);
  padding: var(--space-section) 0;
}

.booking__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: var(--space-3xl);
  align-items: start;
}

/* ================================================================== */
/*  BOOKING FORM                                                       */
/* ================================================================== */

.booking-form {
  background: var(--surface-bright);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
}

.booking-form h2 {
  margin-bottom: var(--space-xs);
}

.booking-form > p {
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
}

/* Steps indicator */
.booking-steps {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-2xl);
}

.booking-step-indicator {
  flex: 1;
  height: 4px;
  background: var(--surface-container);
  border-radius: 2px;
  transition: background var(--duration-normal) var(--ease-out);
}

.booking-step-indicator--active {
  background: var(--color-accent);
}

.booking-step-indicator--complete {
  background: var(--color-accent);
  opacity: 0.5;
}

/* Step sections */
.booking-step {
  display: none;
}

.booking-step--active {
  display: block;
}

.booking-step__title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.booking-step__title .step-number {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: var(--text-small);
  flex-shrink: 0;
}

.booking-step__title h3 {
  margin: 0;
}

/* Service type selector */
.service-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.service-option {
  position: relative;
  cursor: pointer;
}

.service-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.service-option__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xl) var(--space-md);
  background: var(--surface-container-low);
  border: 2px solid transparent;
  border-radius: var(--radius-xl);
  text-align: center;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}

.service-option input:checked + .service-option__card {
  border-color: var(--color-accent);
  background: var(--color-accent-subtle);
}

.service-option input:focus-visible + .service-option__card {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.service-option__card:hover {
  background: var(--surface-container);
}

.service-option__card .material-symbols-outlined {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.service-option__card h4 {
  margin-bottom: var(--space-xs);
  font-size: var(--text-body);
}

.service-option__card span {
  font-size: var(--text-small);
  color: var(--text-secondary);
}

/* Date & time */
.datetime-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

/* Bike count */
.bike-count {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.bike-count__control {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--surface-container-low);
  border-radius: var(--radius-lg);
  padding: var(--space-xs);
}

.bike-count__btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-container);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: background var(--duration-fast) var(--ease-out);
}

.bike-count__btn:hover {
  background: var(--surface-container-high);
}

.bike-count__value {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: var(--text-body-lg);
  width: 2rem;
  text-align: center;
}

/* Photo upload */
.photo-upload {
  margin-bottom: var(--space-xl);
}

.photo-upload__dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  background: var(--surface-container-low);
  border: 2px dashed var(--surface-container-highest);
  border-radius: var(--radius-xl);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.photo-upload__dropzone:hover {
  border-color: var(--color-accent);
}

.photo-upload__dropzone .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.photo-upload__dropzone p {
  color: var(--text-secondary);
  font-size: var(--text-small);
  margin: 0;
}

.photo-upload__dropzone strong {
  color: var(--color-accent);
}

/* Navigation buttons */
.booking-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--surface-container);
}

.booking-nav .btn--back {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: var(--space-sm) var(--space-lg);
  cursor: pointer;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: var(--text-body);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  transition: color var(--duration-fast) var(--ease-out);
}

.booking-nav .btn--back:hover {
  color: var(--text-primary);
}

/* ================================================================== */
/*  BOOKING SIDEBAR                                                    */
/* ================================================================== */

.booking-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  position: sticky;
  top: calc(var(--header-height, 80px) + var(--space-xl));
}

/* Summary card */
.booking-summary {
  background: var(--surface-bright);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
}

.booking-summary h3 {
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.booking-summary h3 .material-symbols-outlined {
  color: var(--color-accent);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--surface-container-low);
  font-size: var(--text-small);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row__label {
  color: var(--text-secondary);
}

.summary-row__value {
  font-family: var(--font-headline);
  font-weight: 600;
  color: var(--text-primary);
}

.summary-row--total {
  border-top: 2px solid var(--surface-container);
  border-bottom: none;
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
}

.summary-row--total .summary-row__label {
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--text-primary);
}

.summary-row--total .summary-row__value {
  font-size: var(--text-body-lg);
  color: var(--color-accent);
  font-weight: 800;
}

/* Trust block */
.booking-trust {
  background: var(--surface-bright);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
}

.booking-trust__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.booking-trust__item:last-child {
  margin-bottom: 0;
}

.booking-trust__item .material-symbols-outlined {
  color: var(--color-accent);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.booking-trust__item p {
  font-size: var(--text-small);
  color: var(--text-secondary);
  margin: 0;
}

.booking-trust__item strong {
  color: var(--text-primary);
  display: block;
  font-family: var(--font-headline);
  margin-bottom: 2px;
}

/* ================================================================== */
/*  RESPONSIVE                                                         */
/* ================================================================== */

@media (max-width: 1024px) {
  .booking__grid {
    grid-template-columns: 1fr;
  }

  .booking-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .booking-summary,
  .booking-trust {
    flex: 1;
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .service-selector {
    grid-template-columns: 1fr;
  }

  .datetime-row {
    grid-template-columns: 1fr;
  }

  .booking-sidebar {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .booking-form {
    padding: var(--space-lg);
  }

  .booking-summary,
  .booking-trust {
    padding: var(--space-lg);
  }
}
