@font-face {
  font-family: Vazirmatn;
  src: url("../../../assets/fonts/Vazirmatn-wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

body.order-page { background: var(--mist); padding-block-end: 92px; }
.order-page .footer { margin-block-start: 0; }
.order-page button,
.order-page [role="button"] { touch-action: manipulation; }
.order-page input,
.order-page select,
.order-page textarea { font-size: 16px; }

.order-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(44px, 7vw, 76px) 34px;
  background: var(--navy);
  color: var(--white);
}
.order-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, transparent 0 68%, rgba(227, 192, 120, .07) 68% 69%, transparent 69%),
    radial-gradient(circle at 85% 10%, rgba(42, 62, 99, .95), transparent 42%);
  pointer-events: none;
}
.order-hero__inner { position: relative; max-width: 820px; }
.order-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 18px; color: rgba(255, 255, 255, .7); font-size: 13px; }
.order-breadcrumb a:hover { color: var(--gold-light); }
.order-hero h1 { max-width: 700px; color: var(--white); }
.order-hero__lead { max-width: 720px; margin-block-start: 12px; color: rgba(255, 255, 255, .78); font-size: 16px; }
.order-trust {
  display: grid;
  gap: 10px;
  margin-block-start: 24px;
}
.order-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: rgba(255, 255, 255, .9);
  font-size: 13px;
  font-weight: 600;
}
.order-trust svg { flex: none; color: var(--gold-light); }

.order-shell { padding-block: 30px var(--gap-section); }
.order-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-block-end: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(201, 162, 75, .35);
  border-radius: var(--r-sm);
  background: var(--mist-2);
  color: var(--navy);
  font-size: 14px;
}
.order-notice svg { flex: none; margin-block-start: 4px; color: var(--gold-ink); }
.order-layout { display: grid; gap: 22px; align-items: start; }
.order-form { min-width: 0; }

.order-section {
  position: relative;
  margin-block-end: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.order-section__head { display: flex; align-items: flex-start; gap: 12px; margin-block-end: 20px; }
.order-section__head h2 { font-size: 19px; }
.order-section__head p { margin-block-start: 4px; color: var(--muted); font-size: 13px; }
.order-section__num {
  display: grid;
  flex: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold-light);
  font-weight: 800;
}
.order-grid { display: grid; gap: 15px; }
.order-grid--contact { grid-template-columns: 1fr; }
.order-grid--two { grid-template-columns: 1fr; }
.field label,
.field legend { display: inline-flex; align-items: center; gap: 5px; }
.field__required { color: #C2410C; font-weight: 800; }
.field .err { min-height: 20px; margin: 0; }
.field textarea { min-height: 104px; }
.field select { min-height: 53px; }
.field input { min-height: 53px; }
.field input[type="file"] { min-height: 0; }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #C2410C; box-shadow: 0 0 0 3px rgba(194, 65, 12, .1); }
.field--full { grid-column: 1 / -1; }

.rows-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-block-end: 14px; }
.rows-count { color: var(--muted); font-size: 13px; }
.order-items { display: grid; gap: 14px; }
.order-item {
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--mist-2);
}
.order-item:focus-within { border-color: rgba(201, 162, 75, .7); box-shadow: 0 0 0 3px rgba(201, 162, 75, .1); }
.order-item__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 15px;
  border-block-end: 1px solid var(--line);
  background: var(--white);
}
.order-item__title { display: flex; align-items: center; gap: 9px; }
.order-item__title strong { font-size: 15px; }
.order-item__badge {
  display: grid;
  min-width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 800;
}
.order-item__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.text-action {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.text-action:hover { border-color: var(--gold); background: var(--mist); }
.text-action--danger { color: #C2410C; }
.text-action--danger:hover { border-color: #C2410C; background: var(--mist); }
.order-item__body { padding: 16px; }
.segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-block-end: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}
.segment label { position: relative; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment span {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.segment input:checked + span { background: var(--navy); color: var(--white); box-shadow: var(--shadow-card); }
.segment input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.item-fields { display: grid; gap: 12px; }
.item-fields .field label { font-size: 12px; }
.item-fields .field input,
.item-fields .field select { min-height: 48px; padding: 11px 12px; }
.map-fields { display: grid; gap: 12px; margin-block-start: 14px; padding-block-start: 14px; border-block-start: 1px solid var(--line); }
.map-hint { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.services-toggle { margin-block-start: 16px; }
.services-panel { margin-block-start: 10px; padding: 14px; border: 1px dashed rgba(18, 35, 63, .2); border-radius: 14px; background: var(--white); }
.service-option + .service-option { margin-block-start: 12px; padding-block-start: 12px; border-block-start: 1px solid var(--line); }
.checkline { display: flex; align-items: center; gap: 9px; min-height: 44px; font-size: 13px; font-weight: 700; cursor: pointer; }
.checkline input { width: 20px; height: 20px; accent-color: var(--navy); }
.service-detail { margin-inline-start: 29px; padding: 10px 0 2px; }
.service-detail fieldset { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.service-detail legend { margin-block-end: 6px; font-size: 12px; font-weight: 700; }
.radio-line { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 12px; cursor: pointer; }
.radio-line input { width: 18px; height: 18px; accent-color: var(--navy); }
.service-note { margin-block-start: 8px; color: #C2410C; font-size: 12px; }
.item-note { margin-block-start: 14px; }
.item-output {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 16px -16px -16px;
  padding: 12px 16px;
  border-block-start: 1px solid var(--line);
  background: var(--white);
  font-size: 13px;
}
.item-output strong { color: var(--navy); }
.quote-badge { color: var(--gold-ink); font-weight: 800; }
.add-row { margin-block-start: 14px; }

.upload-zone {
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 22px;
  border: 1.5px dashed rgba(18, 35, 63, .28);
  border-radius: var(--r-sm);
  background: var(--mist-2);
  text-align: center;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.upload-zone.is-over { border-color: var(--gold); background: var(--mist); }
.upload-zone svg { margin-inline: auto; color: var(--gold-ink); }
.upload-zone strong { display: block; margin-block-start: 8px; }
.upload-zone p { margin-block-start: 3px; color: var(--muted); font-size: 12px; }
.upload-zone label { margin-block-start: 12px; }
.file-list { display: grid; min-height: 0; gap: 8px; margin-block-start: 12px; }
.file-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.file-card__preview { display: grid; width: 42px; height: 42px; place-items: center; overflow: hidden; border-radius: 9px; background: var(--mist); color: var(--gold-ink); }
.file-card__preview img { width: 100%; height: 100%; object-fit: cover; }
.file-card__meta { min-width: 0; }
.file-card__meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.file-card__meta span { color: var(--muted); font-size: 11px; }
.file-card__progress { height: 3px; margin-block-start: 5px; overflow: hidden; border-radius: var(--r-pill); background: var(--line); }
.file-card__progress i { display: block; width: 100%; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .2s var(--ease); }

.delivery-cards { display: grid; gap: 10px; }
.delivery-card { position: relative; display: block; cursor: pointer; }
.delivery-card input { position: absolute; opacity: 0; pointer-events: none; }
.delivery-card__surface { display: block; min-height: 100%; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.delivery-card__top { display: flex; justify-content: space-between; gap: 10px; }
.delivery-card__top strong { font-size: 14px; }
.delivery-card__days { color: var(--gold-ink); font-size: 13px; font-weight: 800; }
.delivery-card__surface > span { display: block; margin-block-start: 7px; color: var(--muted); font-size: 12px; }
.delivery-card__price-note { color: var(--navy) !important; font-weight: 600; }
.delivery-card input:checked + .delivery-card__surface { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 75, .12); transform: translateY(-1px); }
.delivery-card input:focus-visible + .delivery-card__surface { outline: 2px solid var(--gold); outline-offset: 3px; }
.delivery-method { display: grid; gap: 8px; margin-block-start: 18px; }
.delivery-method fieldset { border: 0; padding: 0; margin: 0; }
.delivery-method legend { margin-block-end: 8px; font-size: 13px; font-weight: 700; }
.delivery-method__options { display: flex; flex-wrap: wrap; gap: 12px; }

.date-field { position: relative; }
.jalali-picker { position: absolute; z-index: 40; inset-block-start: calc(100% + 8px); inset-inline: 0; width: min(340px, calc(100vw - 64px)); padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); box-shadow: var(--shadow-lift); }
.jalali-picker__head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 6px; }
.jalali-picker__head strong { text-align: center; font-size: 14px; }
.jalali-picker__head button,
.jalali-picker__grid button { min-width: 44px; min-height: 44px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.jalali-picker__head button:hover,
.jalali-picker__grid button:hover:not([disabled]) { background: var(--mist); }
.jalali-picker__week,
.jalali-picker__grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.jalali-picker__week { margin-block: 8px 3px; color: var(--muted); font-size: 11px; }
.jalali-picker__grid button { min-width: 0; font-size: 12px; }
.jalali-picker__grid button[disabled] { color: var(--muted); cursor: not-allowed; opacity: .55; text-decoration: line-through; }
.jalali-picker__grid button[aria-current="date"] { background: var(--navy); color: var(--white); }
.jalali-picker p { margin-block-start: 8px; color: var(--muted); font-size: 10px; line-height: 1.7; }

.order-summary { display: none; }
.summary-card { overflow: hidden; border-radius: var(--r-md); background: var(--navy); color: var(--white); box-shadow: var(--shadow-lift); }
.summary-card__head { padding: 18px 20px; border-block-end: 1px solid rgba(255, 255, 255, .12); }
.summary-card__head h2 { color: var(--white); font-size: 19px; }
.summary-card__head p { color: rgba(255, 255, 255, .62); font-size: 12px; }
.summary-items { max-height: 240px; overflow: auto; padding: 8px 20px; }
.summary-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding-block: 10px; border-block-end: 1px solid rgba(255, 255, 255, .1); font-size: 12px; }
.summary-item span { color: rgba(255, 255, 255, .66); }
.summary-empty { padding-block: 18px; color: rgba(255, 255, 255, .6); font-size: 12px; text-align: center; }
.summary-totals { display: grid; gap: 8px; padding: 16px 20px; }
.summary-totals > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.summary-totals .summary-total { padding-block-start: 10px; border-block-start: 1px solid rgba(255, 255, 255, .14); }
.summary-total strong { color: var(--gold-light); font-size: 18px; }
.summary-inquiry { margin: 0 20px 12px; padding: 10px 12px; border-radius: 10px; background: rgba(251, 191, 36, .12); color: var(--gold-light); font-size: 11px; }
.summary-disclaimer { padding: 0 20px 16px; color: rgba(255, 255, 255, .62); font-size: 10px; line-height: 1.75; }
.summary-action { padding: 0 20px 20px; }
.summary-server-error { margin-block-end: 10px; color: #FCA5A5; font-size: 12px; }

.mobile-summary {
  position: fixed;
  z-index: 45;
  inset-inline: 0;
  inset-block-end: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border-block-start: 1px solid rgba(255, 255, 255, .14);
  background: rgba(12, 26, 49, .97);
  color: var(--white);
  box-shadow: 0 -12px 32px rgba(3, 10, 24, .2);
}
.mobile-summary__info { min-width: 0; border: 0; background: transparent; color: inherit; text-align: right; cursor: pointer; }
.mobile-summary__info span { display: block; color: rgba(255, 255, 255, .65); font-size: 11px; }
.mobile-summary__info strong { display: block; overflow: hidden; color: var(--gold-light); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-summary .btn { min-height: 50px; padding: 12px 18px; }

.summary-sheet { position: fixed; z-index: 80; inset: 0; display: grid; align-items: end; }
.summary-sheet__backdrop { position: absolute; inset: 0; border: 0; background: rgba(3, 10, 24, .6); cursor: pointer; }
.summary-sheet__panel { position: relative; max-height: min(82dvh, 720px); overflow: auto; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--navy); color: var(--white); box-shadow: var(--shadow-lift); }
.summary-sheet__close { display: grid; width: 44px; height: 44px; margin-inline-start: auto; place-items: center; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(255, 255, 255, .06); color: var(--white); cursor: pointer; }

.submit-state { min-height: 36px; margin-block-start: 10px; }
.success-card { max-width: 760px; margin-inline: auto; padding: 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-lift); text-align: center; }
.success-card__icon { display: grid; width: 64px; height: 64px; margin-inline: auto; place-items: center; border-radius: 50%; background: var(--navy); color: var(--gold-light); }
.success-card h2 { margin-block-start: 16px; }
.success-card > p { margin-block-start: 8px; color: var(--muted); }
.tracking { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 20px auto; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--mist); }
.tracking code { direction: ltr; color: var(--navy); font-family: ui-monospace, monospace; font-size: 18px; font-weight: 800; }
.success-summary { margin-block: 20px; text-align: right; }

.after-order { background: var(--white); }
.after-order__grid { display: grid; gap: 14px; }
.after-step { padding: 20px; border-inline-start: 3px solid var(--gold); background: var(--mist-2); }
.after-step strong { display: block; }
.after-step p { margin-block-start: 4px; color: var(--muted); font-size: 13px; }
.order-faq { display: grid; gap: 8px; margin-block-start: 26px; }
.order-faq details { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.order-faq summary { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-weight: 700; cursor: pointer; }
.order-faq summary::after { content: "+"; color: var(--gold-ink); font-size: 22px; }
.order-faq details[open] summary::after { content: "−"; }
.order-faq p { padding: 0 16px 16px; color: var(--muted); font-size: 14px; }
.order-contact-alt { display: grid; gap: 16px; margin-block-start: 28px; padding: 22px; border-radius: var(--r-md); background: var(--navy); color: var(--white); }
.order-contact-alt h2 { color: var(--white); }
.order-contact-alt p { color: rgba(255, 255, 255, .7); }

@media (min-width: 600px) {
  .order-trust { grid-template-columns: repeat(3, 1fr); }
  .order-grid--contact { grid-template-columns: repeat(2, 1fr); }
  .order-grid--two { grid-template-columns: repeat(2, 1fr); }
  .item-fields { grid-template-columns: 1.25fr .8fr repeat(3, minmax(92px, .7fr)); }
  .map-fields { grid-template-columns: 1fr 1fr; }
  .delivery-cards { grid-template-columns: repeat(3, 1fr); }
  .after-order__grid { grid-template-columns: repeat(3, 1fr); }
  .order-contact-alt { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}

@media (min-width: 1000px) {
  body.order-page { padding-block-end: 0; }
  .order-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; }
  .order-summary { position: sticky; inset-block-start: calc(var(--header-h) + 16px); display: block; }
  .mobile-summary { display: none; }
  .order-section { padding: 26px; }
  .order-section__head h2 { font-size: 22px; }
  .order-item__body { padding: 18px; }
  .item-output { margin: 18px -18px -18px; padding: 13px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .order-page *, .order-page *::before, .order-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .mobile-summary { background: var(--navy-deep); }
}
