/* Checkout / wizard — formulaire attestation */

.checkout-page {
  --checkout-accent: #1e3a5f;
  --checkout-accent-soft: #335cff;
  --checkout-mint: #00c2a8;
  --checkout-bg: #f4f6f9;
  --checkout-card: #fff;
  --checkout-border: rgba(16, 24, 40, 0.09);
  --checkout-muted: #667085;
  background: var(--checkout-bg);
}

.checkout-top {
  background: var(--checkout-card);
  border-bottom: 1px solid var(--checkout-border);
  /* Dégage le header en position absolute */
  padding-top: 6.25rem;
  padding-bottom: 1.15rem;
}

@media (min-width: 1200px) {
  .checkout-top {
    padding-top: 7.25rem;
  }
}

.checkout-top__title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--checkout-accent);
  margin: 0;
  line-height: 1.3;
  max-width: 42rem;
}

.checkout-top__lead {
  max-width: 44rem;
}

.checkout-top .checkout-top__lead-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--checkout-muted);
  margin: 0;
  font-weight: 400;
}

.badge-chip {
  border: 1px solid rgba(51, 92, 255, 0.18);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-weight: 600;
  font-size: 0.78rem;
  background: rgba(51, 92, 255, 0.08);
  color: var(--checkout-accent-soft, #335cff);
  display: inline-block;
}

/* Hero attestation (formulaire, paiement, édition) */
.attestation-hero {
  background: radial-gradient(1200px 400px at 10% -10%, #eaf0ff, transparent 60%),
              linear-gradient(135deg, #eef2ff 0%, #f8fbff 100%);
  border-bottom: 1px solid rgba(16, 24, 40, 0.06);
  padding-top: 6.25rem;
}

@media (min-width: 1200px) {
  .attestation-hero {
    padding-top: 7.25rem;
  }
}

.attestation-hero__illustr {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--checkout-border);
  box-shadow: 0 6px 20px rgba(51, 92, 255, 0.12);
  color: var(--checkout-accent-soft, #335cff);
  font-size: 1.75rem;
}

.attestation-hero__title {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  color: var(--checkout-accent);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.attestation-hero__lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--checkout-muted);
  margin-bottom: 0;
  max-width: 44rem;
}

.attestation-hero__lead strong {
  font-weight: 700;
  color: #101828;
}

.attestation-progress-mini {
  height: 10px;
  background: #eef2ff;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.06);
  max-width: 20rem;
}

.attestation-progress-mini__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--checkout-mint, #00c2a8), var(--checkout-accent-soft, #335cff));
}

.attestation-progress-mini--step1 .attestation-progress-mini__bar {
  width: 50%;
}

.attestation-progress-mini--step2 .attestation-progress-mini__bar {
  width: 75%;
}

.card-border {
  border: 1px solid var(--checkout-border);
  border-radius: 16px;
}

/* Carte principale */
.checkout-card {
  background: var(--checkout-card);
  border: 1px solid var(--checkout-border);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(2, 18, 89, 0.06);
  overflow: hidden;
  padding: 0 !important;
}

.checkout-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem 1rem;
  border-bottom: 1px solid var(--checkout-border);
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

.checkout-card__header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--checkout-accent);
  margin: 0 0 0.2rem;
  line-height: 1.35;
}

.checkout-top h1.checkout-top__lead-title {
  font-size: clamp(1.35rem, 2.4vw, 1.55rem);
  font-weight: 700;
  color: var(--checkout-accent);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.checkout-top__lead-title-line {
  display: block;
}

.checkout-card__badge {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(51, 92, 255, 0.1);
  color: var(--checkout-accent-soft);
  border: 1px solid rgba(51, 92, 255, 0.18);
}

.checkout-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

/* Stepper horizontal */
.checkout-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--checkout-border);
  background: #fff;
  overflow-x: auto;
}

.checkout-stepper__item {
  flex: 1;
  min-width: 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  padding: 0;
  cursor: default;
  text-align: center;
}

.checkout-stepper__item.is-clickable {
  cursor: pointer;
}

.checkout-stepper__item.is-clickable:not(:disabled):hover .checkout-stepper__label {
  color: var(--checkout-accent-soft);
}

.checkout-stepper__item:disabled,
.checkout-stepper__item.is-locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkout-stepper__item.is-clickable:not(:disabled) {
  cursor: pointer;
}

.checkout-stepper__dot {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  border: 2px solid #e4e7ec;
  background: #fff;
  color: var(--checkout-muted);
  transition: all 0.2s ease;
}

.checkout-stepper__item.is-done .checkout-stepper__dot {
  background: var(--checkout-mint);
  border-color: var(--checkout-mint);
  color: #fff;
}

.checkout-stepper__item.is-current .checkout-stepper__dot {
  background: var(--checkout-accent);
  border-color: var(--checkout-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.25);
}

.checkout-stepper__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--checkout-muted);
  line-height: 1.2;
  max-width: 5.5rem;
}

.checkout-stepper__item.is-current .checkout-stepper__label,
.checkout-stepper__item.is-done .checkout-stepper__label {
  color: var(--checkout-accent);
}

.checkout-stepper__connector {
  flex: 0 0 1.5rem;
  height: 2px;
  background: #e4e7ec;
  margin-top: 1.1rem;
  border-radius: 2px;
}

.checkout-stepper__connector.is-done {
  background: var(--checkout-mint);
}

/* Wizard sections */
.attestation-form .form-section[data-wizard-step] {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.attestation-form .form-section[data-wizard-step]:not(.d-none) + .form-section[data-wizard-step]:not(.d-none) {
  margin-top: 0;
}

.wizard-step-intro {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--checkout-border);
  font-size: 0.9rem;
  color: var(--checkout-muted);
}

.wizard-step-intro strong {
  display: block;
  color: var(--checkout-accent);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

/* Champs avec icône */
.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b3;
  font-size: 1rem;
  pointer-events: none;
  z-index: 2;
}

.input-icon-wrap .form-control {
  padding-left: 2.5rem;
  min-height: 2.75rem;
}

.input-icon-wrap input[type="date"].form-control {
  padding-right: 0.75rem;
}

/* Formulaire base */
.attestation-form {
  --form-gap: 1.5rem;
  --form-radius: 12px;
  --form-border: var(--checkout-border);
  --form-muted: var(--checkout-muted);
}

.attestation-form .form-section + .form-section {
  margin-top: var(--form-gap);
  padding-top: var(--form-gap);
  border-top: 1px solid var(--form-border);
}

.attestation-form .form-section__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--checkout-accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.attestation-form .form-label {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: #344054;
}

.attestation-form .form-control,
.attestation-form .form-select {
  border-radius: 10px;
  border-color: rgba(16, 24, 40, 0.14);
  min-height: 2.75rem;
}

.attestation-form .form-text {
  font-size: 0.82rem;
  color: var(--form-muted);
}

.attestation-form .form-control.is-valid,
.attestation-form .form-select.is-valid,
.attestation-form .form-check-input.is-valid {
  border-color: rgba(16, 24, 40, 0.14);
  background-image: none;
}

.attestation-form .form-control.is-invalid,
.attestation-form .form-select.is-invalid {
  border-color: #f04438;
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.1);
}

.attestation-form .select2-container.is-invalid-select2 .select2-selection--single {
  border-color: #f04438 !important;
  min-height: 2.75rem;
}

.attestation-form .select2-container .select2-selection--single {
  border-radius: 10px !important;
  border-color: rgba(16, 24, 40, 0.14) !important;
  min-height: 2.75rem !important;
}

.attestation-form .select2-selection__rendered {
  line-height: 2.65rem !important;
  padding-left: 0.85rem !important;
}

.attestation-form .field-flash {
  animation: attestationFieldFlash 1.1s ease;
}

@keyframes attestationFieldFlash {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  30% { box-shadow: 0 0 0 4px rgba(240, 68, 56, 0.25); }
}

/* Erreurs */
.form-error-summary {
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: var(--form-radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}

.form-error-summary__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #b42318;
  margin-bottom: 0.5rem;
}

.form-error-summary__list {
  margin: 0;
  padding-left: 1.25rem;
  color: #912018;
}

.form-error-summary__link {
  background: none;
  border: none;
  padding: 0;
  color: #b42318;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
}

.admission-school-manual-block {
  background: #f9fafb;
  border: 1px dashed rgba(16, 24, 40, 0.14);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.admission-school-manual-block .form-check-label {
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Étape Dossier */
.dossier-panel {
  border: 1px solid var(--form-border);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  background: #fff;
}

.dossier-panel--muted {
  background: #fafbfc;
}

.dossier-panel--consent {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.dossier-panel__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--checkout-accent);
  margin: 0 0 0.35rem;
}

.dossier-panel__lead {
  font-size: 0.88rem;
  color: var(--form-muted);
  margin: 0 0 1rem;
}

.dossier-panel .form-text {
  margin-top: 0.4rem;
}

.study-years-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 1rem;
  max-width: 28rem;
}

.study-years-field {
  flex: 1 1 9rem;
  min-width: 8rem;
}

.study-years-field__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--form-muted);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.study-years-arrow {
  color: var(--form-muted);
  font-size: 1.1rem;
  line-height: 2.75rem;
  padding-bottom: 0.1rem;
}

.dossier-cgu-check {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--form-border);
  margin-bottom: 0.85rem;
}

.dossier-cgu-check .form-check-label {
  line-height: 1.45;
  font-size: 0.9rem;
}

.dossier-cgu-check .form-check-label.required::after,
.form-check .form-check-label.required::after {
  content: none;
}

.attestation-form .dossier-panel .form-passport-reminder {
  margin-top: 0;
}

/* Navigation wizard */
.wizard-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--form-border);
}

.wizard-nav__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  position: relative;
  min-height: 2.75rem;
}

.wizard-nav__actions #wizardPrevBtn:not(.d-none) {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.wizard-nav__actions .btn-checkout-primary {
  min-width: 12rem;
}

.wizard-nav .btn {
  border-radius: 12px;
  font-weight: 600;
  min-height: 2.75rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.wizard-nav .btn-outline-checkout {
  border: 2px solid var(--checkout-accent);
  color: var(--checkout-accent);
  background: #fff;
}

.wizard-nav .btn-outline-checkout:hover {
  background: rgba(30, 58, 95, 0.05);
  color: var(--checkout-accent);
}

.wizard-nav .btn-checkout-primary {
  background: var(--checkout-accent);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 58, 95, 0.22);
}

.wizard-nav .btn-checkout-primary:hover {
  background: #16304f;
  color: #fff;
}

.btn-checkout-primary {
  background: var(--checkout-accent);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 58, 95, 0.22);
  border-radius: 12px;
  font-weight: 600;
  min-height: 2.75rem;
}

.btn-checkout-primary:hover {
  background: #16304f;
  color: #fff;
}

.checkout-stepper--static .checkout-stepper__item {
  cursor: default;
}

/* Page paiement */
.payment-recap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.25rem;
  font-size: 0.88rem;
}

@media (max-width: 575.98px) {
  .payment-recap-grid {
    grid-template-columns: 1fr;
  }
}

.payment-recap-grid dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--checkout-muted);
}

.payment-recap-grid dd {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--checkout-accent);
  word-break: break-word;
}

.payment-zone-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.payment-zone-banner--ok {
  background: rgba(0, 194, 168, 0.08);
  border: 1px solid rgba(0, 194, 168, 0.35);
  color: #0f5132;
}

.payment-zone-banner--warn {
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #92400e;
}

.payment-zone-banner--muted {
  background: #f8fafc;
  border: 1px solid var(--checkout-border);
  color: var(--checkout-muted);
}

.payment-fee-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.06) 0%, rgba(51, 92, 255, 0.06) 100%);
  border: 1px solid var(--checkout-border);
  margin-bottom: 1rem;
}

.payment-fee-strip__label {
  font-size: 0.88rem;
  color: var(--checkout-muted);
  margin: 0;
}

.payment-fee-strip__amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--checkout-accent);
  line-height: 1;
}

.payment-step {
  border: 1px solid var(--checkout-border);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  background: #fff;
}

.payment-step--active {
  border-color: rgba(51, 92, 255, 0.35);
  box-shadow: 0 4px 20px rgba(51, 92, 255, 0.08);
}

.payment-step--locked {
  background: #fafbfc;
  border-style: dashed;
  text-align: center;
  padding: 1.5rem 1rem;
}

.payment-step__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--checkout-muted);
  margin-bottom: 0.25rem;
}

.payment-step__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--checkout-accent);
  margin: 0 0 0.35rem;
}

.payment-step__lead {
  font-size: 0.88rem;
  color: var(--checkout-muted);
  margin: 0 0 1rem;
}

.payment-step--honor {
  padding-top: 1rem;
}

.payment-step--honor .payment-step__title {
  margin-bottom: 0.65rem;
}

.honor-inline__declaration {
  font-size: 0.84rem;
  line-height: 1.6;
  color: #475467;
  margin: 0;
}

.honor-inline__declaration strong {
  color: var(--checkout-accent);
  font-weight: 700;
}

.honor-inline__declaration p {
  margin-bottom: 0.6rem;
}

.honor-inline__declaration p:last-child {
  margin-bottom: 0;
}

.honor-sign-cta {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--checkout-border);
}

.honor-sign-cta__btn {
  min-height: 3rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(30, 58, 95, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.honor-sign-cta__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(30, 58, 95, 0.32);
  background: #16304f;
  color: #fff;
}

.honor-sign-cta__btn .bi {
  font-size: 1.1rem;
}

.payment-step .btn-outline-checkout {
  border: 2px solid var(--checkout-accent);
  color: var(--checkout-accent);
  background: #fff;
  border-radius: 10px;
  font-weight: 600;
}

.payment-step .btn-outline-checkout:hover {
  background: rgba(30, 58, 95, 0.05);
  color: var(--checkout-accent);
}

.payment-step__status {
  font-size: 0.88rem;
  margin-top: 0.75rem;
}

.payment-pay-tabs .nav-link {
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--checkout-muted);
  padding: 0.5rem 1rem;
}

.payment-pay-tabs .nav-link.active {
  background: var(--checkout-accent);
  color: #fff;
}

#signatureCanvas {
  display: block;
  width: 100%;
  height: 200px;
  border-radius: 8px;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}

@media (min-width: 768px) {
  #signatureCanvas {
    height: 180px;
  }
}

@media (max-width: 767.98px) {
  #signatureCanvas {
    height: 220px;
  }
}

.signature-box {
  position: relative;
  border: 2px dashed rgba(51, 92, 255, 0.28);
  border-radius: 12px;
  padding: 0.65rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signature-box.is-signed {
  border-style: solid;
  border-color: rgba(0, 194, 168, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 194, 168, 0.1);
}

.signature-box__placeholder {
  position: absolute;
  inset: 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  color: #98a2b3;
  font-size: 0.88rem;
  pointer-events: none;
  z-index: 1;
}

.signature-box__placeholder .bi {
  font-size: 1.35rem;
  opacity: 0.7;
}

/* Modal attestation sur l'honneur */
.honor-modal {
  --checkout-accent: #1e3a5f;
  --checkout-accent-soft: #335cff;
  --checkout-mint: #00c2a8;
  --checkout-border: rgba(16, 24, 40, 0.09);
  --checkout-muted: #667085;
}

.honor-modal__dialog {
  max-width: 680px;
  margin: 1rem auto;
  height: auto;
  max-height: none;
}

.honor-modal__dialog--sign {
  max-width: 520px;
}

.honor-modal .modal-content {
  border-radius: 16px;
  max-height: none;
  overflow: visible;
}

.honor-modal .modal-body {
  overflow: visible;
  max-height: none;
}

#attestationModal.show {
  align-items: flex-start;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.honor-modal .modal-header {
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--checkout-border);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.honor-modal .modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--checkout-accent);
}

.honor-modal__body {
  padding: 1rem 1.25rem;
}

.honor-modal__footer {
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid var(--checkout-border);
  background: #fafbfc;
  display: block;
}

.honor-modal__panel + .honor-modal__panel {
  margin-top: 0;
}

.honor-modal__heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--checkout-accent);
  margin-bottom: 0.85rem;
}

.honor-modal__declaration-wrap {
  margin-bottom: 1rem;
}

.honor-modal__declaration {
  font-size: 0.84rem;
  line-height: 1.55;
  color: #475467;
  background: #fff;
  border: 1px solid var(--checkout-border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  overflow: visible;
  max-height: none;
}

.honor-modal__declaration p {
  margin-bottom: 0.65rem;
}

.honor-modal__declaration p:last-child {
  margin-bottom: 0;
}

.honor-modal__declaration strong {
  color: var(--checkout-accent);
  font-weight: 700;
}

.honor-modal__steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  position: relative;
}

.honor-modal__steps::before {
  content: '';
  position: absolute;
  top: 1rem;
  left: calc(25% + 0.5rem);
  right: calc(25% + 0.5rem);
  height: 2px;
  background: var(--checkout-border);
  z-index: 0;
}

.honor-modal__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  color: var(--checkout-muted);
  transition: color 0.2s ease;
}

.honor-modal__step-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  background: #fff;
  color: var(--checkout-muted);
  border: 2px solid var(--checkout-border);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.honor-modal__step-label {
  font-weight: 500;
  line-height: 1.2;
}

.honor-modal__step.is-active {
  color: var(--checkout-accent);
}

.honor-modal__step.is-active .honor-modal__step-badge {
  background: var(--checkout-accent);
  border-color: var(--checkout-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.22);
}

.honor-modal__step.is-done {
  color: var(--checkout-mint, #00a891);
}

.honor-modal__step.is-done .honor-modal__step-badge {
  background: rgba(0, 194, 168, 0.12);
  border-color: rgba(0, 194, 168, 0.45);
  color: #0f766e;
}

.honor-modal__accept {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(51, 92, 255, 0.04);
  border: 1px solid rgba(51, 92, 255, 0.14);
  margin: 0;
}

.honor-modal__accept .form-check-input {
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.15em;
}

.honor-modal__accept .form-check-input:checked {
  background-color: var(--checkout-accent-soft, #335cff);
  border-color: var(--checkout-accent-soft, #335cff);
}

.honor-modal__accept .form-check-label {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--checkout-accent);
  padding-left: 0.15rem;
}

.honor-modal__sign-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
}

.honor-modal__sign-status {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--checkout-muted);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #f2f4f7;
}

.honor-modal__sign-status.is-done {
  color: #0f766e;
  background: rgba(0, 194, 168, 0.1);
}

.honor-modal__sign-hint {
  font-size: 0.82rem;
  color: var(--checkout-muted);
  margin: 0.75rem 0 0;
  line-height: 1.45;
}

.honor-modal__footer-panel .btn-checkout-primary {
  min-width: 9.5rem;
}

@media (max-width: 575.98px) {
  .honor-modal .modal-header,
  .honor-modal__body,
  .honor-modal__footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .honor-modal__footer-panel .btn-checkout-primary {
    width: 100%;
  }

  .honor-modal__footer-panel .d-flex {
    flex-direction: column;
    align-items: stretch !important;
  }

  .honor-modal__footer-panel .ms-md-auto {
    margin-left: 0 !important;
    width: 100%;
  }
}

.payment-skeleton {
  background: linear-gradient(90deg, #f2f2f2 25%, #eaeaea 37%, #f2f2f2 63%);
  animation: payment-skeleton 1.4s ease infinite;
  background-size: 400% 100%;
  border-radius: 10px;
}

@keyframes payment-skeleton {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.selectable {
  user-select: all;
}

.wizard-secure-note {
  flex: 1 1 100%;
  text-align: center;
  font-size: 0.82rem;
  color: var(--checkout-muted);
  margin: 0;
}

.form-passport-reminder {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(51, 92, 255, 0.05);
  border: 1px solid rgba(51, 92, 255, 0.1);
  font-size: 0.85rem;
  color: var(--form-muted);
}

/* Sidebar checkout */
.sidebar-sticky {
  position: sticky;
  top: 1.25rem;
}

.sidebar-stack > * + * {
  margin-top: 1rem;
}

@media (max-width: 991.98px) {
  .sidebar-sticky {
    position: static;
  }
}

.checkout-sidebar .card-border {
  border-radius: 16px;
}

.checkout-sidebar .shadow-soft {
  box-shadow: 0 8px 30px rgba(2, 18, 89, 0.08);
}

.checkout-sidebar__card {
  padding: 1.15rem 1.2rem;
}

.checkout-sidebar__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--checkout-accent, #1e3a5f);
  margin-bottom: 1rem;
}

.checkout-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.checkout-timeline__item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  position: relative;
  padding-bottom: 1rem;
}

.checkout-timeline__item:last-child {
  padding-bottom: 0;
}

.checkout-timeline__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 0.95rem;
  top: 2rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(51, 92, 255, 0.22) 0%, rgba(51, 92, 255, 0.06) 100%);
  transform: translateX(-50%);
}

.checkout-timeline__item.is-done:not(:last-child)::before {
  background: linear-gradient(180deg, rgba(0, 194, 168, 0.45) 0%, rgba(0, 194, 168, 0.12) 100%);
}

.checkout-timeline__marker {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #f2f4f7;
  color: #98a2b3;
  font-size: 0.88rem;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--checkout-border, rgba(16, 24, 40, 0.08));
  z-index: 1;
}

.checkout-timeline__content {
  min-width: 0;
  padding-top: 0.1rem;
}

.checkout-timeline__content strong {
  display: block;
  font-size: 0.88rem;
  color: #344054;
  margin-bottom: 0.15rem;
}

.checkout-timeline__desc {
  display: block;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--checkout-muted, #667085);
}

.checkout-timeline__item.is-done .checkout-timeline__marker {
  background: rgba(0, 194, 168, 0.14);
  color: #00a891;
  box-shadow: 0 0 0 1px rgba(0, 194, 168, 0.25);
}

.checkout-timeline__item.is-done .checkout-timeline__content strong {
  color: #475467;
}

.checkout-timeline__item.is-current {
  grid-template-columns: 2rem 1fr;
}

.checkout-timeline__item.is-current .checkout-timeline__marker {
  background: var(--checkout-accent, #1e3a5f);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.22);
}

.checkout-timeline__item.is-current .checkout-timeline__content {
  background: rgba(51, 92, 255, 0.05);
  border: 1px solid rgba(51, 92, 255, 0.12);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  margin: -0.35rem -0.35rem -0.35rem 0;
}

.checkout-timeline__item.is-current .checkout-timeline__content strong {
  color: var(--checkout-accent, #1e3a5f);
}

.checkout-timeline__item.is-next .checkout-timeline__marker {
  background: #fff;
  color: #c4cad4;
}

.checkout-recap-product {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--checkout-border, rgba(16, 24, 40, 0.09));
  border-radius: 12px;
  background: #fafbfc;
  margin-bottom: 0.85rem;
}

.checkout-recap-product__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(51, 92, 255, 0.08);
  border: 1px solid rgba(51, 92, 255, 0.14);
  color: var(--checkout-accent-soft, #335cff);
  font-size: 1rem;
}

.checkout-recap-product__name {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--checkout-accent, #1e3a5f);
  margin-bottom: 0.2rem;
}

.checkout-recap-product__meta {
  font-size: 0.78rem;
  color: var(--checkout-muted, #667085);
}

.checkout-recap-total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.06) 0%, rgba(51, 92, 255, 0.06) 100%);
  border: 1px solid var(--checkout-border, rgba(16, 24, 40, 0.09));
  margin-bottom: 0.75rem;
}

.checkout-recap-total-box__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--checkout-muted, #667085);
  line-height: 1.35;
  max-width: 9rem;
}

.checkout-recap-total-box__amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--checkout-accent, #1e3a5f) !important;
  line-height: 1;
  white-space: nowrap;
}

.checkout-recap-secure {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--checkout-muted, #667085);
}

.checkout-recap-secure .bi {
  color: #00a891;
  font-size: 0.95rem;
}

.checkout-sidebar__card--benefits {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.checkout-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #475467;
}

.checkout-benefits li + li {
  margin-top: 0.65rem;
}

.checkout-benefits .bi {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #00a891;
  font-size: 0.95rem;
}

.checkout-progress-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checkout-progress-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
}

.checkout-progress-item + .checkout-progress-item {
  border-top: 1px solid var(--checkout-border, rgba(16, 24, 40, 0.08));
}

.checkout-progress-item__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #f2f4f7;
  color: #98a2b3;
  font-size: 0.9rem;
}

.checkout-progress-item.is-done .checkout-progress-item__icon {
  background: rgba(0, 194, 168, 0.15);
  color: #00a891;
}

.checkout-progress-item.is-current {
  background: rgba(51, 92, 255, 0.06);
  margin: 0 -0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
}

.checkout-progress-item.is-current .checkout-progress-item__icon {
  background: var(--checkout-accent, #1e3a5f);
  color: #fff;
}

.checkout-recap-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--checkout-muted);
  margin-bottom: 0.75rem;
}

.checkout-recap-item__name {
  font-weight: 600;
  font-size: 0.92rem;
  color: #344054;
}

.checkout-recap-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1rem;
}

.checkout-recap-total strong,
.checkout-recap-total__amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e3a5f !important;
}

.checkout-sidebar__card--muted {
  background: #fafbfc;
}

@media (max-width: 575.98px) {
  .checkout-card__header,
  .checkout-card__body,
  .checkout-stepper {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .wizard-nav {
    flex-direction: column-reverse;
  }

  .wizard-nav__actions {
    flex-direction: column;
  }

  .wizard-nav__actions #wizardPrevBtn:not(.d-none) {
    position: static;
    transform: none;
    width: 100%;
  }

  .wizard-nav .btn {
    width: 100%;
    max-width: 20rem;
  }
}

@media (prefers-color-scheme: dark) {
  .checkout-page { background: #0b1020; }
  .checkout-card, .checkout-top { background: #0f172a; border-color: #202b50; }
  .checkout-card__header { background: linear-gradient(180deg, #111a33 0%, #0f172a 100%); }
  .wizard-step-intro { background: rgba(255,255,255,0.03); }
}
