/* Book a Service — page-specific styles */

.book-section {
  padding-top: 120px;
  padding-bottom: 60px;
  min-height: 100vh;
}

.book-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.book-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.book-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Perks */
.book-perks {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.perk {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.perk-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.perk strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.perk p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Contact */
.book-contact {
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
}
.book-contact p { color: var(--text-muted); font-size: 0.9rem; }
.book-phone {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin: 6px 0;
}
.book-hours { font-size: 0.85rem; color: var(--text-muted); }

/* Form */
.book-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px;
}

/* Progress */
.form-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card-border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
}
.progress-step.active .step-num {
  background: #2563b8;
  color: #fff;
}
.progress-step.completed .step-num {
  background: #27ae60;
  color: #fff;
}
.step-label {
  font-size: 13px;
  font-weight: 600;
  color: #8c94a6;
}
.progress-step.active .step-label { color: var(--text) !important; }
.progress-line {
  width: 40px;
  height: 2px;
  background: var(--card-border);
  margin: 0 12px;
  transition: background 0.3s;
}
.progress-line.active { background: var(--primary); }

/* Step headings */
.form-step h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Service options grid */
.service-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
  border-radius: 8px;
  transition: outline 0.2s;
}
.service-option {
  cursor: pointer;
}
.service-option input { display: none; }
.option-card {
  display: block;
  padding: 14px 16px;
  border: 2px solid var(--card-border);
  border-radius: 10px;
  transition: all 0.2s;
  height: 100%;
}
.option-card strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.option-card small {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.3;
}
.service-option input:checked + .option-card {
  border-color: var(--primary);
  background: rgba(45, 106, 191, 0.1);
}
.option-card:hover {
  border-color: var(--primary);
}

/* Form fields */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  margin-bottom: 16px;
}
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

/* Checkbox */
.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
  color: var(--text) !important;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

/* Navigation */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
}

/* Success */
.form-success {
  text-align: center;
  padding: 48px 24px;
}
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h2 { font-size: 1.6rem; margin-bottom: 12px; }
.form-success p { color: var(--text-muted); font-size: 1rem; margin-bottom: 8px; }
.success-note a { color: var(--primary); font-weight: 600; }

/* Assessment banner */
.assessment-banner {
  background: rgba(45, 106, 191, 0.12);
  border: 1px solid rgba(45, 106, 191, 0.3);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 28px;
}
.assessment-banner strong { display: block; margin-bottom: 6px; color: var(--primary); font-size: 0.9rem; }
.assessment-banner p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }
.assessment-banner p strong { display: inline; color: var(--text); }

/* Rego lookup */
.rego-input-row { display: flex; gap: 8px; align-items: center; }
.rego-field { flex: 1; font-size: 1.1rem !important; letter-spacing: 0.1em; font-weight: 700; }
.rego-state { background: var(--primary); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 700; font-size: 14px; }
.rego-btn { white-space: nowrap; padding: 10px 20px !important; }
.rego-hint { color: var(--text); opacity: 0.7; font-size: 0.8rem; margin-top: 6px; display: block; }
.rego-result { margin-top: 12px; }
.rego-found { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.rego-found.success { background: rgba(39, 174, 96, 0.15); border: 1px solid rgba(39, 174, 96, 0.3); color: #27ae60; }
.rego-found.notfound { background: rgba(231, 76, 60, 0.1); border: 1px solid rgba(231, 76, 60, 0.3); color: #e74c3c; }
.rego-found-icon { font-size: 1.2rem; }

/* Or divider */
.or-divider { text-align: center; margin: 20px 0; position: relative; }
.or-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--card-border); }
.or-divider span { background: var(--card-bg); padding: 0 16px; position: relative; color: var(--text-muted); font-size: 0.85rem; }

/* Calendar */
.calendar-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; }
.cal-nav-btn { background: var(--card-border); border: none; color: var(--text); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.cal-nav-btn:hover { background: var(--primary); color: #fff; }
.cal-week-label { font-weight: 600; font-size: 0.95rem; }
.calendar-grid { margin-bottom: 20px; }
.cal-header { display: grid; grid-template-columns: 60px repeat(5, 1fr); gap: 4px; margin-bottom: 4px; }
.cal-day-col { text-align: center; font-size: 0.8rem; color: var(--text-muted); padding: 6px 0; }
.cal-day-col strong { color: var(--text); font-size: 1rem; }
.cal-time-col { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; justify-content: center; }
.cal-row { display: grid; grid-template-columns: 60px repeat(5, 1fr); gap: 4px; margin-bottom: 4px; }
.cal-slot { text-align: center; padding: 8px 4px; border-radius: 6px; font-size: 0.78rem; font-weight: 500; transition: all 0.15s; }
.cal-slot.available { background: rgba(39, 174, 96, 0.15); border: 1px solid rgba(39, 174, 96, 0.3); color: #27ae60; cursor: pointer; }
.cal-slot.available:hover { background: rgba(39, 174, 96, 0.3); }
.cal-slot.available.selected { background: var(--primary); border-color: var(--primary); color: #fff; }
.cal-slot.booked { background: var(--input-bg); border: 1px solid var(--card-border); color: var(--text-muted); opacity: 0.4; }
.step-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }

/* Assessment note */
.assessment-note { background: rgba(45,106,191,0.08); border: 1px solid rgba(45,106,191,0.2); border-radius: 8px; padding: 14px 18px; margin-bottom: 24px; }
.assessment-note strong { color: var(--primary); font-size: 0.9rem; display: block; margin-bottom: 4px; }
.assessment-note p { color: var(--text-muted); font-size: 0.83rem; line-height: 1.5; }
.contact-heading { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; padding-top: 16px; border-top: 1px solid var(--card-border); }

/* Card selection micro-animation (Sprint 1 #10) */
.option-card { transform: scale(1); }
.service-option input:checked + .option-card {
  animation: cardPulse 0.2s ease-out;
}
@keyframes cardPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* Inline "Other" textarea (Sprint 1 #7) */
.other-textarea-wrap {
  display: none;
  margin-top: 8px;
}
.other-textarea-wrap.visible {
  display: block;
}
.other-textarea-wrap textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 60px;
}
.other-textarea-wrap textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Error toast (Sprint 1 #8) */
.form-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #e74c3c;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.form-toast.show { opacity: 1; }

/* Mobile inline perk banner (Sprint 1 #5) */
.mobile-perk-banner {
  display: none;
  background: rgba(45, 106, 191, 0.12);
  border: 1px solid rgba(45, 106, 191, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.mobile-perk-banner strong { color: var(--text); }

/* Sticky CTA bar (Sprint 1 #2) */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.3);
}
.sticky-cta .btn { width: 100%; }

/* Calendar day badges (Sprint 1 #11) */
.cal-day-col .day-badge {
  display: inline-block;
  font-size: 0.65rem;
  background: var(--primary);
  color: #fff;
  padding: 1px 6px;
  border-radius: 10px;
  margin-top: 2px;
  font-weight: 600;
}

/* Mobile calendar 3-day view nav (Sprint 1 #3) */
.cal-day-nav {
  display: none;
}

/* Mobile */
@media (max-width: 768px) {
  .book-layout { grid-template-columns: 1fr; gap: 24px; }
  .book-section { padding-top: 80px; padding-left: 16px; padding-right: 16px; } /* #4: 120→80 */
  .book-form { order: -1; padding: 16px; }
  .service-options { grid-template-columns: 1fr 1fr; gap: 8px; } /* #1: always 2-col */
  .option-card { padding: 10px 12px; } /* tighter cards */
  .option-card strong { font-size: 0.82rem; }
  .option-card small { font-size: 0.72rem; }
  .form-step h2 { font-size: 1.1rem; margin-bottom: 14px; } /* #6: smaller heading */
  .form-grid { grid-template-columns: 1fr; }
  .book-title { font-size: 2rem; }
  .rego-input-row { flex-wrap: wrap; }
  .rego-btn { width: 100%; }
  .mobile-perk-banner { display: block; } /* #5: show perk in form */

  /* Calendar: 3-day view on mobile (#3) */
  .cal-header, .cal-row { grid-template-columns: 45px repeat(3, 1fr); }
  .cal-slot { font-size: 0.82rem; padding: 10px 4px; min-height: 44px; display: flex; align-items: center; justify-content: center; } /* 44px tap target */
  .cal-day-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; }
  .cal-day-nav button { background: var(--card-border); border: none; color: var(--text); width: 32px; height: 32px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; }
  .cal-day-nav button:hover { background: var(--primary); color: #fff; }
  .cal-day-nav span { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

  /* Sticky CTA visible on mobile when service selected (#2) */
  .sticky-cta.visible { display: block; }
  /* Add bottom padding to form so sticky bar doesn't cover content */
  .book-form { padding-bottom: 70px; }
  /* Hide inline Next button on step 1 mobile (sticky replaces it) */
  .form-step[data-step="1"] .form-nav .btn-next { visibility: hidden; height: 0; padding: 0; margin: 0; border: 0; overflow: hidden; }
}
