/* ============================================
   BOOK-A-CALL WIDGET — shared across all landing pages
   Depends on CSS custom properties defined in the host
   page's main stylesheet: --color-bg, --color-surface,
   --color-surface-2, --color-border, --color-text,
   --color-text-dim, --color-accent, --color-white,
   --font-display, --font-body
   ============================================ */

.book-widget {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
  text-align: left;
}
@media (max-width: 768px) {
  .book-widget {
    grid-template-columns: 1fr;
  }
}

/* === FORM COLUMN === */
.book-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.book-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 480px) {
  .book-form-row {
    grid-template-columns: 1fr;
  }
}
.book-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.book-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
}
.book-form-row--wrap-fix .book-field label {
  min-height: 3.4em;
}
@media (max-width: 480px) {
  .book-form-row--wrap-fix .book-field label {
    min-height: 0;
  }
}
.book-field label .req-star {
  color: var(--color-urgent, #EF4444);
  font-weight: 700;
}
.book-field input,
.book-field select,
.book-field textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s;
}
.book-field input:focus,
.book-field select:focus,
.book-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.book-field textarea {
  resize: vertical;
  min-height: 60px;
}
.book-submit {
  width: 100%;
  text-align: center;
  margin-top: 8px;
}
.book-submit:disabled {
  opacity: 0.6;
  cursor: default;
}
.book-form-error {
  font-size: 0.8125rem;
  color: var(--color-urgent, #EF4444);
  margin: -4px 0 0;
}
.book-form-note {
  font-size: 0.875rem;
  color: var(--color-accent);
  margin-top: -4px;
}

/* === CALENDAR COLUMN === */
.book-cal-wrap {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg);
  min-height: 680px;
}
.book-cal-locked {
  padding: 4px;
  filter: grayscale(1);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}
.book-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.book-cal-dow {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-dim);
  padding: 12px 4px;
  border-bottom: 1px solid var(--color-border);
}
.book-cal-cell {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-dim);
  padding: 14px 4px;
  border: 1px solid var(--color-border);
  min-height: 44px;
}
.book-cal-cell.empty {
  border-color: transparent;
}
.book-cal-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84%;
  max-width: 340px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 8px 30px #0000001A;
}
.book-cal-overlay p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.5;
  margin: 0;
}
.book-cal-embed {
  width: 100%;
  min-height: 680px;
}
.book-cal-embed .calendly-inline-widget {
  min-width: 100%;
  height: 680px;
}

/* === FORM SUBMITTED STATE (Tier A) === */
.book-form.submitted .book-field input,
.book-form.submitted .book-field select,
.book-form.submitted .book-field textarea {
  opacity: 0.6;
}

/* === OUTCOME PANEL (Tier B / Tier C) === */
.book-outcome {
  grid-column: 1 / -1;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 40px 32px;
}
.book-outcome h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 16px;
}
.book-outcome p {
  color: var(--color-text-dim);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 24px;
}
.book-outcome .placeholder-flag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-urgent, #EF4444);
  border: 1px solid var(--color-urgent, #EF4444);
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 16px;
}
