/* Discovery-call booking widget (views/booking/discovery-call.js) on
   en/fr/es company/discovery-call.html. Uses the site's tokens from
   /styles.css so light and dark themes both work. Classes start booking-. */

.booking-app {
  margin-bottom: var(--space-32);
}
.booking-app[hidden] {
  display: none;
}

.booking-title {
  color: var(--text-primary);
  margin-bottom: var(--space-8);
}
.booking-title:focus {
  outline: none;
}
.booking-title:focus-visible {
  outline: 2px solid var(--action-primary);
  outline-offset: 4px;
}

.booking-intro,
.booking-summary,
.booking-help,
.booking-loading {
  color: var(--text-secondary);
  margin-bottom: var(--space-16);
}
.booking-summary {
  color: var(--text-primary);
  font-weight: 600;
}

.booking-tz {
  max-width: 28rem;
  margin-bottom: var(--space-16);
}

.booking-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 var(--space-16);
  min-width: 0;
}
.booking-legend {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-8);
  padding: 0;
}

.booking-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

/* Each choice is a native radio button: arrow keys move within the group,
   screen readers announce "1 of 6, selected". The input is hidden visually
   only, never with display:none, so it stays focusable. */
.booking-chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.booking-chip-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.booking-chip-face {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 44px;
  min-width: 5.5rem;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border: 1px solid var(--border-input, var(--border-medium));
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.25;
}
.booking-chip-main {
  font-weight: 600;
}
.booking-chip-sub {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.booking-chip:hover .booking-chip-face {
  border-color: var(--action-primary);
}
.booking-chip-input:checked + .booking-chip-face {
  border-color: var(--action-primary);
  box-shadow: inset 0 0 0 2px var(--action-primary);
}
.booking-chip-input:checked + .booking-chip-face .booking-chip-main::before {
  content: "\2713\00a0";
}
.booking-chip-input:focus-visible + .booking-chip-face {
  outline: 3px solid var(--action-primary);
  outline-offset: 2px;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12, 12px);
  align-items: center;
  margin-top: var(--space-16);
}
.booking-btn {
  justify-content: center;
}
.booking-btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  margin-top: var(--space-16);
}
.booking-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--space-16);
}
.booking-optional {
  color: var(--text-secondary);
  font-weight: 400;
}

.booking-error,
.booking-field-error {
  color: var(--status-error);
  font-size: var(--text-sm);
  margin: var(--space-8) 0 0;
}
.booking-error:empty,
.booking-field-error:empty {
  display: none;
}
.booking-ok {
  color: var(--status-success);
  font-weight: 600;
}

.booking-notice {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.booking-notice a,
.booking-app a {
  color: var(--action-primary);
  text-decoration: underline;
}

/* The honeypot: off-screen for people, still in the form for bots. */
.booking-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .booking-chip-face {
    min-width: 4.75rem;
  }
}
