/* ============================================
   ATAMAP ASSOCIATES — Booking Page Styles
   ============================================ */

/* ---- Step Indicators ---- */
.booking-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
  padding: var(--space-4) 0;
}

.booking-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--border-radius-pill);
  background: var(--color-pure-white);
  border: 1px solid var(--color-graphite-500);
  transition: all var(--duration-normal) var(--ease-spring-settle);
}

.booking-step--active {
  border-color: var(--color-accent);
  background: var(--color-accent-dim);
}

.booking-step--completed {
  border-color: var(--color-accent);
  background: var(--color-accent-dim);
}

.booking-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  background: var(--color-graphite-500);
  color: var(--color-silver-200);
  flex-shrink: 0;
  transition: all var(--duration-normal) var(--ease-spring-settle);
}

.booking-step--active .booking-step__number {
  background: var(--color-accent);
  color: var(--color-navy-900);
}

.booking-step--completed .booking-step__number {
  background: var(--color-accent);
  color: var(--color-navy-900);
}

.booking-step__label {
  font-size: var(--font-size-sm);
  color: var(--color-steel-400);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}

.booking-step--active .booking-step__label {
  color: var(--color-accent);
}

.booking-step--completed .booking-step__label {
  color: var(--color-silver-200);
}

@media (max-width: 639px) {
  .booking-step__label {
    display: none;
  }
  .booking-steps {
    gap: var(--space-4);
  }
  .booking-step {
    padding: var(--space-2);
  }
}

/* ---- Booking Layout ---- */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .booking-layout {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
}

/* ---- Section Titles ---- */
.booking-section__title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-silver-100);
  margin-bottom: var(--space-2);
}

.booking-section__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-navy-900);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

.booking-section__desc {
  color: var(--color-steel-300);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-6);
}

.booking-section {
  margin-bottom: var(--space-10);
}

.booking-section:last-child {
  margin-bottom: 0;
}

/* ---- Service Selection Grid ---- */
.service-select-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .service-select-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-select-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Service Card ---- */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  background: var(--color-pure-white);
  border: 2px solid var(--color-graphite-500);
  border-radius: var(--border-radius-card);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-spring-settle);
  text-align: center;
  min-height: 120px;
}

.service-card:hover {
  border-color: var(--color-steel-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-card--selected {
  border-color: var(--color-accent) !important;
  background: var(--color-accent-dim);
  box-shadow: var(--shadow-glow);
}

.service-card__icon {
  width: 40px;
  height: 40px;
  color: var(--color-steel-300);
  transition: color var(--duration-normal) var(--ease-spring-settle);
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card--selected .service-card__icon {
  color: var(--color-accent);
}

.service-card__name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-silver-200);
  transition: color var(--duration-normal) var(--ease-spring-settle);
}

.service-card--selected .service-card__name {
  color: var(--color-accent);
}

/* Checkmark icon */
.service-card__check {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 20px;
  height: 20px;
  opacity: 0;
  transform: scale(0);
  transition: all var(--duration-normal) var(--ease-spring-1);
  color: var(--color-accent);
}

.service-card__check svg {
  width: 100%;
  height: 100%;
}

.service-card--selected .service-card__check {
  opacity: 1;
  transform: scale(1);
}

/* ---- Time Slot Grid ---- */
.time-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .time-slot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.time-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-4);
  background: var(--color-pure-white);
  border: 2px solid var(--color-graphite-500);
  border-radius: var(--border-radius-md);
  color: var(--color-silver-200);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  min-height: var(--touch-target);
  transition: all var(--duration-fast) var(--ease-spring-settle);
}

.time-slot:hover {
  border-color: var(--color-steel-400);
  background: var(--color-navy-600);
}

.time-slot--selected {
  border-color: var(--color-accent) !important;
  background: var(--color-accent-dim);
  color: var(--color-accent);
  box-shadow: var(--shadow-glow);
}

/* ---- Booking Summary (Sticky) ---- */
.booking-summary {
  background: var(--color-pure-white);
  border: 1px solid var(--color-graphite-500);
  border-radius: var(--border-radius-card);
  padding: var(--space-6);
  position: relative;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 1024px) {
  .booking-summary {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
  }
}

.booking-summary__title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.booking-summary__title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--color-accent);
  border-radius: 2px;
}

.booking-summary__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}

.booking-summary__item:last-of-type {
  border-bottom: none;
}

.booking-summary__label {
  font-size: var(--font-size-sm);
  color: var(--color-steel-400);
  font-weight: var(--font-weight-medium);
}

.booking-summary__value {
  font-size: var(--font-size-sm);
  color: var(--color-silver-200);
  font-weight: var(--font-weight-semibold);
  text-align: right;
  max-width: 60%;
}

.booking-summary__value--set {
  color: var(--color-accent);
}

.booking-summary__divider {
  height: 1px;
  background: var(--color-graphite-500);
  margin: var(--space-4) 0;
}

.booking-summary__note {
  font-size: var(--font-size-xs);
  color: var(--color-steel-300);
  line-height: var(--line-height-relaxed);
}

.booking-summary__note strong {
  color: var(--color-accent);
}

/* ---- Submit Button ---- */
.booking-submit-btn {
  width: 100%;
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.booking-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---- Success Confirmation ---- */
.booking-success {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  max-width: 560px;
  margin: 0 auto;
}

.booking-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.15);
  color: var(--color-success);
  animation: bookingSuccessPulse 0.6s var(--ease-spring-1);
}

.booking-success__icon svg {
  width: 40px;
  height: 40px;
}

@keyframes bookingSuccessPulse {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.booking-success__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-silver-100);
  margin-bottom: var(--space-4);
}

.booking-success__message {
  font-size: var(--font-size-md);
  color: var(--color-steel-300);
  margin-bottom: var(--space-8);
  line-height: var(--line-height-relaxed);
}

.booking-success__message strong {
  color: var(--color-accent);
}

.booking-success__details {
  background: var(--color-pure-white);
  border: 1px solid var(--color-graphite-500);
  border-radius: var(--border-radius-md);
  padding: var(--space-5);
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.booking-success__detail {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
}

.booking-success__detail:not(:last-child) {
  border-bottom: 1px solid rgba(55, 65, 81, 0.4);
}

.booking-success__detail-label {
  font-size: var(--font-size-sm);
  color: var(--color-steel-400);
}

.booking-success__detail-value {
  font-size: var(--font-size-sm);
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
}

/* ---- Date input on dark theme ---- */
.booking-section input[type="date"] {
  color-scheme: light;
}

/* ---- Focus visible for service cards and time slots ---- */
.service-card:focus-visible,
.time-slot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
