/* ═══════════════════════════════════════════════
   TALI · FORM COMPONENTS
═══════════════════════════════════════════════ */

/* ── Field labels ── */
.flabel {
  font-size: 10px; letter-spacing: 3px; color: var(--gray);
  text-transform: uppercase; margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.flabel i { font-size: 9px; }

/* ── Input row ── */
.irow {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.irow:focus-within { border-color: var(--border2); box-shadow: 0 0 0 3px rgba(34,197,94,.06); }
.irow .ico  { font-size: 14px; flex-shrink: 0; color: var(--gray2); }
.irow input { background: none; border: none; outline: none; color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 15px; width: 100%; }
.irow input::placeholder { color: var(--gray); }
.irow .suffix { font-size: 11px; color: var(--gray); white-space: nowrap; }

.irow-phone-prefix {
  display: flex; align-items: center; gap: 6px;
  padding-right: 10px; border-right: 1px solid var(--border); flex-shrink: 0;
}
.irow-phone-prefix span { font-size: 12px; color: var(--gray2); }

/* ── GPS button ── */
.gps-btn {
  background: none; border: none; cursor: pointer;
  font-size: 16px; padding: 2px; flex-shrink: 0;
  color: var(--gray2); transition: color .2s;
  display: flex; align-items: center; justify-content: center;
}
.gps-btn:hover { color: var(--cyan); }
.gps-btn.spin i { animation: rot .8s linear infinite; }

/* ── Map pick button ── */
.map-pick-btn {
  display: flex; align-items: center; gap: 8px;
  width: 100%; margin-top: 6px; background: transparent;
  border: 1px dashed var(--border2); border-radius: var(--radius-sm);
  padding: 10px 14px; color: var(--gray); font-size: 12px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; letter-spacing: .3px;
  transition: border-color .2s, color .2s;
}
.map-pick-btn:hover { border-color: var(--gray); color: var(--gray2); }
.map-pick-btn i { font-size: 13px; }

/* ── Suggestions box ── */
.sbox {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; display: none;
  max-height: 200px; overflow-y: auto; margin-top: 4px; box-shadow: var(--shadow);
}
.si {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .15s;
}
.si:last-child       { border-bottom: none; }
.si:hover, .si:active { background: var(--surface2); }
.si .ic  { font-size: 13px; color: var(--gray2); flex-shrink: 0; }
.si .sn  { font-size: 14px; font-weight: 500; color: var(--white); }
.si .ss  { font-size: 11px; color: var(--gray2); margin-top: 2px; }
.ssec    { font-size: 10px; letter-spacing: 2px; color: var(--gray); padding: 7px 14px 3px; background: var(--surface2); text-transform: uppercase; }
.sload   { padding: 13px; font-size: 12px; color: var(--gray2); text-align: center; }

/* ── Passenger selector ── */
.pax-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.pax-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 11px 4px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer; transition: all .2s;
  font-family: 'DM Sans', sans-serif;
}
.pax-btn:hover { border-color: var(--border2); }
.pax-btn.active { background: rgba(34,197,94,.06); border-color: rgba(34,197,94,.5); box-shadow: 0 0 0 1px rgba(34,197,94,.15); }
.pax-ico { font-size: 20px; line-height: 1; }
.pax-num { font-family: 'Bebas Neue', sans-serif; font-size: 18px; color: var(--white); letter-spacing: 1px; line-height: 1; }
.pax-tag { font-size: 9px; color: var(--gray); letter-spacing: .5px; }
.pax-btn.active .pax-num { color: var(--green); }
.pax-btn.active .pax-tag { color: rgba(34,197,94,.6); }
@media (max-width: 380px) {
  .pax-grid { gap: 5px; }
  .pax-btn  { padding: 9px 2px; }
  .pax-ico  { font-size: 17px; }
  .pax-num  { font-size: 16px; }
}

/* ── Schedule toggle ── */
#schedule-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sched-toggle  { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; cursor: pointer; user-select: none; }
.sched-toggle-label { font-size: 14px; font-weight: 500; color: var(--gray2); display: flex; align-items: center; gap: 8px; }
.sched-toggle-label i     { color: var(--cyan); font-size: 13px; }
.sched-toggle-label small { color: var(--gray); font-size: 11px; }
.sched-switch { width: 36px; height: 20px; background: var(--surface2); border: 1px solid var(--border2); border-radius: 20px; position: relative; transition: background .2s, border-color .2s; flex-shrink: 0; }
.sched-switch.on { background: rgba(34,197,94,.15); border-color: rgba(34,197,94,.5); }
.sched-thumb { width: 14px; height: 14px; background: var(--gray); border-radius: 50%; position: absolute; top: 2px; left: 2px; transition: transform .2s, background .2s; }
.sched-switch.on .sched-thumb { transform: translateX(16px); background: var(--green); }
#sched-fields { display: none; padding: 0 15px 14px; flex-direction: column; gap: 10px; }
#sched-fields.open { display: flex; }
.sched-row  { display: flex; gap: 8px; }
.sched-field { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.sched-field label { font-size: 10px; letter-spacing: 2px; color: var(--gray); text-transform: uppercase; }
.sched-field input, .sched-field select {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; color: var(--white); font-family: 'DM Sans', sans-serif;
  font-size: 13px; outline: none; width: 100%; transition: border-color .2s; -webkit-appearance: none;
}
.sched-field input:focus, .sched-field select:focus { border-color: var(--border2); }
body.dark .sched-field input, body.dark .sched-field select { background: var(--surface); border-color: var(--border); color: var(--white); }
.sched-note { font-size: 11px; color: var(--gray); line-height: 1.6; }

/* ── Quote card ── */
#qcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: none; animation: slideUp .3s ease; }
.qtop  { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.qprice       { font-family: 'Bebas Neue', sans-serif; font-size: clamp(44px, 12vw, 56px); letter-spacing: 2px; line-height: 1; color: var(--white); }
.qprice-label { font-size: 10px; color: var(--gray); letter-spacing: 2px; margin-top: 2px; }
.qmeta        { text-align: right; }
.qmeta-pax    { font-size: 13px; color: var(--gray2); }
.qmeta-time   { font-size: 10px; color: var(--gray); margin-top: 3px; }
.qfar, .qsched { border-radius: var(--radius-sm); padding: 8px 12px; font-size: 12px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.qfar   { background: rgba(255,140,0,.08); border: 1px solid rgba(255,140,0,.3); color: var(--orange); display: none; }
.qsched { background: rgba(0,212,255,.06); border: 1px solid rgba(0,212,255,.25); color: var(--cyan); display: none; }
.qrows  { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.qrow   { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.qrow .k { color: var(--gray2); display: flex; align-items: center; gap: 6px; }
.qrow .k i { font-size: 11px; }
.qrow .v   { font-weight: 500; }
.qrow.tot  { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 2px; }
.qrow.tot .k { color: var(--white); font-weight: 600; font-size: 14px; }
.qrow.tot .v { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 1px; }

/* ── Zone warnings ── */
#zone-warning { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; line-height: 1.5; display: none; animation: slideUp .3s ease; }
#zone-warning.warn-soft { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.4); color: var(--yellow); }
#zone-warning.warn-hard { background: rgba(255,51,102,.08); border: 1px solid rgba(255,51,102,.4); color: #ff4488; }
#zone-warning.warn-far  { background: rgba(255,140,0,.08); border: 1px solid rgba(255,140,0,.35); color: var(--orange); }
#zone-warning .wt { font-weight: 600; margin-bottom: 3px; font-size: 14px; display: flex; align-items: center; gap: 6px; }
body.dark #zone-warning.warn-hard { background: rgba(255,51,102,.06); }
body.dark #zone-warning.warn-soft { background: rgba(245,158,11,.06); }

.zone-hint { display: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 12px; color: var(--gray2); animation: slideUp .3s ease; line-height: 1.6; margin-top: 7px; }
.zone-hint .hint-title { font-weight: 600; color: var(--white); font-size: 13px; margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }

/* ── Pickup time ── */
#pickup-time { display: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 15px; animation: slideUp .3s ease; }
.pt-row     { display: flex; align-items: center; justify-content: space-between; }
.pt-label   { font-size: 10px; letter-spacing: 2px; color: var(--gray); text-transform: uppercase; margin-bottom: 3px; }
.pt-val     { font-family: 'Bebas Neue', sans-serif; font-size: 34px; letter-spacing: 2px; line-height: 1; }
.pt-unit    { font-size: 10px; color: var(--gray2); margin-left: 3px; vertical-align: super; }
.pt-sub     { font-size: 11px; color: var(--gray); margin-top: 4px; }
.pt-bar     { display: flex; gap: 4px; margin-top: 10px; }
.pt-seg     { flex: 1; height: 3px; border-radius: 2px; background: var(--border2); }
.pt-seg.green  { background: var(--green); }
.pt-seg.yellow { background: var(--yellow); }
.pt-seg.orange { background: var(--orange); }

/* ── Recent phones dropdown ── */
.recent-phone-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.recent-phone-row:last-child { border-bottom: none; }
.recent-phone-row:hover { background: var(--surface2); }
.recent-phone-num {
  display: flex; align-items: center; gap: 8px;
}
.recent-phone-fmt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; color: var(--white); letter-spacing: .5px;
}
.recent-phone-del {
  background: none; border: none;
  color: var(--gray); font-size: 12px; cursor: pointer;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s, background .15s;
  flex-shrink: 0;
}
.recent-phone-del:hover { color: #ff3d57; background: rgba(255,61,87,.10); }
