/* =========================================================
   ORDER PAGE — package picker, extras, brief and ticket.
   Uses the tokens and layout (side panel + .content) from style.css.
   ========================================================= */

/* side panel: running estimate */
.otot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.otot > div { display: grid; gap: 4px; }
.otot .mono { color: var(--muted); font-size: 11px; }
.otot b { font-family: var(--f-display); font-weight: 600; font-size: 34px; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

/* phone bar: total next to the Send link */
.mbar__links a b { margin-left: 6px; font-weight: 400; color: var(--violet); }

/* ---------- packages ---------- */
.pkgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pk { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg-2); transition: border-color 0.4s var(--ease); }
.pk:hover { border-color: var(--line-2); }
.pk.is-on { border-color: var(--violet); }
.pk__pick { position: relative; display: flex; flex-direction: column; flex: 1; cursor: pointer; }
.pk__pick input { position: absolute; opacity: 0; pointer-events: none; }
.pk__stage { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #050506; }
.pk__stage img, .pk__stage video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(0.5) contrast(1.05);
  transition: filter 0.7s var(--ease), transform 1.1s var(--ease), opacity 0.5s;
}
.pk__stage video { opacity: 0; }
.pk__stage video.is-on { opacity: 1; }
.pk:hover .pk__stage img, .pk:hover .pk__stage video,
.pk.is-on .pk__stage img, .pk.is-on .pk__stage video { filter: none; transform: scale(1.03); }
.pk__pick input:focus-visible + .pk__stage { outline: 2px solid var(--violet); outline-offset: -2px; }

.pk__rec {
  position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 9px;
  height: 28px; padding: 0 10px; background: rgba(10, 10, 11, 0.72);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #f2f2ef;
  opacity: 0; transform: translateY(-4px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.pk__rec i { width: 7px; height: 7px; border-radius: 50%; background: #ff3b3b; animation: blink 1.2s steps(2) infinite; }
.pk.is-on .pk__rec { opacity: 1; transform: none; }
.pk__tick {
  position: absolute; right: 12px; top: 12px; z-index: 2; width: 28px; height: 28px; display: grid; place-items: center;
  border: 1px solid rgba(242, 242, 239, 0.45); background: rgba(10, 10, 11, 0.45); color: transparent;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.pk__tick svg { width: 14px; height: 14px; }
.pk.is-on .pk__tick { background: var(--violet); border-color: var(--violet); color: #0a0a0b; }

.pk__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 20px 16px; }
.pk__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pk__name { font-family: var(--f-display); font-weight: 600; font-size: 22px; line-height: 1.1; letter-spacing: -0.03em; }
.pk__price { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.pk__price b { margin-left: 6px; font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -0.03em; text-transform: none; color: var(--fg); transition: color 0.3s; }
.pk.is-on .pk__price b { color: var(--violet); }
.pk__spec { color: var(--fg-2); font-size: 11px; }
.pk__list { display: grid; gap: 6px; color: var(--fg-2); font-size: 14.5px; line-height: 1.45; }
.pk__list span { position: relative; display: block; padding-left: 18px; }
.pk__list span::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; background: var(--line-2); transition: background-color 0.3s; }
.pk.is-on .pk__list span::before { background: var(--violet); }
.pk__eta { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.pk__ex { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--fg-2); font-size: 11px; transition: color 0.3s, background-color 0.3s; }
.pk__ex span:last-child { color: var(--muted); transition: color 0.3s, transform 0.5s var(--ease); }
.pk__ex:hover { color: var(--fg); background: var(--bg-3); }
.pk__ex:hover span:last-child { color: var(--violet); transform: translate(2px, -2px); }
/* custom build: full-width card with no preview; the tick sits in the top right */
.pk--custom { grid-column: 1 / -1; }
.pk--custom .pk__top { padding-right: 44px; }
.pk--custom .pk__tick { right: 18px; top: 16px; border-color: var(--line-2); background: var(--bg); }
.pk--custom .pk__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 18px; }
.pk--custom .pk__pick input:focus-visible ~ .pk__body { outline: 2px solid var(--violet); outline-offset: -2px; }
@media (max-width: 720px) { .pk--custom .pk__list { grid-template-columns: 1fr; } }
.field[hidden], .ex__none[hidden] { display: none; }
.js-total .q { font-family: var(--f-mono); font-size: 0.42em; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ex__none { padding: 18px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- extras ---------- */
.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ex { position: relative; display: flex; cursor: pointer; }
.ex[hidden] { display: none; }
.ex__end { display: flex; align-items: center; gap: 12px; }
.ex__qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); background: var(--bg); }
.ex__qty button { width: 30px; height: 30px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 15px; color: var(--fg-2); transition: color 0.3s, background-color 0.3s; }
.ex__qty button:hover { color: #0a0a0b; background: var(--violet); }
.ex__qty output { min-width: 26px; text-align: center; font-family: var(--f-mono); font-size: 12.5px; color: var(--fg); font-variant-numeric: tabular-nums; }
.ex input { position: absolute; opacity: 0; pointer-events: none; }
.ex__row {
  flex: 1; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 16px 18px; border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color 0.3s, background-color 0.3s;
}
.ex:hover .ex__row { border-color: var(--line-2); }
.ex__box { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line-2); color: transparent; transition: background-color 0.3s, border-color 0.3s, color 0.3s; }
.ex__box svg { width: 12px; height: 12px; }
.ex input:checked + .ex__row { border-color: var(--violet); background: color-mix(in srgb, var(--violet) 8%, var(--bg-2)); }
.ex input:checked + .ex__row .ex__box { background: var(--violet); border-color: var(--violet); color: #0a0a0b; }
.ex input:focus-visible + .ex__row { outline: 2px solid var(--violet); outline-offset: 3px; }
.ex__name { font-size: 15.5px; line-height: 1.3; }
.ex__name small { display: block; margin-top: 3px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.ex__price { font-family: var(--f-mono); font-size: 12.5px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
/* "For" chips: which picked packages an extra covers */
.ex__for { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.ex__for[hidden], .ex__chip[hidden] { display: none; }
.ex__for > .mono { margin-right: 4px; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.ex__chip {
  padding: 5px 10px; border: 1px solid var(--line-2); background: var(--bg);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}
.ex__chip:hover { color: var(--fg); border-color: var(--fg-2); }
.ex__chip[aria-pressed="true"] { color: #0a0a0b; background: var(--violet); border-color: var(--violet); }
.ex__chip:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

/* ---------- fields ---------- */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); }
.field label em { font-style: normal; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; padding: 13px 14px;
  font: 400 16px/1.4 var(--f-body); color: var(--fg); color-scheme: dark;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 0;
  transition: border-color 0.3s, background-color 0.3s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(242, 242, 239, 0.3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); background: var(--bg-3); }
.field textarea { min-height: 104px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9b9b6' stroke-width='1.8'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.field select option { background: var(--bg-2); color: var(--fg); }
.field ::placeholder { color: var(--muted); opacity: 1; }
.field [aria-invalid='true'] { border-color: #ff3b3b; }
.field__hint { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.field__err { margin: 0; color: #ff6b6b; font-size: 13.5px; }
.pre { display: flex; }
.pre span { display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--line-2); border-right: 0; background: var(--bg-3); font-family: var(--f-mono); color: var(--fg-2); }
.asec__head p b { color: var(--fg); font-weight: 500; }

/* ---------- send + ticket ---------- */
.send { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 28px; align-items: start; }
.tk { padding: 22px; border: 1px solid var(--violet); background: var(--bg-2); box-shadow: 0 0 60px -20px var(--violet-glow); }
.tk__label { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 16px; color: var(--muted); font-size: 11px; }
.tk__label span:last-child { color: var(--fg); }
.tk__lines { margin: 0 0 16px; display: grid; gap: 9px; }
.tk__lines div { display: flex; justify-content: space-between; gap: 14px; font-size: 15px; color: var(--fg-2); }
.tk__lines dt, .tk__lines dd { margin: 0; }
.tk__lines dd { color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.tk__total .mono { color: var(--muted); font-size: 11px; }
.tk__total b { font-family: var(--f-display); font-weight: 600; font-size: 56px; line-height: 1; letter-spacing: -0.05em; color: var(--violet); font-variant-numeric: tabular-nums; }
.tk__eta { margin: 10px 0 20px; color: var(--muted); font-size: 11px; }
.tk .btn { width: 100%; justify-content: space-between; }
.tk__fine { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.tk__result { margin-top: 16px; padding: 14px 16px; display: grid; gap: 12px; border-left: 2px solid var(--violet); background: var(--bg-3); color: var(--fg-2); font-size: 14.5px; }
.tk__result[hidden] { display: none; }
.tk__result strong { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg); }
.tk__result .btn { justify-content: space-between; }
.tk details { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.tk summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: var(--muted); font-size: 11px; transition: color 0.3s; }
.tk summary::-webkit-details-marker { display: none; }
.tk summary::after { content: '+'; font-family: var(--f-mono); font-size: 15px; line-height: 1; color: var(--muted); transition: color 0.3s; }
.tk summary:hover, .tk summary:hover::after { color: var(--fg); }
.tk details[open] summary::after { content: '\2212'; color: var(--violet); }
.tk textarea {
  width: 100%; margin-top: 10px; padding: 10px; resize: vertical;
  font: 400 12px/1.55 var(--f-mono); color: var(--fg-2); background: var(--bg); border: 1px solid var(--line-2); border-radius: 0;
}

/* ---------- faq ---------- */
.faq { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--line); }
.faq li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq b { display: block; margin-bottom: 6px; font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.faq p { margin: 0; color: var(--fg-2); font-size: 15px; max-width: 52ch; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .send { grid-template-columns: 1fr; }
}
@media (max-width: 999px) {
  body[data-page='order'] .side__foot { display: none; }
}
@media (max-width: 720px) {
  .pkgs, .extras, .fields, .faq { grid-template-columns: 1fr; }
  .tk__total b { font-size: 48px; }
}
