/* Reset local : le site de test chargeait Tailwind, dont le preflight fournissait ces règles
   (masquage de [hidden], titres et champs qui héritent du texte). Sans lui, [hidden] perd contre
   les display:grid ci-dessous et les titres prennent la taille du thème, que Divi peut forcer
   en !important (Personnaliser > CSS) : d où les !important ci-dessous. */
.attps-booking {
  font-size: 14px;
  line-height: 1.7;
}
.attps-booking [hidden] {
  display: none !important;
}
.attps-booking :where(h1, h2, h3, h4, h5, h6) {
  font-size: inherit !important;
  font-weight: inherit;
  color: inherit;
}
.attps-booking .attps-booking__title {
  font-size: clamp(2rem, 3.8vw, 3.4rem) !important;
}
.attps-booking .attps-booking__actions-dialog-header h5 {
  font-size: 1.2rem !important;
}
.attps-booking .attps-booking__confirmation h3 {
  font-size: 1.1rem !important;
}
.attps-booking :where(input, select, textarea, button) {
  font: inherit;
  line-height: inherit;
  color: inherit;
}

.attps-booking {
  --attps-booking-bg: linear-gradient(180deg, #f6f2eb 0%, #ede7de 100%);
  --attps-booking-ink: #121417;
  --attps-booking-muted: #666b72;
  --attps-booking-accent: #c86c42;
  --attps-booking-accent-soft: #f6e4da;
  --attps-booking-border: rgba(18, 20, 23, 0.09);
  --attps-booking-surface: rgba(255, 255, 255, 0.94);
  --attps-booking-surface-strong: #ffffff;
  --attps-booking-surface-muted: rgba(244, 239, 232, 0.92);
  --attps-booking-shadow: 0 24px 64px rgba(18, 20, 23, 0.09);
  font-family: "Avenir Next", "Segoe UI Variable", "Segoe UI", sans-serif;
  color: var(--attps-booking-ink);
  background: var(--attps-booking-bg);
  border: 1px solid var(--attps-booking-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--attps-booking-shadow);
  position: relative;
  overflow: hidden;
}

.attps-booking::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 180px;
  background:
    radial-gradient(
      circle at top left,
      rgba(200, 108, 66, 0.14),
      transparent 46%
    ),
    linear-gradient(135deg, rgba(18, 20, 23, 0.04), transparent 58%);
  pointer-events: none;
}

.attps-booking__header {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.attps-booking__hero {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
  align-items: end;
}

.attps-booking__hero-copy {
  display: grid;
  gap: 10px;
}

.attps-booking__eyebrow,
.attps-booking__step-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(18, 20, 23, 0.56);
}

.attps-booking__eyebrow::before,
.attps-booking__step-kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: rgba(18, 20, 23, 0.32);
}

.attps-booking__title {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 10ch;
}

.attps-booking__lede {
  margin: 0;
  max-width: 50ch;
  color: var(--attps-booking-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.attps-booking__progress {
  display: grid;
  gap: 10px;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.attps-booking__progress li {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 10px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--attps-booking-muted);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.35;
  border: 1px solid rgba(18, 20, 23, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.attps-booking__progress-index {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(18, 20, 23, 0.42);
}

.attps-booking__progress li.is-active {
  background: linear-gradient(180deg, #171a1f 0%, #101214 100%);
  color: #f9f6f1;
  border-color: rgba(18, 20, 23, 0.16);
  box-shadow: 0 18px 32px rgba(18, 20, 23, 0.16);
}

.attps-booking__progress li.is-active .attps-booking__progress-index {
  color: rgba(249, 246, 241, 0.58);
}

.attps-booking__feedback {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--attps-booking-surface-strong);
  border: 1px solid var(--attps-booking-border);
  font-size: 0.94rem;
  position: relative;
  z-index: 1;
}

.attps-booking__feedback[data-type="error"] {
  border-color: rgba(163, 28, 28, 0.25);
  background: #fff3f2;
  color: #8e1f1f;
}

.attps-booking__step {
  display: grid;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.attps-booking__grid {
  display: grid;
  gap: 12px;
}

.attps-booking__grid--step-one,
.attps-booking__grid--step-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.attps-booking__grid--compact-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.attps-booking__compact-grid {
  display: grid;
  gap: 16px;
}

.attps-booking__compact-grid--step-one,
.attps-booking__compact-grid--step-three {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.attps-booking__field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.attps-booking__field span {
  font-weight: 600;
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(18, 20, 23, 0.52);
}

.attps-booking__field input,
.attps-booking__field select,
.attps-booking__field textarea {
  width: 100%;
  border: 1px solid var(--attps-booking-border);
  border-radius: 14px;
  background: var(--attps-booking-surface-muted);
  padding: 13px 14px;
  color: var(--attps-booking-ink);
  min-height: 50px;
  font-size: 0.96rem;
  box-sizing: border-box;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
  appearance: none;
}

.attps-booking__field input:focus,
.attps-booking__field select:focus,
.attps-booking__field textarea:focus {
  outline: none;
  border-color: rgba(200, 108, 66, 0.38);
  box-shadow: 0 0 0 4px rgba(200, 108, 66, 0.08);
  background: #fff;
  transform: translateY(-1px);
}

.attps-booking__field textarea {
  min-height: 120px;
  resize: vertical;
}

.attps-booking__field--full {
  grid-column: 1 / -1;
}

.attps-booking__field input[type="hidden"] {
  display: none;
}

.attps-booking__step-heading h3,
.attps-booking__panel-header h4 {
  margin: 0;
}

.attps-booking__step-heading {
  display: grid;
  gap: 8px;
  max-width: 64ch;
}

.attps-booking__step-heading p {
  margin: 0;
  color: var(--attps-booking-muted);
  max-width: 58ch;
  font-size: 0.94rem;
  line-height: 1.55;
}

.attps-booking__panel {
  display: grid;
  gap: 18px;
  padding: 20px;
  background: var(--attps-booking-surface);
  border-radius: 20px;
  border: 1px solid var(--attps-booking-border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(18, 20, 23, 0.05);
}

.attps-booking__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.attps-booking__panel--compact {
  gap: 14px;
  padding: 18px;
}

.attps-booking__panel-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.attps-booking__panel-header--stacked {
  display: grid;
  justify-content: start;
  gap: 4px;
}

.attps-booking__panel-note {
  margin: 0;
  color: var(--attps-booking-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.attps-booking__meta {
  color: var(--attps-booking-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  max-width: 26ch;
  text-align: right;
}

.attps-booking__actions-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.attps-booking__actions-trigger {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--attps-booking-border);
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(248, 244, 238, 0.95) 100%
  );
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.attps-booking__actions-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 20, 23, 0.14);
  box-shadow: 0 12px 24px rgba(18, 20, 23, 0.06);
}

.attps-booking__actions-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(200, 108, 66, 0.16) 0%,
    rgba(200, 108, 66, 0.08) 100%
  );
  color: var(--attps-booking-accent);
  font-size: 30px;
}

.attps-booking__actions-trigger-body {
  display: grid;
  gap: 6px;
}

.attps-booking__actions-trigger-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--attps-booking-ink);
}

.attps-booking__actions-trigger-meta {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--attps-booking-muted);
}

.attps-booking__selected-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.attps-booking__selected-action {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid rgba(200, 108, 66, 0.2);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(246, 228, 218, 0.5) 0%,
    rgba(255, 255, 255, 0.95) 100%
  );
  color: var(--attps-booking-ink);
  text-align: left;
  cursor: pointer;
}

.attps-booking__selected-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(200, 108, 66, 0.12);
  color: var(--attps-booking-accent);
  font-size: 14px;
}

.attps-booking__selected-action-name {
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.attps-booking__selected-action-remove {
  color: rgba(18, 20, 23, 0.34);
  font-size: 14px;
}

.attps-booking__actions-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.attps-booking__actions-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 20, 23, 0.44);
  backdrop-filter: blur(4px);
}

.attps-booking__actions-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  width: min(920px, 100%);
  max-height: min(82vh, 920px);
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(18, 20, 23, 0.08);
  box-shadow: 0 26px 64px rgba(18, 20, 23, 0.22);
  overflow: hidden;
}

.attps-booking__actions-dialog-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.attps-booking__actions-dialog-kicker {
  margin: 0 0 6px;
  color: rgba(18, 20, 23, 0.44);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.attps-booking__actions-dialog-header h5 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.attps-booking__actions-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--attps-booking-border);
  border-radius: 14px;
  background: #fff;
  color: var(--attps-booking-ink);
  cursor: pointer;
}

.attps-booking__actions-dialog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
  max-height: min(52vh, 560px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  overscroll-behavior: contain;
}

.attps-booking__action-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.attps-booking__action-category {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--attps-booking-accent);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--attps-booking-border);
}

.attps-booking__action-cards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-items: start;
}

.attps-booking__actions-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.attps-booking__action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--attps-booking-border);
  cursor: pointer;
  min-height: 0;
  position: relative;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease,
    transform 0.16s ease;
}

.attps-booking__action-card:hover {
  border-color: rgba(18, 20, 23, 0.14);
  box-shadow: 0 10px 22px rgba(18, 20, 23, 0.05);
  transform: translateY(-1px);
}

.attps-booking__action-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.attps-booking__action-card:has(input:checked) {
  border-color: rgba(200, 108, 66, 0.34);
  background: linear-gradient(
    180deg,
    rgba(246, 228, 218, 0.52) 0%,
    rgba(255, 255, 255, 0.96) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(200, 108, 66, 0.18);
}

.attps-booking__action-card:has(input:focus-visible) {
  box-shadow: 0 0 0 4px rgba(200, 108, 66, 0.1);
}

.attps-booking__action-icon {
  display: inline-flex;
  width: 30px;
  height: auto;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f4ede6;
  color: var(--attps-booking-accent);
  font-size: 16px;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.attps-booking__action-card:has(input:checked) .attps-booking__action-icon {
  background: linear-gradient(
    180deg,
    var(--attps-booking-accent) 0%,
    #b85d34 100%
  );
  color: #fff;
  transform: scale(0.98);
}

.attps-booking__action-body {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: center;
}

.attps-booking__action-name {
  font-weight: 700;
  font-size: 0.7rem;
  line-height: 1.3;
}

.attps-booking__action-meta {
  display: block;
  color: rgba(18, 20, 23, 0.44);
  font-size: 0.68rem;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.attps-booking__availability {
  display: grid;
  gap: 16px;
}

.attps-booking__availability-picker {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  align-items: start;
}

.attps-booking__calendar-wrap,
.attps-booking__time-wrap {
  display: grid;
  gap: 14px;
}

.attps-booking__calendar-shell {
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #f8f4ee;
  border: 1px solid var(--attps-booking-border);
  overflow: hidden;
  position: relative;
}

.attps-booking__calendar-shell.is-loading {
  pointer-events: none;
}

.attps-booking__calendar-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.attps-booking__calendar-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(248, 244, 238, 0.82);
  backdrop-filter: blur(3px);
  z-index: 3;
}

.attps-booking__calendar-loader {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 20, 23, 0.08);
  box-shadow: 0 12px 28px rgba(18, 20, 23, 0.08);
}

.attps-booking__calendar-loader-ring {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid rgba(200, 108, 66, 0.16);
  border-top-color: var(--attps-booking-accent);
  animation: attps-booking-calendar-spin 0.85s linear infinite;
}

.attps-booking__calendar-loader-text {
  color: var(--attps-booking-ink);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.attps-booking__calendar-shell .flatpickr-calendar.inline {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0;
  box-shadow: none;
  border: 0;
  background: transparent;
}

.attps-booking__calendar-shell .flatpickr-innerContainer,
.attps-booking__calendar-shell .flatpickr-rContainer {
  justify-content: center;
  margin: 0 auto;
}

.attps-booking__calendar-shell .flatpickr-months,
.attps-booking__calendar-shell .flatpickr-weekdays {
  margin-bottom: 12px;
}

.attps-booking__calendar-shell .flatpickr-month {
  color: var(--attps-booking-ink);
}

.attps-booking__calendar-shell
  .flatpickr-current-month
  .flatpickr-monthDropdown-months,
.attps-booking__calendar-shell .flatpickr-current-month input.cur-year {
  color: var(--attps-booking-ink);
  font-weight: 700;
}

.attps-booking__calendar-shell span.flatpickr-weekday {
  color: var(--attps-booking-muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.attps-booking__calendar-shell .flatpickr-day {
  border-radius: 12px;
  color: var(--attps-booking-ink);
}

.attps-booking__calendar-shell .flatpickr-day.flatpickr-disabled,
.attps-booking__calendar-shell .flatpickr-day.flatpickr-disabled:hover {
  color: rgba(107, 114, 128, 1);
  background: repeating-linear-gradient(
    45deg,
    #a8414177,
    #a8414177 7px,
    transparent 7px,
    transparent 14px
  );
  border: none;
  opacity: 0.7;
}

.attps-booking__calendar-shell .flatpickr-day.selected,
.attps-booking__calendar-shell .flatpickr-day.startRange,
.attps-booking__calendar-shell .flatpickr-day.endRange,
.attps-booking__calendar-shell .flatpickr-day.selected:hover {
  background: var(--attps-booking-accent);
  border-color: var(--attps-booking-accent);
  color: #fff;
}

.attps-booking__calendar-summary {
  margin: 0;
  color: var(--attps-booking-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.attps-booking__date-group {
  display: grid;
  gap: 10px;
}

.attps-booking__date-group h5 {
  margin: 0;
}

.attps-booking__slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.attps-booking__slot {
  display: grid;
  gap: 4px;
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--attps-booking-border);
  cursor: pointer;
}

.attps-booking__slot small {
  color: var(--attps-booking-muted);
}

.attps-booking__slot input {
  margin: 0;
}

.attps-booking__actions-bar {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
}

.attps-booking__button {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease;
}

.attps-booking__button:hover {
  transform: translateY(-1px);
}

.attps-booking__button--primary {
  background: linear-gradient(180deg, #181c21 0%, #0f1215 100%);
  color: #fff;
  box-shadow: 0 16px 28px rgba(18, 20, 23, 0.16);
}

.attps-booking__button--ghost {
  background: rgba(255, 255, 255, 0.78);
  color: var(--attps-booking-ink);
  border: 1px solid var(--attps-booking-border);
}

.attps-booking__empty,
.attps-booking__confirmation {
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  background: #faf8f4;
  border: 1px solid rgba(24, 24, 27, 0.08);
  font-size: 0.9rem;
}

.attps-booking__confirmation h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.attps-booking__confirmation p {
  margin: 0;
}

.attps-booking__confirmation p + p {
  margin-top: 6px;
}

.attps-booking__step-feedback {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff7f5;
  border: 1px solid rgba(163, 28, 28, 0.18);
  color: #8e1f1f;
  font-size: 0.9rem;
}

.attps-booking__vehicle-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.attps-booking__vehicle-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f1ebe3;
  border: 1px solid rgba(24, 24, 27, 0.08);
  color: #3f352f;
  font-weight: 700;
  font-size: 0.84rem;
}

.attps-booking__loader {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 15px;
  border-radius: 16px;
  background: #faf8f4;
  border: 1px solid rgba(24, 24, 27, 0.08);
  color: var(--attps-booking-muted);
  font-size: 0.88rem;
}

.attps-booking__loader-dot {
  width: 28px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(200, 108, 66, 1) 0 33%,
    rgba(200, 108, 66, 0.35) 33% 66%,
    rgba(200, 108, 66, 0.14) 66% 100%
  );
  animation: attps-booking-loader 0.9s infinite ease-in-out;
}

.attps-booking__compact-grid--step-two {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* On force le 3ème bloc (Details du véhicule) à occuper les 2 colonnes */
.attps-booking__compact-grid--step-two > .attps-booking__panel:nth-child(3) {
  grid-column: 1 / -1;
}

@keyframes attps-booking-loader {
  0%,
  100% {
    transform: scaleX(0.94);
    opacity: 0.75;
  }

  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes attps-booking-calendar-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .attps-booking {
    padding: 20px;
    border-radius: 20px;
  }

  .attps-booking__hero {
    grid-template-columns: 1fr;
  }

  .attps-booking__title {
    max-width: none;
  }

  .attps-booking__progress,
  .attps-booking__grid--step-one,
  .attps-booking__grid--step-three,
  .attps-booking__grid--compact-two,
  .attps-booking__compact-grid--step-one,
  .attps-booking__compact-grid--step-three {
    grid-template-columns: 1fr;
  }

  .attps-booking__availability-picker {
    grid-template-columns: 1fr;
  }

  .attps-booking__panel {
    padding: 16px;
  }

  .attps-booking__progress li {
    min-height: auto;
  }

  .attps-booking__compact-grid--step-two {
    grid-template-columns: 1fr;
  }

  .attps-booking__compact-grid--step-two > .attps-booking__panel:nth-child(3) {
    grid-column: auto;
  }

  @media (max-width: 640px) {
    .attps-booking {
      padding: 16px;
    }

    .attps-booking__actions-bar {
      flex-direction: column-reverse;
      align-items: stretch;
    }

    .attps-booking__actions-trigger {
      grid-template-columns: 1fr;
      text-align: center;
      justify-items: center;
    }

    .attps-booking__actions-dialog {
      width: 100%;
      padding: 18px;
      border-radius: 20px;
    }

    .attps-booking__actions-dialog-footer {
      flex-direction: column-reverse;
      align-items: stretch;
    }

    .attps-booking__button {
      width: 100%;
      justify-content: center;
    }

    .attps-booking__meta {
      max-width: none;
      text-align: left;
    }
  }

  .attps-booking__actions-bar,
  .attps-booking__panel-header {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Champ refusé par le contrôle de format (booking.js, checkField) */
.attps-booking__field input[aria-invalid="true"],
.attps-booking__field textarea[aria-invalid="true"] {
    border-color: #c62828;
    box-shadow: 0 0 0 1px #c62828;
}

/* ═════════════════════════════════════════════════════════════════════════
   Charte Scala (2026-11-16) — aligne le module sur le reste de scala-auto.com
   (plugin scala-reseau : --scr-rouge #d60407, Montserrat, titres Termina en
   capitales, cartes blanches bord #e4e4e4, boutons rayon 6 px).
   Couche ajoutée en fin de fichier : la base du module ci-dessus reste intacte.
   ═════════════════════════════════════════════════════════════════════════ */
.attps-booking {
  --attps-booking-red: var(--scr-rouge, #d60407);
  --attps-booking-red-dark: #b00306;
  --attps-booking-red-soft: rgba(214, 4, 7, 0.07);
  --attps-booking-ink: var(--scr-texte, #161616);
  --attps-booking-muted: #6b6b6b;
  --attps-booking-accent: var(--attps-booking-red);
  --attps-booking-accent-soft: var(--attps-booking-red-soft);
  --attps-booking-border: #e4e4e4;
  --attps-booking-field-border: #cdcdcd;
  --attps-booking-surface: #ffffff;
  --attps-booking-surface-strong: #ffffff;
  --attps-booking-surface-muted: #ffffff;
  --attps-booking-bg: var(--scr-clair, #f1f1f1);
  font-family: var(--scr-f-corps, "Montserrat"), Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: var(--attps-booking-bg);
  border: 0;
  border-radius: 14px;
  padding: 40px;
  box-shadow: none;
}
.attps-booking::before { display: none; }

/* En-tête : surtitre rouge, titre Termina, filet rouge comme les titres de section du site */
.attps-booking__header { margin-bottom: 32px; }
.attps-booking__hero { align-items: center; gap: 32px; }
.attps-booking__eyebrow,
.attps-booking__step-kicker,
.attps-booking__actions-dialog-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--attps-booking-red);
}
.attps-booking__eyebrow::before,
.attps-booking__step-kicker::before { display: none; }
.attps-booking .attps-booking__title {
  font-family: var(--scr-f-titre, "termina"), "Montserrat", sans-serif;
  font-size: clamp(24px, 2.4vw, 32px) !important;
  font-weight: 700 !important;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
  max-width: 18ch;
  color: var(--attps-booking-ink);
  padding-bottom: 0;
}
.attps-booking__lede { font-size: 16px; color: var(--attps-booking-muted); }

/* Étapes de progression */
.attps-booking__progress li {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--attps-booking-border);
  box-shadow: none;
  color: var(--attps-booking-ink);
  font-size: 14.5px;
  font-weight: 700;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.attps-booking__progress-index {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--attps-booking-red);
}
.attps-booking__progress li.is-active {
  background: var(--attps-booking-red);
  border-color: var(--attps-booking-red);
  color: #fff;
  box-shadow: 0 8px 22px rgba(214, 4, 7, 0.22);
}
.attps-booking__progress li.is-active .attps-booking__progress-index { color: rgba(255, 255, 255, 0.8); }

/* Titres d'étape et de panneau */
.attps-booking .attps-booking__step-heading h3 {
  font-size: 22px !important;
  font-weight: 800;
  line-height: 1.25;
  color: var(--attps-booking-ink);
}
.attps-booking__step-heading p,
.attps-booking__panel-note { color: var(--attps-booking-muted); font-size: 14.5px; }
.attps-booking .attps-booking__panel-header h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px !important;
  font-weight: 800;
  line-height: 1.3;
  color: var(--attps-booking-ink);
}
.attps-booking__panel-header h4::before {
  content: "";
  width: 5px;
  height: 1.1em;
  border-radius: 3px;
  background: var(--attps-booking-red);
  flex: none;
}

/* Panneaux : cartes blanches du site */
.attps-booking__panel {
  background: #fff;
  border: 1px solid var(--attps-booking-border);
  border-radius: 12px;
  padding: 26px 24px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
}
.attps-booking__panel--compact { padding: 22px 22px; }
.attps-booking__panel::after { display: none; }

/* Champs */
.attps-booking__field span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--attps-booking-ink);
}
.attps-booking__field input,
.attps-booking__field select,
.attps-booking__field textarea {
  background-color: #fff;
  border: 1px solid var(--attps-booking-field-border);
  border-radius: 6px;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--attps-booking-ink);
}
.attps-booking__field select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23161616' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  cursor: pointer;
}
.attps-booking__field select:disabled { background-color: #f6f6f6; cursor: not-allowed; }
.attps-booking__field input::placeholder,
.attps-booking__field textarea::placeholder { color: #9a9a9a; opacity: 1; }
.attps-booking__field input:hover,
.attps-booking__field select:hover,
.attps-booking__field textarea:hover { border-color: #a9a9a9; }
.attps-booking__field input:focus,
.attps-booking__field select:focus,
.attps-booking__field textarea:focus {
  border-color: var(--attps-booking-red);
  box-shadow: 0 0 0 3px rgba(214, 4, 7, 0.12);
  background-color: #fff;
  transform: none;
}

/* Boutons : mêmes formes que .scr-btn */
.attps-booking__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}
.attps-booking__button--primary {
  background: var(--attps-booking-red);
  border-color: var(--attps-booking-red);
  color: #fff;
  box-shadow: none;
}
.attps-booking__button--primary:hover,
.attps-booking__button--primary:focus-visible {
  background: var(--attps-booking-red-dark);
  border-color: var(--attps-booking-red-dark);
  color: #fff;
  box-shadow: 0 6px 16px rgba(214, 4, 7, 0.3);
}
.attps-booking__button--ghost {
  background: #fff;
  border: 1px solid #d8d8d8;
  color: var(--attps-booking-ink);
}
.attps-booking__button--ghost:hover,
.attps-booking__button--ghost:focus-visible {
  border-color: var(--attps-booking-red);
  color: var(--attps-booking-red);
}
.attps-booking__button:disabled,
.attps-booking__button[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.attps-booking__button:focus-visible { outline: 2px solid var(--attps-booking-red); outline-offset: 2px; }

/* Choix des interventions */
.attps-booking__actions-trigger {
  background: #fff;
  border: 1px dashed #bdbdbd;
  border-radius: 12px;
}
.attps-booking__actions-trigger:hover {
  border-style: solid;
  border-color: var(--attps-booking-red);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
}
.attps-booking__actions-trigger-icon {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: var(--attps-booking-red-soft);
  color: var(--attps-booking-red);
  font-size: 26px;
}
.attps-booking__actions-trigger { grid-template-columns: 64px minmax(0, 1fr); }
.attps-booking__actions-trigger-label { font-size: 16px; font-weight: 800; }
.attps-booking__selected-action {
  border: 1px solid rgba(214, 4, 7, 0.3);
  border-radius: 8px;
  background: var(--attps-booking-red-soft);
}
.attps-booking__selected-action:hover { border-color: var(--attps-booking-red); }
.attps-booking__selected-action:hover .attps-booking__selected-action-remove { color: var(--attps-booking-red); }
.attps-booking__selected-action-icon { border-radius: 6px; background: var(--attps-booking-red); color: #fff; }

/* Fenêtre des interventions */
.attps-booking__actions-modal-backdrop { background: rgba(17, 17, 17, 0.6); }
.attps-booking__actions-dialog {
  border-radius: 14px;
  border: 0;
  border-top: 4px solid var(--attps-booking-red);
  padding: 28px;
  font-family: var(--scr-f-corps, "Montserrat"), Helvetica, Arial, sans-serif;
  color: var(--attps-booking-ink);
}
.attps-booking .attps-booking__actions-dialog-header h5 {
  font-family: var(--scr-f-titre, "termina"), "Montserrat", sans-serif;
  font-size: 20px !important;
  font-weight: 700;
  text-transform: uppercase;
}
.attps-booking__actions-dialog-close { border-radius: 6px; border-color: #d8d8d8; }
.attps-booking__actions-dialog-close:hover { border-color: var(--attps-booking-red); color: var(--attps-booking-red); }
.attps-booking__action-category {
  color: var(--attps-booking-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--attps-booking-red);
  padding-bottom: 8px;
  align-self: flex-start;
}
.attps-booking__action-card { border-radius: 10px; border-color: var(--attps-booking-border); padding: 14px 12px; }
.attps-booking__action-card:hover { border-color: var(--attps-booking-red); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07); }
.attps-booking__action-card:has(input:checked) {
  border-color: var(--attps-booking-red);
  background: var(--attps-booking-red-soft);
  box-shadow: inset 0 0 0 1px var(--attps-booking-red);
}
.attps-booking__action-card:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(214, 4, 7, 0.18); }
.attps-booking__action-icon { width: 36px; border-radius: 8px; background: var(--attps-booking-red-soft); color: var(--attps-booking-red); }
.attps-booking__action-card:has(input:checked) .attps-booking__action-icon { background: var(--attps-booking-red); color: #fff; }
.attps-booking__action-name { font-size: 12.5px; }
.attps-booking__action-meta { color: var(--attps-booking-muted); letter-spacing: 0.06em; font-size: 11px; }

/* Calendrier et créneaux */
.attps-booking__calendar-shell { background: #fff; border-color: var(--attps-booking-border); border-radius: 12px; }
.attps-booking__calendar-overlay { background: rgba(255, 255, 255, 0.85); }
.attps-booking__calendar-loader { border-radius: 10px; border-color: var(--attps-booking-border); }
.attps-booking__calendar-loader-ring { border-color: rgba(214, 4, 7, 0.15); border-top-color: var(--attps-booking-red); }
.attps-booking__calendar-shell .flatpickr-day { border-radius: 6px; font-weight: 600; }
.attps-booking__calendar-shell .flatpickr-day:not(.flatpickr-disabled):not(.selected):hover {
  background: var(--attps-booking-red-soft);
  border-color: transparent;
  color: var(--attps-booking-red);
}
.attps-booking__calendar-shell .flatpickr-day.today:not(.selected) { border-color: var(--attps-booking-red); }
.attps-booking__calendar-shell .flatpickr-day.flatpickr-disabled,
.attps-booking__calendar-shell .flatpickr-day.flatpickr-disabled:hover {
  color: #b5b5b5;
  background: repeating-linear-gradient(45deg, #ececec, #ececec 4px, transparent 4px, transparent 8px);
  opacity: 1;
}
.attps-booking__calendar-shell .flatpickr-months .flatpickr-prev-month:hover svg,
.attps-booking__calendar-shell .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--attps-booking-red); }
.attps-booking__slot { border-radius: 8px; border-color: var(--attps-booking-field-border); font-weight: 700; }
.attps-booking__slot:hover { border-color: var(--attps-booking-red); }
.attps-booking__slot:has(input:checked) { border-color: var(--attps-booking-red); background: var(--attps-booking-red-soft); box-shadow: inset 0 0 0 1px var(--attps-booking-red); }
.attps-booking__slot input { accent-color: var(--attps-booking-red); }

/* Messages, résumé véhicule, chargement */
.attps-booking__feedback,
.attps-booking__empty,
.attps-booking__confirmation,
.attps-booking__loader { border-radius: 10px; background: #fff; border-color: var(--attps-booking-border); }
.attps-booking__confirmation { border-left: 4px solid #1f8a4c; }
.attps-booking .attps-booking__confirmation h3 { font-size: 18px !important; font-weight: 800; }
.attps-booking__feedback[data-type="error"],
.attps-booking__step-feedback { border-radius: 10px; background: #fff5f5; border-color: rgba(214, 4, 7, 0.25); color: #9b0305; }
.attps-booking__vehicle-badge { border-radius: 6px; background: #fff; border-color: #d8d8d8; color: var(--attps-booking-ink); }
.attps-booking__loader-dot {
  background: linear-gradient(90deg, var(--attps-booking-red) 0 33%, rgba(214, 4, 7, 0.35) 33% 66%, rgba(214, 4, 7, 0.14) 66% 100%);
}
.attps-booking__actions-bar { border-top: 1px solid #e0e0e0; margin-top: 4px; padding-top: 22px; }

@media (max-width: 900px) {
  .attps-booking { padding: 24px 18px; border-radius: 12px; }
  .attps-booking__panel { padding: 20px 16px; }
}

/* Sous 768 px : tout est centré (règle de l'agence) */
@media (max-width: 767px) {
  .attps-booking { padding: 22px 14px; }
  .attps-booking__hero-copy,
  .attps-booking__step-heading,
  .attps-booking__panel-header--stacked { justify-items: center; text-align: center; margin-inline: auto; }
  .attps-booking__eyebrow,
  .attps-booking__step-kicker { justify-content: center; }
  .attps-booking .attps-booking__title { max-width: none; }
  .attps-booking .attps-booking__panel-header h4 { justify-content: center; }
  .attps-booking__progress li { padding: 12px 16px; }
  .attps-booking__actions-bar .attps-booking__button { width: 100%; }
}
