.asa-engagement {
  --asa-ink: #202124;
  --asa-muted: #646b73;
  --asa-line: #d9dee3;
  --asa-paper: #ffffff;
  --asa-soft: #f5f7f8;
  --asa-brand: #b5162a;
  --asa-brand-dark: #7d1020;
  --asa-gold: #c88a16;
  color: var(--asa-ink);
  background: var(--asa-soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.asa-engagement *,
.asa-engagement *::before,
.asa-engagement *::after {
  box-sizing: border-box;
}

.asa-hero {
  min-height: 520px;
  display: flex;
  background:
    linear-gradient(90deg, rgba(32, 33, 36, 0.84), rgba(32, 33, 36, 0.18)),
    url("rallye-autun-hero.png") center / cover;
  color: #fff;
}

.asa-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  padding: 64px 0 92px;
}

.asa-kicker {
  margin: 0 0 12px;
  max-width: 720px;
  font-weight: 800;
  text-transform: uppercase;
}

.asa-hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.92;
  color: #fff;
}

.asa-hero p:last-child {
  max-width: 620px;
  font-size: 20px;
  line-height: 1.45;
}

.asa-notice-band,
.asa-form-shell {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.asa-notice-band {
  margin-top: -44px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(22, 28, 36, 0.14);
}

.asa-notice-band div {
  display: grid;
  gap: 4px;
  padding: 22px 24px;
  background: var(--asa-paper);
  border-right: 1px solid var(--asa-line);
}

.asa-notice-band strong {
  color: var(--asa-brand-dark);
}

.asa-notice-band span {
  color: var(--asa-muted);
}

.asa-form-shell {
  display: grid;
  gap: 18px;
  padding-bottom: 64px;
}

.asa-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.asa-panel {
  padding: 28px;
  background: var(--asa-paper);
  border: 1px solid var(--asa-line);
  border-radius: 8px;
}

.asa-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.asa-section-heading span {
  flex: 0 0 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--asa-brand);
  color: #fff;
  font-weight: 800;
}

.asa-section-heading h2 {
  margin: 0;
  font-size: 24px;
  color: var(--asa-ink);
}

.asa-section-heading p {
  margin: 6px 0 0;
  color: var(--asa-muted);
}

.asa-compact {
  margin-bottom: 14px;
}

.asa-price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.asa-price-grid label {
  min-height: 156px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--asa-line);
  border-radius: 8px;
  cursor: pointer;
}

.asa-price-grid label:has(input:checked) {
  border-color: var(--asa-brand);
  box-shadow: inset 0 0 0 2px var(--asa-brand);
}

.asa-price-grid span,
.asa-engagement label {
  font-weight: 800;
}

.asa-price-grid strong {
  font-size: 28px;
  color: var(--asa-brand-dark);
}

.asa-price-grid small {
  line-height: 1.35;
  color: var(--asa-muted);
}

.asa-inline-options,
.asa-request-type,
.asa-payment-methods,
.asa-consent-list,
.asa-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 20px;
}

.asa-inline-options label,
.asa-request-type label,
.asa-payment-methods label,
.asa-consent-list label,
.asa-checklist label,
.asa-switch-line {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fbfcfd;
  border: 1px solid var(--asa-line);
  border-radius: 6px;
}

.asa-segmented {
  margin: 20px 0 0;
  padding: 16px;
  border: 1px solid var(--asa-line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.asa-segmented legend {
  padding: 0 8px;
  font-weight: 800;
}

.asa-payment-block {
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid var(--asa-line);
  border-radius: 8px;
  background: #fbfcfd;
}

.asa-payment-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.asa-payment-heading h3 {
  margin: 0;
  font-size: 22px;
  color: var(--asa-ink);
}

.asa-payment-heading p {
  margin: 5px 0 0;
  color: var(--asa-muted);
  font-weight: 500;
}

.asa-payment-heading strong {
  min-width: 104px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--asa-brand);
  color: #fff;
  font-size: 22px;
  text-align: center;
  white-space: nowrap;
}

.asa-payment-breakdown {
  min-height: 20px;
  margin: -6px 0 14px;
  color: var(--asa-brand-dark);
  font-weight: 800;
}

.asa-payment-methods {
  margin-top: 0;
  padding: 0;
  border: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.asa-payment-methods legend {
  margin-bottom: 10px;
  font-weight: 800;
}

.asa-payment-details {
  display: none;
  margin-top: 14px;
  padding: 14px;
  border-left: 4px solid var(--asa-brand);
  background: #fff;
}

.asa-payment-details.is-visible {
  display: block;
}

.asa-payment-details strong {
  display: block;
  margin-bottom: 8px;
}

.asa-payment-details p {
  margin: 4px 0;
  white-space: pre-line;
}

.asa-segmented label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 40px;
}

.asa-request-type {
  margin: 0;
  padding: 0;
  border: 0;
}

.asa-request-type legend {
  margin-bottom: 12px;
  font-weight: 800;
}

.asa-request-type label {
  cursor: pointer;
}

.asa-request-type label.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.asa-closure-notice {
  margin-top: 16px;
  padding: 14px;
  border-left: 4px solid #b5162a;
  background: #fff1f2;
  color: #7f101d;
  font-weight: 800;
  white-space: pre-line;
}

.asa-closure-notice[hidden] {
  display: none;
}

.asa-complement-modal[hidden],
.asa-complement-review[hidden] {
  display: none;
}

.asa-modal-open {
  overflow: hidden;
}

.asa-complement-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 23, 27, 0.72);
}

.asa-complement-modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.asa-complement-modal-panel h2 {
  margin: 0 42px 8px 0;
  font-size: 24px;
}

.asa-complement-modal-panel > p {
  margin: 0 0 20px;
  color: var(--asa-muted);
  line-height: 1.5;
}

.asa-complement-modal-fields {
  display: grid;
  gap: 16px;
}

.asa-complement-modal-fields label {
  display: block;
}

.asa-complement-modal-fields input {
  margin-top: 7px;
}

.asa-engagement .asa-complement-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  min-height: 40px;
  padding: 0;
  background: transparent;
  color: var(--asa-ink);
  font-size: 28px;
  line-height: 1;
}

.asa-engagement .asa-complement-close:hover {
  background: #f1f3f5;
}

.asa-complement-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.asa-engagement .asa-secondary-button {
  border: 1px solid var(--asa-line);
  background: #fff;
  color: var(--asa-ink);
}

.asa-engagement .asa-secondary-button:hover {
  background: #f1f3f5;
}

.asa-complement-status {
  margin: 14px 0 0 !important;
  color: var(--asa-brand-dark) !important;
  font-weight: 700;
}

.asa-form-shell.is-complement-locked > .asa-panel:not(:first-child),
.asa-form-shell.is-complement-locked > .asa-submit-bar {
  display: none;
}

.asa-required-mark {
  color: var(--asa-brand);
  font-weight: 900;
}

.asa-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.asa-field-grid.asa-single {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.asa-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.asa-engagement label {
  display: block;
  font-size: 14px;
}

.asa-engagement .asa-inline-options label,
.asa-engagement .asa-request-type label,
.asa-engagement .asa-payment-methods label,
.asa-engagement .asa-consent-list label,
.asa-engagement .asa-checklist label,
.asa-engagement .asa-switch-line {
  display: flex;
}

.asa-price-grid label {
  display: grid;
}

.asa-engagement input,
.asa-engagement select,
.asa-engagement textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd2d9;
  border-radius: 6px;
  color: var(--asa-ink);
  background: #fff;
  font: inherit;
  font-weight: 500;
}

.asa-field-grid label > input,
.asa-field-grid label > select,
.asa-engagement label > textarea {
  margin-top: 7px;
}

.asa-engagement input[type="checkbox"],
.asa-engagement input[type="radio"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--asa-brand);
}

.asa-inline-options input[type="checkbox"],
.asa-consent-list input[type="checkbox"],
.asa-checklist input[type="checkbox"],
.asa-confirm-change input[type="checkbox"],
.asa-switch-line input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  border: 2px solid #b8c1ca;
  border-radius: 5px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(22, 28, 36, 0.08);
}

.asa-inline-options input[type="checkbox"]:checked,
.asa-consent-list input[type="checkbox"]:checked,
.asa-checklist input[type="checkbox"]:checked,
.asa-confirm-change input[type="checkbox"]:checked,
.asa-switch-line input[type="checkbox"]:checked {
  border-color: var(--asa-brand);
  background: var(--asa-brand);
}

.asa-inline-options input[type="checkbox"]:checked::after,
.asa-consent-list input[type="checkbox"]:checked::after,
.asa-checklist input[type="checkbox"]:checked::after,
.asa-confirm-change input[type="checkbox"]:checked::after,
.asa-switch-line input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.asa-engagement textarea {
  resize: vertical;
  line-height: 1.45;
}

.asa-publicite-fields {
  margin-top: 18px;
  display: none;
}

.asa-publicite-fields.is-visible {
  display: grid;
}

.asa-administratif-fields {
  display: none;
}

.asa-supplementary-section {
  border-top-width: 5px;
}

.asa-shakedown-form {
  border-top-color: var(--asa-brand);
}

.asa-assistance-form {
  border-top-color: var(--asa-gold);
}

.asa-speaker-form {
  border-top-color: #3f596f;
}

.asa-supplementary-section > h3 {
  margin: 26px 0 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--asa-line);
  font-size: 18px;
}

.asa-supplementary-section > h3:first-of-type {
  margin-top: 0;
}

.asa-assistance-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.asa-speaker-textareas {
  margin-top: 16px;
}

.asa-optional-choice {
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid var(--asa-line);
  border-radius: 6px;
}

.asa-optional-choice legend {
  padding: 0 6px;
  font-weight: 800;
}

.asa-engagement .asa-optional-choice label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 8px 18px 0 0;
}

.asa-comparison-wrap {
  overflow-x: auto;
}

.asa-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.asa-comparison-table th,
.asa-comparison-table td {
  padding: 11px 12px;
  border: 1px solid var(--asa-line);
  text-align: left;
  vertical-align: top;
}

.asa-comparison-table th {
  background: #f1f3f5;
}

.asa-comparison-table td:first-child {
  font-weight: 800;
}

.asa-validation-notice {
  margin: 18px 0;
  padding: 14px;
  border-left: 4px solid var(--asa-gold);
  background: #fff8e9;
  font-weight: 700;
}

.asa-engagement .asa-confirm-change {
  display: flex;
  align-items: center;
  gap: 10px;
}

.asa-confirm-change input {
  flex: 0 0 22px;
}

.asa-declaration {
  margin: 20px 0;
  padding: 18px;
  border-left: 4px solid var(--asa-gold);
  background: #fff8e9;
  line-height: 1.55;
  color: #3d3424;
}

.asa-turnstile {
  margin-top: 20px;
  min-height: 65px;
}

.asa-submit-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  background: rgba(245, 247, 248, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--asa-line);
}

.asa-submit-bar p {
  margin: 0;
  color: var(--asa-muted);
  font-weight: 700;
}

.asa-engagement button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  background: var(--asa-brand);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.asa-engagement button:hover {
  background: var(--asa-brand-dark);
}

.asa-engagement button:disabled {
  cursor: wait;
  opacity: 0.7;
}

@media (max-width: 900px) {
  .asa-hero {
    min-height: 500px;
  }

  .asa-notice-band,
  .asa-price-grid,
  .asa-field-grid,
  .asa-field-grid.asa-single,
  .asa-two-column,
  .asa-inline-options,
  .asa-payment-methods,
  .asa-assistance-grid,
  .asa-consent-list,
  .asa-checklist {
    grid-template-columns: 1fr;
  }

  .asa-payment-heading {
    flex-direction: column;
  }

  .asa-complement-modal-actions {
    flex-direction: column;
  }

  .asa-engagement .asa-complement-close {
    width: 40px;
  }

  .asa-panel {
    padding: 22px;
  }

  .asa-submit-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .asa-engagement button {
    width: 100%;
  }
}
