/* ============================================================
   SEWER MASTERS — Booking Page Styles (book.css)
   Extends style.css — same tokens, same dark brand
   ============================================================ */

/* ---- Hero ---- */
.book-hero {
  background: var(--color-black);
  color: var(--color-white);
  padding-block: clamp(var(--space-12), 9vw, var(--space-20));
  position: relative;
  overflow: hidden;
  text-align: center;
}
.book-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 30%, rgba(201,162,39,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(201,162,39,0.04) 0%, transparent 45%);
  pointer-events: none;
}
.book-hero .container { position: relative; z-index: 1; }
.book-hero h1 {
  font-size: var(--text-2xl);
  color: var(--color-white);
  margin-bottom: var(--space-5);
  line-height: 1.1;
}
.book-hero h1 em {
  font-style: normal;
  color: var(--color-gold);
}
.book-hero__sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  line-height: 1.55;
}
.book-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-6);
}
.book-hero__primary {
  min-width: 180px;
}
.book-hero__phone-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.book-hero__phone-num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}
.book-hero__phone-num:hover { color: var(--color-gold-hover); }
.book-hero__trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  background: var(--color-gold-dim);
  border: 1px solid var(--color-gold-line);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  white-space: nowrap;
}

/* ---- Service Picker ---- */
.service-picker {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 540px) {
  .service-picker { grid-template-columns: repeat(3, 1fr); }
}
.svc-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  background: var(--color-black-card);
  border: 2px solid var(--color-black-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-4);
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  min-height: 90px;
}
.svc-btn:hover {
  border-color: var(--color-gold-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.svc-btn[aria-pressed="true"],
.svc-btn.selected {
  border-color: var(--color-gold);
  background: var(--color-gold-dim);
  box-shadow: var(--shadow-gold);
}
.svc-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: var(--space-1);
}
.svc-label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-white);
  line-height: 1.2;
}
.svc-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ---- Booking Form Section ---- */
.book-form-section { background: var(--color-black); }

.book-form-wrap {
  margin-top: var(--space-8);
}
.booking-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Override form-group defaults slightly for this page */
.booking-form .form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.booking-form .form-row {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .booking-form .form-row { grid-template-columns: 1fr 1fr; }
}

.booking-form label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.booking-form .req { color: var(--color-gold); }

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-black-card);
  border: 1.5px solid var(--color-black-border2);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
  /* Large tap targets */
  min-height: 52px;
}
.booking-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239a9590' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}
.booking-form select option { background: var(--color-black-soft); }
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.14);
}
.booking-form textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

/* Input states */
.booking-form input.error,
.booking-form select.error,
.booking-form textarea.error {
  border-color: #c0392b;
}

.field-error {
  font-size: var(--text-xs);
  color: #e07070;
  min-height: 1em;
  display: block;
}
.field-hint {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-1);
  display: block;
}

/* Submit button */
.book-submit {
  width: 100%;
  justify-content: center;
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
  margin-top: var(--space-2);
  position: relative;
}
.book-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}
.submit-spinner { display: inline-flex; align-items: center; }
.spin {
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-confirm-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  max-width: 100%;
  margin-top: var(--space-2);
}

/* Form-level error */
.form-error-global {
  padding: var(--space-4);
  background: rgba(180,40,40,0.1);
  border-left: 3px solid #c0392b;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-sm);
  color: #e07070;
}

/* Success state */
.form-success {
  text-align: center;
  background: var(--color-black-card);
  border: 1px solid var(--color-gold-line);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-8), 6vw, var(--space-12));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.form-success[hidden] { display: none; }
.form-success__icon { font-size: 2.5rem; }
.form-success h3 {
  font-size: var(--text-xl);
  color: var(--color-gold);
}
.form-success p {
  color: var(--color-text-muted);
  max-width: 42ch;
  text-align: center;
}

/* ---- Trust Section ---- */
.book-trust { background: var(--color-black-soft); }
.trust-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-12);
}
@media (min-width: 600px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

.trust-card {
  background: var(--color-black-card);
  border: 1px solid var(--color-black-border);
  border-top: 3px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.trust-card__icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-3);
}
.trust-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-2);
}
.trust-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 100%;
}

/* ---- Reviews ---- */
.reviews-block {
  border-top: 1px solid var(--color-black-border2);
  padding-top: var(--space-8);
}
.reviews-block__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.reviews-stars {
  font-size: 1.4rem;
  color: var(--color-gold);
  letter-spacing: 2px;
  line-height: 1;
}
.reviews-block__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.reviews-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

.review-card {
  background: var(--color-black-card2);
  border: 1px solid var(--color-black-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.review-stars {
  color: var(--color-gold);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-3);
}
.review-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.55;
  max-width: 100%;
  margin-bottom: var(--space-3);
}
.review-author {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
}

/* ---- FAQ ---- */
.book-faq { background: var(--color-black); }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-black-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--color-black-border); }
.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--color-black-card);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  /* Large tap target */
  min-height: 60px;
}
.faq-q:hover { background: var(--color-black-card2); color: var(--color-gold); }
.faq-q[aria-expanded="true"] { color: var(--color-gold); }
.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--color-gold);
  transition: transform var(--transition);
}

.faq-a {
  padding: var(--space-4) var(--space-6) var(--space-5);
  background: var(--color-black-soft);
}
.faq-a[hidden] { display: none; }
.faq-a p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 100%;
  line-height: 1.65;
}
.faq-a a { color: var(--color-gold); text-decoration: underline; text-decoration-color: rgba(201,162,39,0.4); }
.faq-a a:hover { color: var(--color-gold-hover); }

/* ---- Sticky CTA bar override for booking page ---- */
.sticky-cta--book {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: var(--space-2) var(--space-3);
  gap: var(--space-2);
}
@media (min-width: 768px) { .sticky-cta--book { display: none; } }

.sticky-cta--book a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-1);
  border-radius: var(--radius-md);
  transition: background var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.sticky-cta--book svg { flex-shrink: 0; }

.sticky-cta--book .cta-call {
  background: var(--color-gold);
  color: var(--color-black);
}
.sticky-cta--book .cta-call:hover { background: var(--color-gold-hover); }

.sticky-cta--book .cta-text {
  background: transparent;
  color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
}
.sticky-cta--book .cta-text:hover { background: var(--color-gold); color: var(--color-black); }

.sticky-cta--book .cta-book {
  background: var(--color-black-card2);
  color: var(--color-white);
  border: 1.5px solid var(--color-black-border2);
}
.sticky-cta--book .cta-book:hover { border-color: var(--color-gold); color: var(--color-gold); }

/* Body padding override for 3-button bar */
@media (max-width: 767px) {
  body { padding-bottom: 80px; }
}

/* ---- Hero badge (already in style.css, ensure it shows inline on this page) ---- */
.book-hero .hero-badge {
  margin-bottom: var(--space-5);
  display: inline-flex;
}

/* ---- CTA band: 3-button layout ---- */
.cta-band .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* ---- Smooth scroll adjustment for sticky header ---- */
html { scroll-padding-top: 100px; }

/* ---- Reveal animation (matching main.js pattern) ---- */
.trust-card,
.review-card,
.svc-btn,
.faq-item {
  /* handled by JS reveal class injection */
}
