/* ==========================================================================
   Formulaire de commande Wasfa — design repris de la landing auto-école
   (primaire teal #08785e, prix vert #096d53, focus champ violet #ae43ff),
   adapté en français et en LTR.
   ========================================================================== */
.order-section { background: #fff; border-top: 1px solid #dce9df; scroll-margin-top: 80px; }
.order-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

.offer-copy { padding-top: 10px; }
.offer-copy .eyebrow { color: #08785e; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; }
.offer-copy h2 { font-size: 40px; line-height: 1.15; margin: 12px 0 0; }
.offer-copy .offer-price { font-size: 62px; line-height: 1.3; font-weight: 700; color: #096d53; margin: 22px 0 14px; }
.offer-copy .offer-price span { font-size: 18px; font-weight: 500; white-space: nowrap; }
.offer-copy > p:not(.eyebrow) { font-size: 19px; max-width: 520px; margin: 0 0 10px; color: #2c4a3b; }
.order-ship, .order-bonus { font-size: 17px; }
.order-ship b, .order-bonus b { color: #183c2c; }
.order-section .checks li { color: #2c4a3b; }
.order-section .checks span { color: #2c4a3b; }
.order-section .checks svg { color: #08785e; }

/* Carte formulaire */
.order-form { background: #fff; max-width: 616px; width: 100%; justify-self: center; }
.order-form .form-banner { display: flex; align-items: center; min-height: 62px; margin: 0 0 20px; padding: 10px 17px; border-radius: 9px; background: #f4f2f5 url('assets/form-pattern.svg') repeat; color: #292929; font-size: 22px; font-weight: 700; line-height: 1.5; }
.order-form .field { position: relative; margin: 0 0 8px; min-width: 0; }
.order-form .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.order-form .field input, .order-form .field select { width: 100%; height: 73px; min-height: 73px; border: 1px solid #e4e2e7; border-radius: 11px; font-size: 18px; font-weight: 400; color: #292929; font-family: inherit; line-height: 1.8; background-color: #fff; }
.order-form .field input { padding: 12px 18px 12px 74px; text-align: left; }
.order-form .field input::placeholder { color: #b8b6bd; opacity: 1; }
.order-form .field input:focus, .order-form .field select:focus { border-color: #ae43ff; outline: none; box-shadow: 0 0 0 1px #ae43ff; }
.order-form .field input[aria-invalid=true] { border-color: #a84225; }
.order-form .field select { padding: 12px 46px 12px 74px; text-align: left; cursor: pointer; -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23626262' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.order-form .field select:disabled { background-color: #f7f6f8; color: #a7a5ad; cursor: not-allowed; }
.order-form .field select:required:invalid { color: #b8b6bd; }
.order-form .field select option { color: #292929; }
.field-icon { position: absolute; inset-inline-start: 12px; top: 13px; width: 49px; height: 47px; border-radius: 8px; background: #f3f1f5; color: #626262; display: grid; place-items: center; pointer-events: none; }
.field-icon svg { width: 27px; height: 27px; }
.order-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-form .quantity-row { display: flex; align-items: center; justify-content: space-between; height: 112px; border: 1px solid #e4e2e7; border-radius: 11px; padding: 24px 30px; margin: 24px 0; gap: 12px; color: #292929; font-size: 19px; font-weight: 600; }
.order-form .quantity-control { display: flex; align-items: center; flex-shrink: 0; border: 1px solid #d5d9e2; border-radius: 5px; padding: 1px; direction: ltr; overflow: hidden; }
.order-form .quantity-control button { width: 46px; min-height: 46px; background: #f3f3f4; color: #303030; border: 0; border-radius: 3px; font-weight: 300; font-size: 26px; cursor: pointer; }
.order-form .quantity-control button:disabled { opacity: 1; color: #aaa; cursor: default; }
.order-form .quantity-control input { width: 60px; min-height: 46px; text-align: center; border: 0; font-family: inherit; font-size: 18px; color: #36516a; background: #fff; appearance: textfield; -moz-appearance: textfield; }
.order-form .quantity-control input::-webkit-inner-spin-button, .order-form .quantity-control input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.order-form .quantity-control input:focus { outline: 2px solid #ae43ff; outline-offset: -2px; }

.submit-order { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 62px; padding: 14px 26px; border: 0; border-radius: 10px; background: #08785e; color: #fff; font-family: inherit; font-size: 18px; font-weight: 700; line-height: 1.6; cursor: pointer; box-shadow: 0 7px 18px #08785e24; transition: background .18s, box-shadow .18s; }
.submit-order:hover { background: #066a53; }
.submit-order:disabled { opacity: .75; cursor: wait; }
.order-form .honey { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#order-result { margin-top: 18px; padding: 16px; border: 1px solid #b9d6c3; border-radius: 9px; color: #184d34; background: #edf7ef; font-size: 16px; }
#order-result[data-state=error] { background: #fff5ed; color: #813d14; border-color: #e5c0a6; }
#order-result a { color: inherit; text-underline-offset: 3px; }
.order-note { font-size: 13px; color: #607268; text-align: center; margin-top: 12px; }

@media (max-width: 900px) {
  .order-layout { grid-template-columns: 1fr; gap: 34px; }
  .offer-copy { padding-top: 0; text-align: center; }
  .offer-copy h2 { font-size: 30px; }
  .offer-copy .offer-price { font-size: clamp(42px, 12vw, 52px); margin: 16px 0 10px; }
  .offer-copy > p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
  .order-form .form-banner { font-size: 19px; }
  .order-form .quantity-row { padding: 22px 18px; }
}
@media (max-width: 380px) {
  .order-form .field-row { grid-template-columns: 1fr; gap: 0; }
  .order-form .form-banner { font-size: 17px; padding: 10px 12px; }
  .order-form .quantity-control input { width: 46px; }
  .order-form .quantity-control button { width: 40px; }
}

/* Prix réduit (8 900 DA au lieu de 12 900 DA) */
.prix-avant { font-weight: 500; opacity: .75; text-decoration-thickness: 2px; text-decoration-color: #c0392b; }
.prix-remise { display: inline-block; font-family: var(--sans, Arial, sans-serif); font-size: 14px; font-weight: 700; line-height: 1; color: #fff; background: #b42318; border-radius: 999px; padding: 5px 9px; vertical-align: middle; letter-spacing: 0; }
.offer-copy .offer-price .offer-avant { display: block; font-size: 22px; font-weight: 500; white-space: nowrap; margin-top: 2px; }
.price__avant { margin-top: 10px; font-size: 22px; color: rgba(255, 255, 255, .8); }
.price__avant .prix-avant { color: rgba(255, 255, 255, .8); text-decoration-color: #ff8a80; }

/* Mode de livraison + récapitulatif (frais selon la wilaya, 26/10/2026) */
.order-form .delivery { border: 0; margin: 16px 0 0; padding: 0; min-width: 0; }
.order-form .delivery legend { padding: 0; margin: 0 0 8px; font-size: 17px; font-weight: 600; color: #292929; }
.order-form .delivery__opts { display: grid; gap: 8px; }
.order-form .delivery__opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; border: 1px solid #e4e2e7; border-radius: 11px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.order-form .delivery__opt input { width: 20px; height: 20px; margin: 0; accent-color: #08785e; cursor: pointer; }
.order-form .delivery__opt:has(input:checked) { border-color: #08785e; background: #f0f8f4; box-shadow: 0 0 0 1px #08785e; }
.order-form .delivery__opt:has(input:focus-visible) { outline: 2px solid #ae43ff; outline-offset: 2px; }
.order-form .delivery__opt.is-off { opacity: .55; cursor: not-allowed; }
.order-form .delivery__txt { display: grid; line-height: 1.35; min-width: 0; }
.order-form .delivery__txt b { font-size: 17px; color: #292929; }
.order-form .delivery__txt small { font-size: 13px; color: #6b6874; }
.order-form .delivery__prix { font-size: 17px; font-weight: 700; color: #096d53; white-space: nowrap; }
.order-form .is-off .delivery__prix { color: #8a8790; font-weight: 500; font-size: 14px; }
.order-form .order-sum { margin: -8px 0 20px; padding: 14px 18px; border: 1px solid #dce9df; border-radius: 11px; background: #f6faf7; font-size: 16px; color: #2c4a3b; }
.order-form .order-sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.order-form .order-sum > div > span:last-child { text-align: right; }
.order-form .order-sum__total { margin-top: 6px; padding-top: 10px !important; border-top: 1px dashed #b9d6c3; font-weight: 700; font-size: 18px; color: #183c2c; }
.order-form .order-sum__total > span:last-child { color: #096d53; }
@media (max-width: 380px) {
  .order-form .delivery__opt { padding: 10px 12px; gap: 10px; }
  .order-form .delivery__txt small { display: none; }
}
