/* K7 Towing & Recovery — Appointment Wizard
   Intentionally a different visual/interaction pattern from King's Towing's
   form: solid card (no blurred glass), colored top strip instead of ambient
   glow, a step tracker instead of a fill progress bar, pill time-selector
   instead of a radio-box grid, and an inline success panel instead of a
   modal popup. */

.k7w-wrap { font-family: 'Barlow Condensed', Arial, sans-serif; max-width: 640px; margin: 0 auto; padding: 16px; overflow-x: hidden; }
.k7w-wrap *, .k7w-wrap *::before, .k7w-wrap *::after { box-sizing: border-box; }
.k7w-wrap { color-scheme: dark; }

.k7w-card {
  position: relative;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(0,0,0,0.45);
}
.k7w-topbar { height: 5px; background: linear-gradient(90deg, #F04E0C, #FF8A4C, #F04E0C); }

.k7w-header { padding: 26px 26px 6px; text-align: center; }
.k7w-title {
  font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  font-size: 30px; font-weight: 400; letter-spacing: 0.5px; text-transform: uppercase;
  color: #fff; margin: 0 0 8px;
}
.k7w-sub { font-size: 13.5px; color: #999; line-height: 1.6; margin: 0; }

.k7w-urgent-strip {
  background: rgba(240,78,12,0.1);
  border-top: 1px solid rgba(240,78,12,0.25);
  border-bottom: 1px solid rgba(240,78,12,0.25);
  text-align: center; font-size: 12.5px; color: #ccc;
  padding: 10px 16px; margin-top: 18px;
}
.k7w-urgent-strip a { color: #FF8A4C; font-weight: 800; text-decoration: none; }
.k7w-urgent-strip a:hover { text-decoration: underline; }

/* ===== STEP TRACKER (replaces King's fill-bar progress indicator) ===== */
.k7w-tracker { display: flex; align-items: flex-start; padding: 22px 26px 8px; }
.k7w-step-node { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto; }
.k7w-circle {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; font-family: Arial, sans-serif;
  background: #1f1f1f; border: 2px solid rgba(255,255,255,0.16); color: #777;
  transition: all 0.25s;
}
.k7w-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.4px; color: #666; font-weight: 700; }
.k7w-step-node.k7w-active .k7w-circle { background: #F04E0C; border-color: #F04E0C; color: #fff; box-shadow: 0 0 0 4px rgba(240,78,12,0.18); }
.k7w-step-node.k7w-active .k7w-label { color: #FF8A4C; }
.k7w-step-node.k7w-done .k7w-circle { background: rgba(240,78,12,0.16); border-color: #F04E0C; color: #FF8A4C; }
.k7w-step-node.k7w-done .k7w-label { color: #aaa; }
.k7w-step-line { flex: 1 1 auto; height: 2px; background: rgba(255,255,255,0.1); margin: 14px 4px 0; transition: background 0.25s; }
.k7w-step-line.k7w-done { background: #F04E0C; }

/* ===== FORM STEPS ===== */
.k7w-form { padding: 6px 26px 26px; }
.k7w-step { padding-top: 10px; }

.k7w-field { margin-bottom: 16px; }
.k7w-field label {
  display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
  color: #ccc; margin-bottom: 7px;
}
.k7w-field label span { color: #F04E0C; }
.k7w-field label .k7w-optional { color: #666; text-transform: none; font-weight: 400; letter-spacing: 0; font-size: 11.5px; }

.k7w-field input[type="text"],
.k7w-field input[type="tel"],
.k7w-field input[type="email"],
.k7w-field input[type="date"],
.k7w-field textarea {
  width: 100%; background: #1c1c1c; border: 1px solid rgba(255,255,255,0.14); border-radius: 8px;
  padding: 12px 13px; font-size: 15px; font-weight: 500; color: #fff !important;
  -webkit-text-fill-color: #fff !important; font-family: 'Barlow Condensed', sans-serif;
}
.k7w-field input:-webkit-autofill { -webkit-text-fill-color: #fff !important; -webkit-box-shadow: 0 0 0 1000px #1c1c1c inset !important; }
.k7w-field input::placeholder, .k7w-field textarea::placeholder { color: #666; }
.k7w-field input:focus, .k7w-field textarea:focus {
  outline: none; border-color: #F04E0C; box-shadow: 0 0 0 3px rgba(240,78,12,0.16);
}
.k7w-field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.4) sepia(1) saturate(6) hue-rotate(-10deg); cursor: pointer; }
.k7w-field textarea { resize: vertical; min-height: 76px; }

.k7w-field.k7w-error input, .k7w-field.k7w-error .k7-custom-select-trigger { border-color: #C41E1E; box-shadow: 0 0 0 3px rgba(196,30,30,0.15); }

/* Google Places suggestion dropdown is appended to <body>, outside our
   card — make sure it always renders above everything and never gets
   trapped behind another element mid-transition. */
.pac-container { z-index: 999999 !important; }

/* ===== SERVICE DROPDOWN (reused custom select — kept, since dropdown
   pattern itself isn't the differentiator, the wizard flow is) ===== */
.k7-hidden-select { position: absolute !important; width: 0; height: 0; opacity: 0; pointer-events: none; }
.k7-custom-select { position: relative; }
.k7-custom-select-trigger {
  width: 100%; background: #1c1c1c; border: 1px solid rgba(255,255,255,0.14); border-radius: 8px;
  padding: 12px 13px; font-size: 15px; color: rgba(255,255,255,0.4); font-family: 'Barlow Condensed', sans-serif;
  display: flex; align-items: center; justify-content: space-between; cursor: pointer; text-align: left;
}
.k7-custom-select.k7-open .k7-custom-select-trigger svg { transform: rotate(180deg); }
.k7-custom-select-trigger svg { transition: transform 0.2s; margin-left: 8px; flex-shrink: 0; }
.k7-custom-select.k7-open .k7-custom-select-trigger { border-color: #F04E0C; box-shadow: 0 0 0 3px rgba(240,78,12,0.16); }
.k7-custom-select-value.k7-has-value { color: #fff; font-weight: 600; }
.k7-custom-select-options {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #1c1c1c;
  border: 1px solid rgba(240,78,12,0.3); border-radius: 10px; list-style: none; margin: 0; padding: 5px;
  z-index: 50; display: none; box-shadow: 0 14px 34px rgba(0,0,0,0.55); max-height: 240px; overflow-y: auto;
}
.k7-custom-select.k7-open .k7-custom-select-options { display: block; }
.k7-custom-select-options li { padding: 11px 12px; border-radius: 6px; font-size: 14.5px; color: #ddd; cursor: pointer; }
.k7-custom-select-options li:hover { background: rgba(240,78,12,0.14); color: #FF8A4C; }
.k7-custom-select-options li.k7-selected { background: rgba(240,78,12,0.2); color: #FF8A4C; font-weight: 700; }

/* ===== TIME WINDOW — horizontal pill row (not a boxed radio grid) ===== */
.k7w-pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.k7w-pill { flex: 1 1 auto; }
.k7w-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.k7w-pill span {
  display: block; text-align: center; padding: 10px 6px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.16); background: #1c1c1c; color: #bbb;
  font-size: 12.5px; font-weight: 700; transition: all 0.15s; white-space: nowrap;
}
.k7w-pill input:checked + span { background: #F04E0C; border-color: #F04E0C; color: #fff; }
@media (max-width: 460px) { .k7w-pill-row { flex-direction: column; } }

/* ===== STEP NAVIGATION ===== */
.k7w-step-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; gap: 10px; }
.k7w-back {
  background: transparent; border: 1px solid rgba(255,255,255,0.16); color: #bbb;
  border-radius: 100px; padding: 11px 20px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.k7w-back:hover { border-color: rgba(255,255,255,0.3); color: #fff; }
.k7w-next, .k7w-submit {
  background: #F04E0C; color: #fff; border: none; border-radius: 100px; padding: 11px 24px;
  font-size: 13.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
  transition: filter 0.15s, transform 0.15s;
}
.k7w-next:hover, .k7w-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.k7w-arrow { font-family: Arial, sans-serif; }
.k7w-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.k7w-spinner { display: none; width: 14px; height: 14px; border: 2.5px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%; }
.k7w-submit.k7w-loading .k7w-spinner { display: inline-block; animation: k7w-spin 0.7s linear infinite; }
@keyframes k7w-spin { to { transform: rotate(360deg); } }

/* ===== REVIEW STEP ===== */
.k7w-review { display: flex; flex-direction: column; gap: 0; margin-bottom: 6px; }
.k7w-review-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 14px; flex-wrap: wrap;
}
.k7w-review-row:last-child { border-bottom: none; }
.k7w-review-label { color: #888; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; flex: 0 0 120px; padding-top: 2px; }
.k7w-review-value { color: #fff; text-align: right; flex: 1; min-width: 0; word-break: break-word; }
.k7w-review-edit { color: #F04E0C; font-size: 11.5px; font-weight: 700; text-decoration: none; margin-left: 10px; white-space: nowrap; }
.k7w-review-edit:hover { text-decoration: underline; }

.k7-appt-result { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-size: 13.5px; line-height: 1.6; display: none; }
.k7-appt-result.error { display: block; background: rgba(196,30,30,0.1); border: 1px solid rgba(196,30,30,0.35); color: #ffb3b3; }
.k7-appt-result .k7-missing-list { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; }

.k7-appt-honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 0; }

/* ===== INLINE SUCCESS PANEL (replaces King's modal popup) ===== */
.k7w-success { padding: 46px 30px 34px; text-align: center; }
.k7w-success-icon { font-size: 44px; margin-bottom: 12px; }
.k7w-success-title {
  font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 400;
  letter-spacing: 0.5px; text-transform: uppercase; color: #fff; margin: 0 0 10px;
}
#k7w-success-name { color: #F04E0C; }
.k7w-success-msg { font-size: 14px; color: #ddd; line-height: 1.7; margin: 0 0 8px; }
.k7w-success-sub { font-size: 12px; color: #777; margin: 0 0 22px; }
.k7w-success-call {
  display: block; background: rgba(240,78,12,0.12); border: 1px solid rgba(240,78,12,0.35);
  color: #FF8A4C; text-decoration: none; font-size: 13px; font-weight: 700; padding: 12px; border-radius: 8px; margin-bottom: 12px;
}
.k7w-success-call:hover { background: rgba(240,78,12,0.2); }
.k7w-success-reset {
  width: 100%; background: transparent; border: 1px solid rgba(255,255,255,0.16); color: #bbb;
  border-radius: 100px; padding: 11px; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.k7w-success-reset:hover { border-color: rgba(255,255,255,0.3); color: #fff; }

@media (max-width: 520px) {
  .k7w-header { padding: 22px 18px 6px; }
  .k7w-title { font-size: 25px; }
  .k7w-form { padding: 6px 18px 22px; }
  .k7w-tracker { padding: 18px 12px 6px; }
  .k7w-label { display: none; }
  .k7w-back span.k7w-arrow, .k7w-next span.k7w-arrow { display: inline; }
}
