/* book-a-meeting.css -- styles used only on book-a-meeting.html.
   Generated by tools/split-css.js from the original style.css. */

/* ---------------------------------------------------------------
   Custom appointment scheduler (replaces the old Calendly embed).
   Field styling mirrors assets/css/contact.css's .form-row/.form-field
   pattern (same design tokens from base.css), kept as its own copy
   here since this page doesn't load contact.css.
--------------------------------------------------------------- */

.book-request-form {
  margin-top: 20px;
}

.book-request-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.book-request-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.book-request-form .form-row .form-field {
  margin-bottom: 0;
}

.book-request-form .form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.book-request-form .form-field select:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.book-request-form .form-field input,
.book-request-form .form-field select,
.book-request-form .form-field textarea {
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}

.book-request-form .form-field textarea {
  resize: vertical;
  min-height: 90px;
}

.book-request-form .form-field input::placeholder,
.book-request-form .form-field textarea::placeholder {
  color: var(--soft);
}

.book-request-form .form-field input:focus,
.book-request-form .form-field select:focus,
.book-request-form .form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(5, 201, 255, .18);
}

.book-request-form > .btn {
  width: 100%;
  min-height: 48px;
}

.book-request-form > .btn:disabled {
  opacity: .7;
  cursor: not-allowed;
}

/* Success/error banner, same pattern as contact.css's .form-status. */
.form-status {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.form-status.is-success {
  background: rgba(5, 201, 255, .1);
  border: 1px solid var(--cyan);
  color: var(--cyan);
}

.form-status.is-error {
  background: rgba(255, 107, 107, .12);
  border: 1px solid #ff6b6b;
  color: #ff9d9d;
}

/* Honeypot: invisible to real visitors and screen readers, present for
   bots that auto-fill every field in a form. Same technique/field name
   pattern as contact.css's .hp-field -- see that file's Step 7 fix notes
   about avoiding field names password managers auto-fill. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 620px) {
  .book-request-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------
   Step-by-step booking flow (Select Date -> Select Time -> Details
   -> Confirmation). All availability data comes from
   api/appointments/availability.php; nothing here calculates
   conflicts client-side.
--------------------------------------------------------------- */

.booking-flow {
  text-align: left;
  margin-top: 8px;
}

.booking-step {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}

.booking-step:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.booking-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.booking-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #01111f;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.booking-step-sub {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

/* Step 1: date strip */

.booking-date-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.booking-hint {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.booking-date-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 72px;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
}

.booking-date-btn .dow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}

.booking-date-btn .dom {
  font-size: 18px;
  font-weight: 800;
}

.booking-date-btn .mon {
  font-size: 11px;
  color: var(--muted);
}

.booking-date-btn:hover {
  border-color: var(--cyan);
}

.booking-date-btn.is-selected {
  border-color: var(--cyan);
  background: rgba(5, 201, 255, .14);
  box-shadow: 0 0 0 2px rgba(5, 201, 255, .25);
}

.booking-date-btn.is-selected .dow,
.booking-date-btn.is-selected .mon {
  color: var(--cyan);
}

/* Step 2: time grid */

.booking-times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.booking-time-btn {
  padding: 12px 8px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.booking-time-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.booking-time-btn.is-selected {
  border-color: var(--cyan);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #01111f;
}

/* Step 3: form action row */

.booking-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.booking-form-actions .btn-large {
  flex: 1;
}

/* Step 5: confirmation */

.booking-confirm {
  text-align: center;
}

.booking-confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(5, 201, 255, .14);
  color: var(--cyan);
  margin-bottom: 14px;
}

.booking-confirm-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking-confirm h3 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 800;
}

.booking-confirm-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 420px;
  margin: 0 auto 20px;
  text-align: left;
}

.booking-confirm-details dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}

.booking-confirm-details dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.booking-confirm-note {
  max-width: 480px;
  margin: 0 auto 20px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 620px) {
  .booking-times-grid {
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  }

  .booking-confirm-details {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .booking-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}
