/* =========================================
   BOOKINGS.CSS — Booking form page styles
   Waggy Bums Dog Groomers
   ========================================= */

.bookings-section {
  background: var(--white);
}

.bookings__layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--sp-xl);
  align-items: start;
  min-width: 0;
}

/* ===== BOOKING FORM ===== */
.booking-form {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-width: 0;
}

.form-section {
  padding: var(--sp-lg);
  border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section__header {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.form-section__num {
  width: 36px;
  height: 36px;
  background: var(--purple);
  color: var(--white);
  border-radius: var(--r-round);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  flex-shrink: 0;
}

.form-section__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-dark);
}

.form-section__emoji {
  font-size: 1.3rem;
  margin-left: auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
}

.form-row--3 {
  grid-template-columns: repeat(3, 1fr);
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

/* ===== SERVICE CARDS ===== */
.service-options {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.service-option {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  padding: var(--sp-md);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: var(--t);
}

.service-option:has(input:checked) {
  border-color: var(--purple);
  background: var(--purple-xlight);
}

.service-option:hover {
  border-color: var(--purple-light);
  background: var(--bg-alt);
}

.service-option input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--purple);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.service-option__icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.service-option__name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.service-option__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.service-option__price {
  margin-left: auto;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--purple);
  flex-shrink: 0;
  padding-top: 2px;
}

/* ===== ADD-ONS ===== */
.addon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-sm);
}

.addon-option {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: var(--sp-sm);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: var(--t);
  font-size: 0.9rem;
}

.addon-option:has(input:checked) {
  border-color: var(--pink);
  background: var(--pink-xlight);
}

.addon-option:hover {
  border-color: var(--pink-light);
}

.addon-option input {
  accent-color: var(--pink);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.addon-option__emoji { font-size: 1.2rem; }
.addon-option__name  { font-weight: 600; color: var(--text-dark); flex: 1; }
.addon-option__price { color: var(--text-muted); font-size: 0.82rem; }

/* ===== FORM FOOTER ===== */
.booking-form__footer {
  background: var(--bg-alt);
  padding: var(--sp-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.booking-form__footer .btn {
  flex: 1;
  justify-content: center;
  min-width: 200px;
}

.booking-form__note {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== SIDEBAR ===== */
.bookings-sidebar {
  min-width: 0;
}

.sidebar-card {
  background: var(--bg-alt);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  margin-bottom: var(--sp-md);
  border: 1px solid var(--border);
  min-width: 0;
  overflow: hidden;
}

.sidebar-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--purple-dark);
  margin-bottom: var(--sp-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.pricing-table tr {
  border-bottom: 1px solid var(--border);
}

.pricing-table tr:last-child {
  border-bottom: none;
}

.pricing-table td {
  padding: 8px 4px;
  color: var(--text-body);
}

.pricing-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--purple-dark);
}

/* FAQ */
.faq-item {
  margin-bottom: var(--sp-sm);
}

.faq-question {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.faq-answer {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.6;
  padding-left: 20px;
}

/* Contact mini */
.contact-mini {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  min-width: 0;
}

.contact-mini-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-xs);
  font-size: 0.9rem;
  color: var(--text-body);
  font-weight: 500;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .bookings__layout {
    grid-template-columns: 1fr;
  }

  .bookings-sidebar {
    order: -1;
  }
}

@media (max-width: 580px) {
  .form-row { grid-template-columns: 1fr; }
  .form-row--3 { grid-template-columns: 1fr; }
  .addon-grid { grid-template-columns: 1fr; }
  .service-option__price { display: none; }

  .service-option {
    flex-wrap: wrap;
    gap: var(--sp-xs);
  }

  .booking-form__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .booking-form__footer .btn {
    min-width: 0;
    width: 100%;
  }

  .booking-form__note {
    min-width: 0;
    width: 100%;
  }

  .pricing-table {
    font-size: 0.78rem;
  }

  .pricing-table td {
    padding: 6px 2px;
  }
}
