/* Tarinan Karisma: asiakasnakyma, paivan ja ajan valinta */

.booking-page {
  width: min(900px, 100%);
  margin: 0 auto;
}

.booking-header:not(.booking-header-banner),
.booking-times-panel {
  margin-bottom: 24px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #cde9fa;
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(13, 94, 160, 0.1);
}

.booking-header:not(.booking-header-banner) h1 {
  margin-bottom: 12px;
}

.booking-intro {
  max-width: 700px;
  margin: 0;
  color: #476b8f;
}

.date-choice-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.date-choice-button {
  display: grid;
  min-width: 0;
  padding: 16px;
  gap: 3px;
  background: #e7f4ff;
  color: #0d5797;
  border: 1px solid #b9def5;
  border-radius: 16px;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.date-choice-button:hover {
  background: #d9efff;
  border-color: #77bdeb;
}

.date-choice-button:focus-visible {
  outline: 3px solid rgba(99, 185, 240, 0.45);
  outline-offset: 3px;
}

.date-choice-button-selected {
  background: #0d6fb8;
  color: #ffffff;
  border-color: #0d6fb8;
  box-shadow: 0 8px 20px rgba(13, 111, 184, 0.2);
}

.date-choice-date {
  font-size: 1.05rem;
  font-weight: 700;
}

.date-choice-count {
  font-size: 0.9rem;
  opacity: 0.86;
}

/* Tietyn päivän vapaat ajat */

.available-times-heading {
  display: flex;
  align-items: baseline;
  margin: 0 0 20px;
  gap: 6px 10px;
  flex-wrap: wrap;
}

.available-times-date {
  color: #0d6fb8;
  font-size: 0.92em;
  font-weight: 700;
}

.customer-slot-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.customer-slot-card {
  display: flex;
  min-width: 0;
  height: 100%;
  padding: 18px;
  gap: 16px;
  flex-direction: column;

  background: #eef8fe;
  border: 1px solid #add8f1;
  border-radius: 16px;
  box-shadow: 0 5px 14px rgba(13, 111, 184, 0.06);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.customer-slot-card:hover {
  border-color: #83c3e9;
  box-shadow: 0 10px 22px rgba(13, 111, 184, 0.1);
  transform: translateY(-1px);
}

.customer-slot-details {
  min-width: 0;
}

.customer-slot-service {
  margin: 0 0 12px;
  color: #063f82;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  line-height: 1.35;
}

.customer-slot-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.customer-slot-time,
.customer-slot-price,
.customer-slot-location {
  display: grid;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 9px 10px;
  gap: 2px;

  background: #ffffff;
  border: 1px solid #c7e4f5;
  border-radius: 10px;

  color: #12345a;
  line-height: 1.35;
}

.customer-slot-location {
  grid-column: 1 / -1;
}

.customer-slot-label {
  display: block;
  color: #5e7d99;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.customer-slot-time strong,
.customer-slot-price strong,
.customer-slot-location strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.94rem;
}

.customer-slot-time strong {
  color: #0d6fb8;
}

.customer-slot-action {
  display: flex;
  width: 100%;
  margin-top: auto;
  justify-content: flex-start;
}

.customer-slot-action .primary-button {
  width: auto;
  min-width: 126px;
}

/* Pehmeän siirtymän kohdistus */

html {
  scroll-behavior: smooth;
}

#available-times {
  scroll-margin-top: 20px;
}

/* Mobiilinäkymä */

@media (max-width: 700px) {
  .booking-header:not(.booking-header-banner),
  .booking-times-panel {
    padding: 20px;
    border-radius: 20px;
  }

  .date-choice-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .available-times-heading {
    display: grid;
    margin-bottom: 16px;
    gap: 2px;
  }

  .available-times-date {
    font-size: 0.88em;
  }

  .customer-slot-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .customer-slot-card {
    padding: 18px;
    background: #e4f3fc;
    border-color: #8fc7e9;
  }

  .customer-slot-card:hover {
    transform: none;
  }

  .customer-slot-service {
    margin-bottom: 10px;
  }

  .customer-slot-action .primary-button {
    width: 100%;
    min-width: 0;
  }

  #available-times {
    scroll-margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .customer-slot-card {
    transition: none;
  }
}