/* ЦОУ Kuzet — escort request form (wizard, route picker, request document).
 * Desktop metrics are the 1370px Figma frame; the blog scales it with `zoom`. */

.wizard .label { font-size: 14px; line-height: 16px; font-weight: 500; }
.wizard .btn--ghost { border: 1px solid #3a3a3a; color: #6b6b6b; font-size: 14px; background: none; }
.wizard .btn--ghost:not(:disabled):hover { border-color: #fff; color: #fff; }
.wizard .btn:disabled { cursor: default; }

.wizard {
  position: relative;
  margin-top: 70px;
  height: 800px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, #0f1212 0%, #0d1010 60%, #0c0e0e 100%);
  overflow: hidden;
  isolation: isolate;
}
.wizard__orb {
  position: absolute; left: 1055px; top: 50px; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .13), rgba(var(--accent-rgb), 0) 68%);
  filter: blur(40px); z-index: -1; pointer-events: none;
}
.wizard__steps { position: relative; height: 713px; }
.step { position: absolute; inset: 0; padding: 50px; visibility: hidden; opacity: 0; }
.step.is-active { visibility: visible; opacity: 1; }
.step__head { display: flex; gap: 30px; }
.step__num {
  flex: none; width: 49px; height: 49px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(var(--accent-rgb), .55);
  color: var(--accent); font-size: 20px; line-height: 23px; font-weight: 300;
}
.step__title { display: flex; align-items: center; gap: 10px; font-size: 20px; line-height: 23px; font-weight: 500; }
.step__title [data-icon] { font-size: 23px; }
.step__desc { margin-top: 10px; font-size: 14px; line-height: 16px; font-weight: 300; color: #9e9e9e; }
.step1 { position: absolute; inset: 0; }
.step1 .label { position: absolute; top: -31px; left: 0; white-space: nowrap; }
.step1__date { position: absolute; left: 50px; top: 200px; }
.step1__time--start { position: absolute; left: 710px; top: 200px; }
.step1__time--end { position: absolute; left: 1040px; top: 200px; }
.step1__details { position: absolute; left: 710px; top: 441px; }

.cal { position: relative; width: 610px; height: 406px; border: 1px solid var(--line-2); border-radius: 20px; padding: 40px 0 0 100px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; width: 410px; height: 19px; }
.cal__month { display: flex; align-items: center; gap: 15px; font-size: 16px; line-height: 19px; font-weight: 500; }
.cal__month [data-icon] { font-size: 19px; }
.cal__month span { text-transform: capitalize; min-width: 90px; text-align: left; }
.cal__nav { display: flex; gap: 30px; }
.cal__nav button { display: grid; place-items: center; width: 19px; height: 19px; font-size: 19px; color: #ddd; transition: color .3s, transform .3s var(--ease); }
.cal__nav button:hover { color: var(--accent); }
.cal__nav button:active { transform: scale(.85); }
.cal__week { display: grid; grid-template-columns: repeat(7, 56px); column-gap: 3px; margin-top: 31px; }
.cal__week span { text-align: center; font-size: 12px; line-height: 14px; color: #8b8b8b; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 56px); grid-auto-rows: 46px; gap: 3px; margin-top: 20px; }
.day {
  position: relative;
  display: grid; place-items: center;
  border-radius: 8px;
  background: #000; border: 1px solid #222;
  font-size: 14px; line-height: 16px; font-weight: 400;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.day:hover:not(:disabled) { border-color: var(--accent); }
.day:active:not(:disabled) { transform: scale(.93); }
.day.is-today::after { content: ""; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.day.is-sel { background: #fff; color: #000; font-weight: 700; border-color: #fff; }
.day:disabled { color: #3b3b3b; cursor: not-allowed; }
.day--pad { visibility: hidden; }

.timebox { position: relative; display: flex; width: 280px; height: 160px; padding: 50px 0 0 30px; border: 1px solid var(--line-2); border-radius: 20px; }
.spin { position: relative; width: 95px; height: 60px; border: 1px solid var(--line-2); border-radius: 10px; transition: border-color .3s; }
.spin:focus-within { border-color: var(--accent); }
.spin__lbl { position: absolute; left: 0; top: -24px; font-size: 12px; color: transparent; }
.spin input { width: 60px; height: 100%; padding: 0 0 0 19px; background: none; border: 0; outline: 0; font-size: 16px; line-height: 19px; color: #fff; }
.spin input::placeholder { color: #5d5d5d; }
.spin button { position: absolute; right: 14px; width: 10px; height: 10px; font-size: 10px; color: #8a8a8a; display: grid; place-items: center; transition: color .25s; }
.spin button:hover { color: #fff; }
.spin button[data-d="1"] { top: 15px; transform: rotate(180deg); }
.spin button[data-d="-1"] { top: 34px; }
.timebox__colon { width: 30px; text-align: center; line-height: 60px; font-size: 20px; color: transparent; }

.details { position: relative; width: 610px; height: 165px; border: 1px solid var(--line-2); border-radius: 20px; padding: 30px; }
.check { position: relative; display: grid; grid-template-columns: 23px 1fr; column-gap: 15px; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { grid-row: span 2; width: 23px; height: 23px; border: 1.5px solid var(--accent); border-radius: 5px; transition: background .3s; position: relative; }
.check__box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease); }
.check input:checked + .check__box { background: var(--accent); }
.check input:checked + .check__box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid rgba(var(--accent-rgb), .5); outline-offset: 2px; }
.check__title { font-size: 16px; line-height: 19px; font-weight: 500; padding-top: 2px; }
.check__desc { margin-top: 12px; font-size: 14px; line-height: 16px; font-weight: 300; color: #858585; }
.details__note { position: absolute; left: 30px; top: 121px; display: flex; align-items: center; gap: 10px; font-size: 12px; line-height: 14px; color: #eee; }
.details__note [data-icon] { font-size: 14px; }
.details__note a { color: var(--accent); white-space: nowrap; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 50px; margin-top: 70px; }
.field { display: grid; gap: 15px; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; height: 60px; padding: 0 20px;
  background: rgba(0,0,0,.35); border: 1px solid var(--line-2); border-radius: 10px;
  outline: 0; font-size: 16px; font-weight: 300;
  transition: border-color .3s, background .3s;
}
.field textarea { height: auto; padding: 18px 20px; resize: none; }
.field input::placeholder, .field textarea::placeholder { color: #5d5d5d; }
.field input:focus, .field textarea:focus { border-color: var(--accent); background: rgba(0,0,0,.6); }
.field.is-error input { border-color: #c0392b; animation: shake .4s; }
.timebox.is-error { border-color: #c0392b; animation: shake .4s; }
.timebox__native { display: none; }
@media (max-width: 1024px) {
  /* the whole box is one tap target for the system time wheel; 16px keeps iOS from zooming */
  .timebox__native { display: block; position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: pointer; -webkit-appearance: none; appearance: none; }
}
.timebox.is-error .spin { border-color: rgba(192,57,43,.6); }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.seg { display: flex; gap: 6px; padding: 6px; border: 1px solid var(--line-2); border-radius: 12px; }
.seg button { flex: 1; height: 48px; border-radius: 8px; font-size: 15px; color: #9e9e9e; transition: background .3s, color .3s; }
.seg button:hover { color: #fff; }
.seg button.is-on { background: #fff; color: #000; font-weight: 500; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 30px; margin-top: 45px; }
.grid4 .field { gap: 12px; }
.grid4 .field input { height: 52px; }
.grid4 .seg { padding: 4px; }
.grid4 .seg button { height: 42px; font-size: 14px; }
.field--x2 { grid-column: span 2; }
.grid4:not(.is-inside) [data-inside], .grid4:not(.is-inside) .if-in, .grid4.is-inside .if-out { display: none; }
.field--x4 { grid-column: 1 / -1; }
.hint { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 14px; color: #858585; }
.hint [data-icon] { flex: none; font-size: 14px; }
.counter { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 165px; padding: 30px; border: 1px solid var(--line-2); border-radius: 20px; }
.counter__title { font-size: 16px; line-height: 19px; font-weight: 500; }
.counter__desc { margin-top: 12px; font-size: 14px; line-height: 16px; font-weight: 300; color: #858585; }
.counter__ctl { flex: none; display: flex; align-items: center; gap: 14px; }
.counter__ctl button { width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; color: #fff; transition: background .3s, color .3s; }
.counter__ctl button:hover:not(:disabled) { background: var(--accent); color: #000; }
.counter__ctl button:disabled { color: #3b3b3b; cursor: default; }
.counter__ctl output { display: grid; place-items: center; width: 72px; height: 52px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 22px; }
.summary__text { min-height: 120px; padding: 20px; border: 1px dashed var(--line-2); border-radius: 10px; font-size: 14px; line-height: 22px; color: #cfcfcf; white-space: pre-line; }
.step--done { display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; }
.step--done [data-icon] { font-size: 72px; color: var(--accent); }
.step--done h3 { font-size: 32px; font-weight: 400; }
.step--done p { max-width: 640px; color: #9e9e9e; font-size: 16px; line-height: 22px; }
.step__wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--accent); font-size: 16px; transition: opacity .3s; }
.step__wa [data-icon] { font-size: 22px; color: inherit; }
.step__wa:hover { opacity: .75; }
.step__acts { display: flex; align-items: center; gap: 28px; margin-top: 8px; }
.step__acts .step__wa { margin-top: 0; }

/* ---------- route picker ---------- */
.field { position: relative; }
.field__map { position: absolute; top: -2px; right: 0; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--accent); transition: opacity .3s; }
.field__map [data-icon] { font-size: 15px; }
.field__map:hover { opacity: .7; }
.mapm { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 30px; background: rgba(0,0,0,.82); backdrop-filter: blur(6px); }
.mapm[hidden] { display: none; }
.mapm__box { display: grid; grid-template-rows: auto auto 1fr auto; gap: 18px; width: min(1100px, 100%); height: min(760px, 100%); padding: 28px; border: 1px solid rgba(255,255,255,.14); border-radius: 30px; background: #0d1010; }
.mapm__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mapm__head h3 { font-size: 20px; line-height: 24px; font-weight: 500; }
.mapm__tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.mapm__tabs b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #000; font-size: 12px; }
.mapm__map { min-height: 0; border-radius: 18px; overflow: hidden; background: #111; }
/* OSM tiles are light; inverted to sit in the dark design */
.mapm__map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9) saturate(.6); }
.mapm__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mapm__foot .hint { font-size: 14px; line-height: 18px; color: #cfcfcf; }
.mapm__pin i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.mapm__pin--to i { background: #fff; }
.mapm__pin span { transform: rotate(45deg); color: #000; font-size: 14px; font-weight: 700; font-style: normal; }
.leaflet-container .mapm__pin { font-family: var(--font); }
.summary__text { overflow-wrap: anywhere; }
.doc__sec dd a { color: #3d8584; }

/* ---------- request document ---------- */
.docm { position: fixed; inset: 0; z-index: 200; overflow-y: auto; padding: 90px 20px 60px; background: rgba(0,0,0,.82); backdrop-filter: blur(6px); }
.docm[hidden] { display: none; }
.docm__bar { position: fixed; top: 20px; right: 24px; display: flex; align-items: center; gap: 14px; z-index: 1; }
.docm__close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); font-size: 26px; line-height: 1; color: #fff; transition: background .3s, color .3s; }
.docm__close:hover { background: #fff; color: #000; }
.doc { width: 760px; max-width: 100%; margin: 0 auto; background: #fff; color: #111; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); font-weight: 400; }
.doc__head { display: flex; align-items: center; justify-content: space-between; padding: 28px 44px; background: #0d1010; color: #fff; border-bottom: 4px solid var(--accent); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc__head img { width: 94px; height: 40px; }
.doc__meta { display: grid; justify-items: end; gap: 6px; font-size: 13px; color: #b5b5b5; }
.doc__meta b { color: #fff; font-weight: 600; letter-spacing: .04em; }
.doc__title { padding: 36px 44px 0; font-size: 26px; line-height: 32px; font-weight: 500; }
.doc__sub { padding: 8px 44px 0; font-size: 13px; color: #6b6b6b; }
.doc__sec { margin: 26px 44px 0; padding-top: 22px; border-top: 1px solid #e3e3e3; }
.doc__sec h3 { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #3d8584; }
.doc__sec dl { display: grid; grid-template-columns: 210px 1fr; gap: 10px 20px; margin-top: 14px; font-size: 15px; line-height: 20px; }
.doc__sec dt { color: #7a7a7a; }
.doc__sec dd { margin: 0; font-weight: 500; white-space: pre-line; word-break: break-word; }
.doc__foot { margin-top: 34px; padding: 22px 44px 28px; background: #f4f6f6; font-size: 13px; line-height: 19px; color: #555; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc__foot b { color: #111; }
@media print {
  @page { size: A4; margin: 12mm; }
  .is-doc-print body { background: #fff !important; }
  .is-doc-print body > :not(.docm) { display: none !important; }
  .docm { position: static; padding: 0; background: none; backdrop-filter: none; overflow: visible; }
  .docm__bar { display: none; }
  .doc { width: auto; border-radius: 0; box-shadow: none; }
}

.wizard__foot { position: absolute; left: 0; right: 0; bottom: 0; height: 87px; background: rgba(255,255,255,.03); }
.wizard__btns { position: absolute; left: 528px; top: 10px; display: flex; gap: 15px; }
.wizard__btns .btn { width: 150px; height: 46px; border-radius: 23px; padding: 0; }
.wizard__progress { position: absolute; left: 50px; top: 71px; display: flex; gap: 6px; }
.wizard__progress i { position: relative; width: 313px; height: 6px; border-radius: 6px; background: #3a3a3a; overflow: hidden; }
.wizard__progress i::after { content: ""; position: absolute; inset: 0; background: var(--accent); border-radius: inherit; transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.wizard__progress i.is-on::after { transform: scaleX(1); }
.wizard__count { display: none; }
.field__err { position: absolute; left: 0; top: 100%; margin-top: 6px; font-size: 12px; line-height: 14px; color: #e46262; white-space: nowrap; }

@media (max-width: 1024px) {
  .wizard { height: auto; border-radius: 28px; overflow: clip; }
  .wizard__steps { height: auto; display: grid; }
  .step { position: relative; inset: auto; padding: 24px 16px; grid-area: 1 / 1; }
  .step:not(.is-active) { display: none; }
  .step__head { gap: 14px; }
  .step__num { width: 40px; height: 40px; }
  .step__title { font-size: 18px; }
  .step1 { position: relative; display: grid; gap: 44px; margin-top: 48px; }
  .step1 > div { position: relative !important; left: auto !important; top: auto !important; }
  .cal { width: 100%; height: auto; padding: 20px 12px 16px; }
  .cal__head, .cal__week, .cal__grid { width: 100%; }
  .cal__week, .cal__grid { grid-template-columns: repeat(7, 1fr); }
  .cal__grid { grid-auto-rows: 42px; }
  .timebox { width: 100%; height: 110px; padding: 24px 16px; }
  .details { width: 100%; height: auto; padding: 20px; }
  .details__note { position: relative; left: auto; top: auto; margin-top: 20px; }
  /* phones: the "call us" note is easier to read, and its number is a full-size tap target without looking bigger */
  .details__note { flex-wrap: wrap; align-items: center; font-size: 14px; line-height: 19px; }
  .details__note a { display: inline-block; padding: 12px 0; margin: -12px 0; }
  .grid2 { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .grid4 { grid-template-columns: 1fr 1fr; gap: 20px 12px; margin-top: 32px; }
  .grid4 > .field:not([data-inside]) { grid-column: 1 / -1; }
  .counter { height: auto; padding: 20px; flex-wrap: wrap; }
  .docm { padding: 76px 10px 30px; }
  .docm__bar { top: 14px; right: 12px; }
  .doc__head { padding: 20px; }
  .doc__title { padding: 26px 20px 0; font-size: 21px; line-height: 27px; }
  .doc__sub { padding: 8px 20px 0; }
  .doc__sec { margin: 20px 20px 0; }
  .doc__sec dl { grid-template-columns: 1fr; gap: 2px; }
  .doc__sec dd { margin-bottom: 10px; }
  .doc__foot { padding: 18px 20px 22px; }
  .step__acts { flex-direction: column; gap: 16px; }
  .mapm { padding: 0; }
  .mapm__box { height: 100%; padding: 16px; border-radius: 0; gap: 12px; }
  .mapm__head h3 { font-size: 16px; line-height: 20px; }
  .mapm__tabs button { font-size: 13px; }
  .mapm__foot { flex-direction: column; align-items: stretch; }
  .seg { flex-wrap: wrap; }
  /* app-style step bar: a floating card pinned to the bottom of the screen while the form is on it */
  .wizard__foot {
    position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 5; height: auto;
    display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 12px;
    margin: 0 10px 10px; padding: 12px;
    background: rgba(20,24,24,.92); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(255,255,255,.1); border-radius: 22px;
    box-shadow: 0 14px 40px rgba(0,0,0,.6);
  }
  .wizard__count { display: block; grid-row: 1; padding-left: 4px; font-size: 12px; font-weight: 500; color: #9e9e9e; white-space: nowrap; }
  .wizard__progress { position: relative; left: auto; top: auto; grid-row: 1; gap: 4px; }
  .wizard__progress i { flex: 1; width: auto; height: 4px; background: #2e3333; }
  .wizard__btns { position: relative; left: auto; top: auto; grid-column: 1 / -1; display: grid; grid-template-columns: 52px 1fr; gap: 8px; }
  .wizard__btns .btn { width: 100%; height: 52px; border-radius: 16px; font-size: 15px; }
  /* back is a round arrow button, next carries the label */
  .wizard__btns [data-prev] { font-size: 0; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.04); }
  .wizard__btns [data-prev]::before { content: ""; width: 9px; height: 9px; margin-left: 4px; border: solid #e6e6e6; border-width: 0 0 2px 2px; transform: rotate(45deg); }
  .wizard__btns [data-prev]:disabled { opacity: .35; }
  .wizard__btns [data-next] { gap: 10px; font-weight: 600; }
  .wizard__btns [data-next]::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
  .field__err { position: static; margin-top: -4px; white-space: normal; font-size: 13px; }

  .cal__head { height: 40px; }
  .cal__nav { gap: 6px; }
  .cal__nav button { width: 40px; height: 40px; }
  .spin { flex: 1; width: auto; }
  .spin input { width: 100%; padding-right: 36px; }
  .spin button { right: 4px; width: 32px; height: 28px; font-size: 12px; }
  .spin button[data-d="1"] { top: 2px; }
  .spin button[data-d="-1"] { top: 30px; }
  .timebox { gap: 10px; }
  .timebox__colon { display: none; }
  .counter__ctl button { width: 44px; height: 44px; }
  .wizard__orb { left: 40%; }
}
