/* ============================================================
   style.css — Charte Labellemontagne "Zéro Friction"
   Mobile-first, max-width 480px centered
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* LBM palette */
  --teal:       #254A5B;
  --teal-light: #2F5E73;
  --teal-dark:  #1B3744;
  --turquoise:  #3DB4C9;
  --turquoise-light: #5ECADB;
  --red:        #A30A0B;
  --red-light:  #C41415;
  --white:      #FFFFFF;
  --snow:       #F4F7F8;
  --grey-100:   #E8ECEE;
  --grey-200:   #CDD4D7;
  --grey-300:   #9DAAAF;
  --grey-text:  #6B7C83;
  --green:      #2E8B57;
  --orange:     #D4820A;
  --gold:       #C89B3C;

  /* Spacing */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 50px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.12);
  --shadow-md: 0 4px 12px rgba(0,0,0,.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.18);
  --shadow-glow: 0 0 20px rgba(61,180,201,.25);

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --duration: 300ms;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Museo Sans', 'Museo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--teal-dark);
  color: var(--teal);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 90px; /* sticky bar space */
}

/* ---------- Typography ---------- */
.font-heading {
  font-family: 'Museo', 'Museo Sans', Georgia, serif;
  font-weight: 700;
}

h1, h2, h3 { font-family: 'Museo', 'Museo Sans', Georgia, serif; font-weight: 700; }

/* ---------- Widget Container ---------- */
.widget-container {
  max-width: 480px;
  margin: 0 auto;
  background: var(--snow);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ---------- Header ---------- */
.widget-header {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  padding: var(--sp-lg) var(--sp-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.widget-header::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(61,180,201,.15) 0%, transparent 70%);
  border-radius: 50%;
}

.widget-header .logo {
  width: 160px;
  height: auto;
  margin-bottom: var(--sp-sm);
  position: relative;
  z-index: 1;
}

.widget-header h1 {
  color: var(--white);
  font-size: 1.25rem;
  letter-spacing: .02em;
  position: relative;
  z-index: 1;
}

.widget-header .station-name {
  color: var(--turquoise);
  font-size: .875rem;
  margin-top: var(--sp-xs);
  font-weight: 400;
  position: relative;
  z-index: 1;
}

/* ---------- Express Checkout (Section 0) ---------- */
.express-checkout {
  background: var(--white);
  padding: var(--sp-md);
  border-bottom: 1px solid var(--grey-100);
}

.express-buttons {
  display: flex;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.btn-express {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 14px var(--sp-md);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--grey-200);
  background: var(--white);
  font-size: .9rem;
  font-weight: 600;
  color: var(--teal);
  cursor: pointer;
  min-height: 48px;
  transition: all var(--duration) var(--ease);
}

.btn-express:hover {
  border-color: var(--turquoise);
  box-shadow: var(--shadow-glow);
}

.btn-express:active {
  transform: scale(.97);
}

.btn-express svg {
  width: 20px;
  height: 20px;
}

.separator {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  color: var(--grey-300);
  font-size: .8rem;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--grey-200);
}

/* ---------- Accordion ---------- */
.accordion {
  padding: 0 var(--sp-md);
}

.accordion-section {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration) var(--ease);
}

.accordion-section.active {
  box-shadow: var(--shadow-md);
}

.accordion-section.completed .accordion-header {
  border-left: 3px solid var(--turquoise);
}

.accordion-header {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md);
  cursor: pointer;
  min-height: 56px;
  transition: background var(--duration) var(--ease);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.accordion-header:hover {
  background: var(--snow);
}

.accordion-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grey-100);
  color: var(--grey-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
  transition: all var(--duration) var(--ease);
}

.accordion-section.active .accordion-step {
  background: var(--turquoise);
  color: var(--white);
}

.accordion-section.completed .accordion-step {
  background: var(--turquoise);
  color: var(--white);
}

.accordion-section.completed .accordion-step::after {
  content: '\2713';
}

.accordion-section.completed .accordion-step .step-number {
  display: none;
}

.accordion-title {
  flex: 1;
}

.accordion-title h2 {
  font-size: 1rem;
  color: var(--teal);
  margin-bottom: 0;
}

.accordion-summary {
  font-size: .8rem;
  color: var(--turquoise);
  font-weight: 500;
  margin-top: 2px;
  opacity: 0;
  max-height: 0;
  transition: all var(--duration) var(--ease);
}

.accordion-section.completed .accordion-summary {
  opacity: 1;
  max-height: 30px;
}

.accordion-chevron {
  width: 20px;
  height: 20px;
  color: var(--grey-300);
  transition: transform var(--duration) var(--ease);
  flex-shrink: 0;
}

.accordion-section.active .accordion-chevron {
  transform: rotate(180deg);
  color: var(--turquoise);
}

/* Section 1 active : pas de chevron (on ne peut pas revenir avant) */
.accordion-section[data-section="1"].active .accordion-chevron {
  display: none;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease);
}

.accordion-section.active .accordion-body {
  max-height: 2000px;
}

.accordion-content {
  padding: 0 var(--sp-md) var(--sp-lg);
  overflow: hidden;
}

/* ---------- Section 1 : Passengers ---------- */
.passenger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-md) 0;
  border-bottom: 1px solid var(--grey-100);
}

.passenger-row:last-child {
  border-bottom: none;
}

.passenger-info .passenger-label {
  font-weight: 600;
  font-size: .95rem;
  color: var(--teal);
}

.passenger-info .passenger-age {
  font-size: .75rem;
  color: var(--grey-text);
}

.passenger-info .passenger-price {
  font-size: .8rem;
  color: var(--turquoise);
  font-weight: 600;
  margin-top: 2px;
}

.counter {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.counter-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--grey-200);
  background: var(--white);
  color: var(--teal);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
  min-width: 44px;
  min-height: 44px;
}

.counter-btn:hover {
  border-color: var(--turquoise);
  color: var(--turquoise);
}

.counter-btn:active {
  transform: scale(.9);
  background: var(--turquoise);
  color: var(--white);
  border-color: var(--turquoise);
}

.counter-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.counter-value {
  width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--teal);
}

/* ---------- Section 2 : Calendar & Duration ---------- */
.calendar-wrapper {
  margin-bottom: var(--sp-lg);
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-md);
}

.calendar-nav button {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--grey-100);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  transition: background var(--duration) var(--ease);
}

.calendar-nav button:hover {
  background: var(--turquoise);
  color: var(--white);
}

.calendar-nav .month-label {
  font-weight: 700;
  color: var(--teal);
  text-transform: capitalize;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.calendar-grid .day-header {
  font-size: .7rem;
  font-weight: 600;
  color: var(--grey-text);
  padding: var(--sp-xs) 0;
  text-transform: uppercase;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  position: relative;
  min-height: 40px;
}

.calendar-day.empty {
  cursor: default;
}

.calendar-day.past {
  color: var(--grey-200);
  cursor: not-allowed;
}

.calendar-day.avail-green {
  background: rgba(46,139,87,.08);
  color: var(--teal);
}

.calendar-day.avail-green:hover {
  background: rgba(46,139,87,.2);
}

.calendar-day.avail-orange {
  background: rgba(212,130,10,.1);
  color: var(--teal);
}

.calendar-day.avail-orange:hover {
  background: rgba(212,130,10,.25);
}

.calendar-day.avail-red {
  background: rgba(163,10,11,.08);
  color: var(--teal);
}

.calendar-day.avail-red:hover {
  background: rgba(163,10,11,.2);
}

.calendar-day.selected {
  background: var(--turquoise) !important;
  color: var(--white) !important;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

.calendar-legend {
  display: flex;
  gap: var(--sp-md);
  margin-top: var(--sp-sm);
  font-size: .7rem;
  color: var(--grey-text);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
  vertical-align: middle;
}

.legend-dot.green  { background: var(--green); }
.legend-dot.orange { background: var(--orange); }
.legend-dot.red    { background: var(--red); }

.duration-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
}

.duration-chip {
  padding: 10px var(--sp-md);
  border-radius: var(--radius-full);
  border: 2px solid var(--grey-200);
  background: var(--white);
  font-size: .85rem;
  font-weight: 600;
  color: var(--teal);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.duration-chip:hover {
  border-color: var(--turquoise);
  color: var(--turquoise);
}

.duration-chip.selected {
  background: var(--turquoise);
  border-color: var(--turquoise);
  color: var(--white);
}

.duration-chip.saison {
  border-color: var(--gold);
  color: var(--gold);
}

.duration-chip.saison.selected {
  background: linear-gradient(135deg, var(--gold), #D4A844);
  border-color: var(--gold);
  color: var(--white);
}

/* ---------- Section 3 : Domain Cards ---------- */
.domain-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
  padding-top: 14px;
}

.domain-card {
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  position: relative;
  text-align: center;
}

.domain-card:hover {
  border-color: var(--turquoise);
}

.domain-card.selected {
  border-color: var(--turquoise);
  background: rgba(61,180,201,.05);
  box-shadow: var(--shadow-glow);
}

.domain-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

.domain-badge.recommended {
  background: var(--turquoise);
  color: var(--white);
}

.domain-badge.price-diff {
  background: var(--grey-100);
  color: var(--grey-text);
}

.domain-card .domain-name {
  font-weight: 700;
  font-size: .9rem;
  color: var(--teal);
  margin-top: var(--sp-sm);
  margin-bottom: var(--sp-sm);
}

.domain-card .domain-detail {
  font-size: .75rem;
  color: var(--grey-text);
  line-height: 1.4;
}

.domain-card .domain-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal);
  margin-top: var(--sp-sm);
}

.domain-card .domain-price-unit {
  font-size: .7rem;
  color: var(--grey-text);
  font-weight: 400;
}

.domain-card .radio-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--grey-200);
  margin: var(--sp-sm) auto 0;
  position: relative;
  transition: all var(--duration) var(--ease);
}

.domain-card.selected .radio-indicator {
  border-color: var(--turquoise);
}

.domain-card.selected .radio-indicator::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px; right: 3px; bottom: 3px;
  border-radius: 50%;
  background: var(--turquoise);
}

/* Promo Code */
.promo-section {
  margin-top: var(--sp-md);
}

.promo-input-group {
  display: flex;
  gap: var(--sp-sm);
}

.promo-input-group input {
  flex: 1;
  padding: 12px var(--sp-md);
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-md);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  outline: none;
  transition: border-color var(--duration) var(--ease);
}

.promo-input-group input:focus {
  border-color: var(--turquoise);
}

.promo-input-group button {
  padding: 12px var(--sp-md);
  border: none;
  border-radius: var(--radius-md);
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
  white-space: nowrap;
  min-height: 44px;
}

.promo-input-group button:hover {
  background: var(--teal-light);
}

.promo-result {
  margin-top: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  display: none;
}

.promo-result.success {
  display: block;
  background: rgba(46,139,87,.1);
  color: var(--green);
}

.promo-result.error {
  display: block;
  background: rgba(163,10,11,.08);
  color: var(--red);
}

/* ---------- Section 4 : Skier Details ---------- */
.skier-card {
  background: var(--snow);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  margin-bottom: var(--sp-sm);
  border: 1px solid var(--grey-100);
}

.skier-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-md);
}

.skier-label {
  font-weight: 700;
  font-size: .9rem;
  color: var(--teal);
}

.skier-type-badge {
  font-size: .7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--turquoise);
  color: var(--white);
  font-weight: 600;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--grey-100);
}

.option-row:last-child {
  border-bottom: none;
}

.option-label {
  display: flex;
  flex-direction: column;
}

.option-label span:first-child {
  font-weight: 600;
  font-size: .85rem;
  color: var(--teal);
}

.option-label span:last-child {
  font-size: .75rem;
  color: var(--grey-text);
}

/* Keycard input */
.keycard-options {
  display: flex;
  gap: var(--sp-sm);
  margin-top: var(--sp-xs);
}

.keycard-option {
  padding: 8px 12px;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.keycard-option:hover {
  border-color: var(--turquoise);
}

.keycard-option.selected {
  border-color: var(--turquoise);
  background: rgba(61,180,201,.08);
  color: var(--turquoise);
  font-weight: 600;
}

.keycard-number-input {
  margin-top: var(--sp-sm);
  display: none;
}

.keycard-number-input.visible {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.keycard-number-input input {
  flex: 1;
  padding: 10px var(--sp-md);
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  outline: none;
  transition: border-color var(--duration) var(--ease);
}

.keycard-number-input input:focus {
  border-color: var(--turquoise);
}

.keycard-photo-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 2px solid var(--turquoise);
  border-radius: var(--radius-sm);
  background: rgba(61,180,201,.08);
  color: var(--turquoise);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration) var(--ease);
}
.keycard-photo-btn svg { width: 20px; height: 20px; }
.keycard-photo-btn:hover {
  background: rgba(61,180,201,.18);
}

/* Toggle / Checkbox */
.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.toggle {
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: var(--grey-200);
  cursor: pointer;
  position: relative;
  transition: background var(--duration) var(--ease);
  flex-shrink: 0;
  min-width: 48px;
}

.toggle.active {
  background: var(--turquoise);
}

.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease);
}

.toggle.active::after {
  transform: translateX(20px);
}

/* Insurance reveal animation */
.insurance-fields {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 400ms var(--ease), opacity 300ms var(--ease), margin 300ms var(--ease);
  margin-top: 0;
}

.insurance-fields.visible {
  max-height: 500px;
  opacity: 1;
  margin-top: var(--sp-md);
}

.insurance-msg {
  background: rgba(61,180,201,.08);
  border-left: 3px solid var(--turquoise);
  padding: var(--sp-sm) var(--sp-md);
  font-size: .8rem;
  color: var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: var(--sp-sm);
}

/* Nominative fields */
.nom-fields {
  margin-top: var(--sp-sm);
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-sm);
}

.form-row.full {
  grid-template-columns: 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--grey-text);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.form-group input,
.form-group select {
  padding: 10px 12px;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  outline: none;
  transition: border-color var(--duration) var(--ease);
  min-height: 44px;
  background: var(--white);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--turquoise);
}

.form-group input.error {
  border-color: var(--red);
}

.btn-same-family {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 6px 12px;
  border: 1.5px dashed var(--turquoise);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--turquoise);
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: var(--sp-sm);
  transition: all var(--duration) var(--ease);
  min-height: 36px;
}

.btn-same-family:hover {
  background: rgba(61,180,201,.08);
}

/* Photo button */
.btn-photo {
  padding: 8px 14px;
  border: 2px dashed var(--grey-200);
  border-radius: var(--radius-sm);
  background: var(--snow);
  color: var(--grey-text);
  font-size: .8rem;
  cursor: pointer;
  text-align: center;
  transition: all var(--duration) var(--ease);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
}

.btn-photo:hover {
  border-color: var(--turquoise);
  color: var(--turquoise);
}

/* ---------- Section 5 : Delivery & Payment ---------- */
.delivery-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
}

.delivery-card {
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: var(--sp-md) var(--sp-sm);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  position: relative;
}

.delivery-card:hover {
  border-color: var(--turquoise);
}

.delivery-card.selected {
  border-color: var(--turquoise);
  background: rgba(61,180,201,.05);
}

.delivery-card .delivery-icon {
  font-size: 1.5rem;
  margin-bottom: var(--sp-xs);
  color: var(--teal);
}

.delivery-card .delivery-icon svg {
  width: 28px;
  height: 28px;
}

.delivery-card .delivery-name {
  font-weight: 600;
  font-size: .8rem;
  color: var(--teal);
}

.delivery-card .delivery-price {
  font-size: .7rem;
  color: var(--grey-text);
  margin-top: 2px;
}

.delivery-card .delivery-badge {
  position: absolute;
  top: -8px;
  right: -4px;
  font-size: .6rem;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: var(--turquoise);
  color: var(--white);
  font-weight: 700;
}

/* Payer info */
.payer-section {
  margin-bottom: var(--sp-lg);
}

.payer-section h3 {
  font-size: .95rem;
  margin-bottom: var(--sp-md);
  color: var(--teal);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--turquoise);
  cursor: pointer;
}

.checkbox-row label {
  font-size: .85rem;
  color: var(--teal);
  cursor: pointer;
}

/* Payment section */
.payment-section h3 {
  font-size: .95rem;
  margin-bottom: var(--sp-md);
  color: var(--teal);
}

.installment-option {
  background: rgba(200,155,60,.08);
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  margin-bottom: var(--sp-md);
  display: none;
}

.installment-option.visible {
  display: block;
}

.installment-option .installment-label {
  font-weight: 700;
  color: var(--teal);
  font-size: .9rem;
  margin-bottom: var(--sp-xs);
}

.installment-option .installment-detail {
  font-size: .8rem;
  color: var(--grey-text);
}

.card-form {
  margin-top: var(--sp-md);
}

.card-form .form-group input {
  letter-spacing: .1em;
}

.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: block;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--turquoise) 0%, #2DA0B3 100%);
  color: var(--white);
  font-family: 'Museo', 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  min-height: 52px;
  letter-spacing: .02em;
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2DA0B3 0%, var(--turquoise) 100%);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0) scale(.98);
}

.btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: block;
  width: 100%;
  padding: 14px;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--teal);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  min-height: 48px;
}

.btn-secondary:hover {
  border-color: var(--turquoise);
  color: var(--turquoise);
}

.btn-next {
  margin-top: var(--sp-lg);
}

/* Inline error message */
.inline-error {
  background: rgba(163,10,11,.08);
  color: var(--red);
  font-size: .85rem;
  font-weight: 600;
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--red);
  margin-top: var(--sp-md);
}

/* ---------- Sticky Bar ---------- */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--teal-dark);
  color: var(--white);
  padding: var(--sp-md);
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.sticky-bar.visible {
  opacity: 1;
  pointer-events: auto;
}

.sticky-summary {
  flex: 1;
  min-width: 0;
}

.sticky-summary .sticky-label {
  font-size: .7rem;
  color: var(--grey-300);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.sticky-summary .sticky-detail {
  font-size: .8rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.sticky-summary .sticky-date {
  font-size: .7rem;
  font-weight: 400;
  opacity: .8;
}

.sticky-total {
  text-align: right;
  cursor: pointer;
  position: relative;
}

.sticky-total .total-amount {
  font-family: 'Museo', 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  transition: all var(--duration) var(--ease);
}

.sticky-total .total-amount.animating {
  color: var(--turquoise-light);
  transform: scale(1.1);
}

.sticky-total .total-hint {
  font-size: .65rem;
  color: var(--grey-300);
}

.sticky-cta {
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--turquoise);
  color: var(--white);
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration) var(--ease);
  min-height: 44px;
}

.sticky-cta:hover {
  background: var(--turquoise-light);
}

/* Price breakdown overlay */
.price-breakdown {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: calc(100% - 32px);
  max-width: 448px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-lg);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration) var(--ease);
}

.price-breakdown.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.price-breakdown h3 {
  font-size: 1rem;
  margin-bottom: var(--sp-md);
  color: var(--teal);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-sm) 0;
  font-size: .85rem;
  border-bottom: 1px solid var(--grey-100);
}

.breakdown-row:last-child {
  border-bottom: none;
}

.breakdown-row.total {
  font-weight: 700;
  font-size: 1rem;
  color: var(--teal);
  border-top: 2px solid var(--teal);
  border-bottom: none;
  margin-top: var(--sp-sm);
  padding-top: var(--sp-md);
}

.breakdown-row .discount {
  color: var(--green);
}

.promo-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--radius-full);
  vertical-align: middle;
  margin-left: 4px;
}

.original-price {
  color: var(--grey-300);
  font-size: .8em;
  margin-right: 4px;
  text-decoration: line-through;
}

/* ---------- Confirmation Page ---------- */
.confirmation-page {
  display: none;
  padding: var(--sp-lg) var(--sp-md);
}

.confirmation-page.visible {
  display: block;
}

.confirmation-icon {
  text-align: center;
  margin-bottom: var(--sp-lg);
}

.confirmation-icon .checkmark {
  width: 72px;
  height: 72px;
  background: var(--turquoise);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  animation: pop .4s var(--ease);
}

@keyframes pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.confirmation-page h2 {
  text-align: center;
  font-size: 1.3rem;
  color: var(--teal);
  margin-bottom: var(--sp-xs);
}

.confirmation-page .order-number {
  text-align: center;
  font-size: .85rem;
  color: var(--grey-text);
  margin-bottom: var(--sp-xl);
}

.recap-section {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  margin-bottom: var(--sp-md);
  box-shadow: var(--shadow-sm);
}

.recap-section h3 {
  font-size: .9rem;
  color: var(--teal);
  margin-bottom: var(--sp-sm);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--grey-100);
}

.recap-row {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  padding: 4px 0;
}

.recap-row .label {
  color: var(--grey-text);
}

.recap-row .value {
  font-weight: 600;
  color: var(--teal);
}

.create-account-cta {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  text-align: center;
  color: var(--white);
  margin-top: var(--sp-xl);
}

.create-account-cta h3 {
  color: var(--white);
  margin-bottom: var(--sp-sm);
}

.create-account-cta p {
  font-size: .85rem;
  opacity: .85;
  margin-bottom: var(--sp-md);
}

.create-account-cta button {
  padding: 14px 32px;
  border: 2px solid var(--white);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  min-height: 48px;
}

.create-account-cta button:hover {
  background: var(--white);
  color: var(--teal);
}

/* ---------- Express modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease);
}

.modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  max-width: 340px;
  width: 90%;
  text-align: center;
  transform: scale(.9);
  transition: transform var(--duration) var(--ease);
}

.modal-overlay.visible .modal {
  transform: scale(1);
}

.modal h3 {
  margin-bottom: var(--sp-sm);
  color: var(--teal);
}

.modal p {
  font-size: .9rem;
  color: var(--grey-text);
  margin-bottom: var(--sp-lg);
}

.modal button {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--turquoise);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background var(--duration) var(--ease);
}

.modal button:hover {
  background: var(--teal);
}

/* ---------- Auth / Login ---------- */
.login-form,
.otp-form {
  padding: 0;
}

.login-input-row {
  display: flex;
  gap: var(--sp-sm);
}

.login-input-row input {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  outline: none;
  transition: border-color var(--duration) var(--ease);
  min-height: 44px;
  background: var(--white);
}

.login-input-row input:focus {
  border-color: var(--turquoise);
}

.btn-login {
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--turquoise);
  color: var(--white);
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
  transition: background var(--duration) var(--ease);
}

.btn-login:hover {
  background: var(--turquoise-light);
}

.login-hint {
  font-size: .75rem;
  color: var(--grey-text);
  margin-top: var(--sp-sm);
}

.otp-msg {
  font-size: .85rem;
  color: var(--teal);
  margin-bottom: var(--sp-sm);
}

.btn-link {
  background: none;
  border: none;
  color: var(--turquoise);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-top: var(--sp-sm);
  transition: color var(--duration) var(--ease);
}

.btn-link:hover {
  color: var(--teal);
}

.btn-logout {
  background: none;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--grey-text);
  cursor: pointer;
  margin-left: var(--sp-sm);
  transition: all var(--duration) var(--ease);
}

.btn-logout:hover {
  border-color: var(--red);
  color: var(--red);
}

.connected-badge {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: .85rem;
  color: var(--teal);
}

.connected-badge svg {
  color: var(--turquoise);
  flex-shrink: 0;
}

/* V6a — Login banner between H1 and widget */
.login-banner {
  margin: var(--sp-sm) 12px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  box-shadow: var(--shadow-sm);
}

.login-banner .login-banner-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: var(--sp-sm);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.login-banner .login-banner-title svg {
  width: 18px;
  height: 18px;
  color: var(--turquoise);
  flex-shrink: 0;
}

/* V6b — Login as section 0 in accordion */
.accordion-section[data-section="0"] .accordion-step {
  background: var(--teal);
  color: var(--white);
}

.accordion-section[data-section="0"] .accordion-step .step-icon svg {
  width: 16px;
  height: 16px;
}

.accordion-section[data-section="0"].completed .accordion-step::after {
  content: none;
}

.accordion-section[data-section="0"] .accordion-step .step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-section-body {
  padding: 0;
}

/* V6c — Account dropdown in header */
.header-account-wrapper {
  position: relative;
}

.account-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  box-shadow: var(--shadow-lg);
  z-index: 150;
}

.account-dropdown.visible {
  display: block;
}

.account-dropdown .dropdown-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: var(--sp-sm);
}

/* Connected indicator on account icon (V6c) */
.header-icon-btn.logged-in {
  border: 2px solid var(--turquoise);
  background: rgba(61,180,201,.15);
}

/* Saved skier select in skier cards */
.saved-skier-select {
  margin-bottom: var(--sp-sm);
}

.saved-skier-select select {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid var(--turquoise);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  color: var(--turquoise);
  background: rgba(61,180,201,.05);
  cursor: pointer;
  outline: none;
  min-height: 40px;
  transition: all var(--duration) var(--ease);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%233DB4C9' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.saved-skier-select select:hover {
  background-color: rgba(61,180,201,.1);
}

/* ---------- Utilities ---------- */
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.text-center { text-align: center; }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }

/* ---------- Responsive (already mobile-first) ---------- */
@media (min-width: 481px) {
  .widget-container {
    margin-top: var(--sp-lg);
    margin-bottom: var(--sp-lg);
    border-radius: var(--radius-lg);
    min-height: auto;
    box-shadow: var(--shadow-lg);
  }
}

/* ---------- V7 : Toast Notifications ---------- */
.toast-container {
  position: fixed;
  bottom: 16px;
  transition: bottom .3s ease;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 448px;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--white);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--red);
  box-shadow: var(--shadow-md);
  font-size: .85rem;
  font-weight: 600;
  color: var(--red);
  pointer-events: auto;
  animation: toastIn 350ms var(--ease) forwards;
}

.toast.removing {
  animation: toastOut 300ms var(--ease) forwards;
}

.toast-icon {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
}

.toast-message {
  flex: 1;
  line-height: 1.3;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--grey-300);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 200ms ease;
}

.toast-close:hover {
  color: var(--red);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(20px); }
}

/* V7a — Badge rappel en bas a droite */
.toast-recall-badge {
  position: fixed;
  bottom: 16px;
  right: 16px;
  transition: bottom .3s ease;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 111;
  pointer-events: auto;
  animation: toastIn 350ms var(--ease) forwards;
  transition: transform 200ms ease;
}

.toast-recall-badge:hover {
  transform: scale(1.1);
}

.toast-recall-badge.visible {
  display: flex;
}

/* V7b — Rappel dans la sticky bar */
.sticky-error-recall {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(163,10,11,.12);
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 600;
  color: var(--red-light);
  cursor: pointer;
  white-space: nowrap;
  transition: background 200ms ease;
}

.sticky-error-recall:hover {
  background: rgba(163,10,11,.2);
}

.sticky-error-recall.visible {
  display: flex;
}

/* V7c — Bouton flottant en bas a gauche */
.toast-recall-fab {
  position: fixed;
  bottom: 16px;
  transition: bottom .3s ease;
  left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-dark);
  color: var(--white);
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 111;
  pointer-events: auto;
  animation: toastIn 350ms var(--ease) forwards;
  transition: transform 200ms ease;
}

.toast-recall-fab:hover {
  transform: scale(1.1);
}

.toast-recall-fab.visible {
  display: flex;
}

.toast-recall-fab svg {
  width: 20px;
  height: 20px;
}

.toast-recall-fab .fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: .6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Remonter toasts et boutons rappel quand sticky bar visible */
body.has-sticky-bar .toast-container { bottom: 100px; }
body.has-sticky-bar .toast-recall-badge { bottom: 100px; }
body.has-sticky-bar .toast-recall-fab { bottom: 100px; }

/* ---------- V8 : Dribbble-inspired Toast Notifications ---------- */
.toast-container[data-toast-style="v8"] .toast {
  background: #FBDCDC;
  border-left: none;
  border-radius: 20px;
  padding: 16px 18px 16px 22px;
  gap: 14px;
  color: var(--teal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(163,10,11,.12);
}

.toast-container[data-toast-style="v8"] .toast .toast-deco {
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(163,10,11,.1);
  pointer-events: none;
}

.toast-container[data-toast-style="v8"] .toast-icon-circle {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  z-index: 1;
  box-shadow: 0 2px 8px rgba(163,10,11,.1);
}

.toast-container[data-toast-style="v8"] .toast-body {
  flex: 1;
  z-index: 1;
}

.toast-container[data-toast-style="v8"] .toast-title {
  font-weight: 700;
  font-size: .88rem;
  color: var(--teal);
  line-height: 1.35;
  display: block;
}

.toast-container[data-toast-style="v8"] .toast-close {
  color: rgba(163,10,11,.35);
  z-index: 1;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 200ms ease, background 200ms ease;
  align-self: flex-start;
  margin-top: -2px;
}

.toast-container[data-toast-style="v8"] .toast-close:hover {
  color: var(--red);
  background: rgba(163,10,11,.08);
}

/* ============================================================
   V9 — Confiance & Feedback UX Enhancements
   ============================================================ */

/* ---------- A.1 Progress Bar ---------- */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px 8px;
  gap: 0;
}

.progress-bar .pb-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grey-200);
  color: var(--grey-text);
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .4s var(--ease);
  position: relative;
  z-index: 1;
}

.progress-bar .pb-step.active {
  background: var(--turquoise);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(61,180,201,.2);
}

.progress-bar .pb-step.completed {
  background: var(--green);
  color: var(--white);
}

.progress-bar .pb-step.completed .pb-num { display: none; }
.progress-bar .pb-step.completed::after {
  content: '\2713';
  font-size: .8rem;
  font-weight: 700;
}

.progress-bar .pb-line {
  flex: 1;
  height: 3px;
  background: var(--grey-200);
  transition: background .4s var(--ease);
  max-width: 48px;
}

.progress-bar .pb-line.filled {
  background: var(--green);
}

/* ---------- A.2 Success Toast (green mint) ---------- */
.toast-container[data-toast-style="v9"] .toast {
  background: #FBDCDC;
  border-left: none;
  border-radius: 20px;
  padding: 16px 18px 16px 22px;
  gap: 14px;
  color: var(--teal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(163,10,11,.12);
}

.toast-container[data-toast-style="v9"] .toast .toast-deco {
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(163,10,11,.1);
  pointer-events: none;
}

.toast-container[data-toast-style="v9"] .toast-icon-circle {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  z-index: 1;
  box-shadow: 0 2px 8px rgba(163,10,11,.1);
}

.toast-container[data-toast-style="v9"] .toast-body { flex: 1; z-index: 1; }

.toast-container[data-toast-style="v9"] .toast-title {
  font-weight: 700;
  font-size: .88rem;
  color: var(--teal);
  line-height: 1.35;
  display: block;
}

.toast-container[data-toast-style="v9"] .toast-close {
  color: rgba(163,10,11,.35);
  z-index: 1;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 200ms ease, background 200ms ease;
  align-self: flex-start;
  margin-top: -2px;
}

.toast-container[data-toast-style="v9"] .toast-close:hover {
  color: var(--red);
  background: rgba(163,10,11,.08);
}

/* Success variant — high specificity to override v8/v9 error styles */
.toast-container[data-toast-style="v8"] .toast.toast-success,
.toast-container[data-toast-style="v9"] .toast.toast-success {
  background: #D4EDDA;
  box-shadow: 0 8px 24px rgba(46,139,87,.12);
}

.toast-container[data-toast-style="v8"] .toast.toast-success .toast-deco,
.toast-container[data-toast-style="v9"] .toast.toast-success .toast-deco {
  background: rgba(46,139,87,.1);
}

.toast-container[data-toast-style="v8"] .toast.toast-success .toast-icon-circle,
.toast-container[data-toast-style="v9"] .toast.toast-success .toast-icon-circle {
  color: var(--green);
  box-shadow: 0 2px 8px rgba(46,139,87,.1);
}

.toast-container[data-toast-style="v8"] .toast.toast-success .toast-close,
.toast-container[data-toast-style="v9"] .toast.toast-success .toast-close {
  color: rgba(46,139,87,.4);
}

.toast-container[data-toast-style="v8"] .toast.toast-success .toast-close:hover,
.toast-container[data-toast-style="v9"] .toast.toast-success .toast-close:hover {
  color: var(--green);
  background: rgba(46,139,87,.1);
}

/* Info variant — high specificity to override v8/v9 error styles */
.toast-container[data-toast-style="v8"] .toast.toast-info,
.toast-container[data-toast-style="v9"] .toast.toast-info {
  background: #D6EAF8;
  box-shadow: 0 8px 24px rgba(52,152,219,.12);
}

.toast-container[data-toast-style="v8"] .toast.toast-info .toast-deco,
.toast-container[data-toast-style="v9"] .toast.toast-info .toast-deco {
  background: rgba(52,152,219,.1);
}

.toast-container[data-toast-style="v8"] .toast.toast-info .toast-icon-circle,
.toast-container[data-toast-style="v9"] .toast.toast-info .toast-icon-circle {
  color: #3498DB;
  box-shadow: 0 2px 8px rgba(52,152,219,.1);
}

/* ---------- A.3 Field Error Highlight ---------- */
.field-error-highlight {
  border-color: var(--red) !important;
  animation: fieldPulse 1s ease;
}

@keyframes fieldPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(163,10,11,0); }
  50% { box-shadow: 0 0 0 4px rgba(163,10,11,.15); }
}

/* ---------- B.4 Spinner on PAYER Button ---------- */
.btn-primary.btn-loading {
  pointer-events: none;
  opacity: .85;
  position: relative;
}

.btn-primary.btn-loading .btn-loading-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: btnSpin .7s linear infinite;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* ---------- B.5 Recap Overlay ---------- */
.recap-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}

.recap-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.recap-overlay .recap-modal {
  background: var(--white);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px 20px 32px;
  transform: translateY(100%);
  transition: transform .4s var(--ease);
}

.recap-overlay.visible .recap-modal {
  transform: translateY(0);
}

.recap-modal h3.recap-modal-title {
  font-size: 1.1rem;
  color: var(--teal);
  margin-bottom: 16px;
  text-align: center;
}

.recap-modal .recap-modal-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: .85rem;
  border-bottom: 1px solid var(--grey-100);
}

.recap-modal .recap-modal-row .rm-label { color: var(--grey-text); }
.recap-modal .recap-modal-row .rm-value { font-weight: 600; color: var(--teal); }

.recap-modal .recap-modal-row.total-row {
  border-top: 2px solid var(--teal);
  border-bottom: none;
  margin-top: 8px;
  padding-top: 10px;
  font-weight: 700;
  font-size: 1rem;
}

.recap-modal .recap-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.recap-modal .recap-buttons .btn-modify {
  flex: 1;
  padding: 14px;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--teal);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  min-height: 48px;
  transition: all .2s;
}

.recap-modal .recap-buttons .btn-modify:hover {
  border-color: var(--turquoise);
}

.recap-modal .recap-buttons .btn-confirm-pay {
  flex: 2;
  padding: 14px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--turquoise) 0%, #2DA0B3 100%);
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  min-height: 48px;
  box-shadow: var(--shadow-md);
  transition: all .2s;
}

.recap-modal .recap-buttons .btn-confirm-pay:hover {
  box-shadow: var(--shadow-lg);
}

/* ---------- B.6 Security Badges ---------- */
.security-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 0 4px;
  opacity: .65;
}

.security-badges svg { width: 16px; height: 16px; color: var(--grey-text); flex-shrink: 0; }

.security-badges .sb-text {
  font-size: .72rem;
  color: var(--grey-text);
  font-weight: 600;
}

.security-badges .sb-cards {
  display: flex;
  gap: 6px;
  align-items: center;
}

.security-badges .sb-cards span {
  font-size: .65rem;
  font-weight: 700;
  color: var(--grey-300);
  padding: 2px 6px;
  border: 1px solid var(--grey-200);
  border-radius: 4px;
  line-height: 1;
}

/* ---------- B.7 Delivery Timing ---------- */
.delivery-timing {
  font-size: .68rem;
  color: var(--grey-text);
  font-style: italic;
  margin-top: 4px;
  line-height: 1.3;
}

/* ---------- C.8 Confetti ---------- */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 300;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  opacity: 1;
  animation: confettiFall 2.5s ease-in forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ---------- C.9 Price Pulse on Sticky ---------- */
.price-updated {
  animation: pricePulse 600ms ease;
}

@keyframes pricePulse {
  0% { transform: scale(1); color: var(--white); }
  50% { transform: scale(1.15); color: var(--turquoise-light); }
  100% { transform: scale(1); color: var(--white); }
}

/* ---------- C.10 Step Completed Checkmark ---------- */
.accordion-section.completed .step-number.step-completed {
  display: none;
}

/* ---------- D.11 Email Validation ---------- */
.form-group input.email-valid {
  border-color: var(--green);
}

.form-group input.email-invalid {
  border-color: var(--red);
}

/* ---------- D.12 Card Type Icon ---------- */
.card-input-wrapper {
  position: relative;
}

.card-input-wrapper input { padding-right: 48px; }

.card-type-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .7rem;
  font-weight: 700;
  color: var(--grey-text);
  opacity: .7;
  pointer-events: none;
  transition: opacity .3s;
}

.card-type-icon.detected { opacity: 1; color: var(--teal); }

/* ---------- D.13 OTP Resend Button ---------- */
.otp-resend-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 14px;
  border: 1.5px solid var(--turquoise);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--turquoise);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.otp-resend-btn:disabled {
  border-color: var(--grey-200);
  color: var(--grey-300);
  cursor: not-allowed;
}

.otp-resend-btn:not(:disabled):hover {
  background: rgba(61,180,201,.08);
}
