/* =====================================================================
   Buying flow — Find Your City search, city-page pricing, /start/ checkout
   ===================================================================== */

/* ---------- City search (Find Your City, Get Started, account) ---------- */
.city-search { position: relative; width: 100%; max-width: 860px; margin: 0 auto; text-align: left; }
.city-search__label { display: block; margin-bottom: 10px; font: 700 14px var(--font-ui); color: var(--dark-teal); }
/* Search box and the full city dropdown side by side; stacked on phones. */
.city-search__row { display: flex; align-items: stretch; gap: 12px; }
.city-search__field { position: relative; flex: 1 1 auto; min-width: 0; }
.city-search__pick { flex: 0 0 280px; min-width: 0; }
.city-search__select {
  width: 100%;
  height: 60px;
  padding: 0 46px 0 18px;
  border: 2px solid var(--gray-200);
  border-radius: 14px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23F69C52' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center / 14px 9px;
  -webkit-appearance: none;
  appearance: none;
  font: 600 16px var(--font-ui);
  color: var(--dark-teal);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(13,33,35,0.08);
  transition: border-color 0.15s, box-shadow 0.15s;
  text-overflow: ellipsis;
}
.city-search__select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(246,156,82,0.18), 0 10px 30px rgba(13,33,35,0.08); }
.city-search__select:disabled { color: var(--gray-400); cursor: progress; }
.city-search--dark .city-search__select { border-color: transparent; }
@media (max-width: 680px) {
  .city-search__row { flex-direction: column; gap: 10px; }
  .city-search__pick { flex: 0 0 auto; }
  .city-search__select { height: 56px; }
}
.city-search__box { position: relative; }
.city-search__box > i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--orange); font-size: 17px; pointer-events: none; }
.city-search__input {
  width: 100%;
  height: 60px;
  padding: 0 18px 0 50px;
  border: 2px solid var(--gray-200);
  border-radius: 14px;
  background: #fff;
  font: 600 17px var(--font-ui);
  color: var(--dark-teal);
  box-shadow: 0 10px 30px rgba(13,33,35,0.08);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.city-search__input::placeholder { color: var(--gray-400); font-weight: 500; }
.city-search__input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(246,156,82,0.18), 0 10px 30px rgba(13,33,35,0.08); }
.city-search__input::-webkit-search-cancel-button { cursor: pointer; }
.city-search__results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(380px, 60vh);
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(13,33,35,0.16);
}
.city-search__results[hidden] { display: none; }
.city-search__option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--dark-teal);
}
.city-search__option i { color: var(--gray-400); width: 16px; text-align: center; }
.city-search__option:hover, .city-search__option.is-active { background: var(--orange-light); }
.city-search__option.is-active i { color: var(--orange); }
.city-search__name { font: 700 15px var(--font-ui); }
.city-search__state { font: 500 13px var(--font-ui); color: var(--gray-500); }
.city-search__price { margin-left: auto; font: 700 14px var(--font-ui); color: var(--dark-teal); white-space: nowrap; }
.city-search__price small { font-weight: 500; color: var(--gray-500); }
.city-search__empty { padding: 14px 12px; font: 500 14px var(--font-ui); color: var(--gray-600); }
.city-search__empty a { color: var(--orange-deep); font-weight: 700; }
.city-search__status { margin: 10px 2px 0; min-height: 1em; font: 500 13px var(--font-ui); color: var(--gray-500); }
.city-search--dark .city-search__label { color: #fff; }
.city-search--dark .city-search__input { border-color: transparent; }

/* ---------- Find Your City page ---------- */
.fyc-hero-search { margin-top: var(--space-lg); position: relative; z-index: 3; }
.fyc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--space-lg); max-width: 1000px; margin: 0 auto; }
.fyc-step { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: var(--space-lg); }
.fyc-step__num { font: 700 13px var(--font-ui); letter-spacing: 2px; color: var(--orange); }
.fyc-step h3 { margin: 6px 0 8px; font-size: 24px; color: var(--dark-teal); }
.fyc-step p { color: var(--gray-600); font-size: 15px; line-height: 1.7; }

/* ---------- City page pricing ---------- */
.pricing-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; text-align: left; }
.pricing-card__head, .plan-option { text-align: center; }
.pricing-card__head { padding: 18px 22px; background: var(--dark-teal); color: #fff; }
.pricing-card__eyebrow { font: 700 12px var(--font-ui); letter-spacing: 2px; text-transform: uppercase; color: var(--orange); }
.pricing-card__title { margin-top: 4px; font-family: var(--font-display); font-size: 28px; letter-spacing: 1.5px; line-height: 1.1; }
.pricing-card__plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 20px 22px 6px; }
.plan-option { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-md); background: var(--cream); }
.plan-option__label { font: 700 12px var(--font-ui); letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray-500); }
.plan-option__price { font: 800 30px var(--font-ui); color: var(--dark-teal); line-height: 1.1; }
.plan-option__price small { font-size: 14px; font-weight: 600; color: var(--gray-500); }
.plan-option .btn { margin-top: 10px; width: 100%; justify-content: center; padding: 14px 18px; font-size: 15px; }
.pricing-card__plans--single { grid-template-columns: minmax(0, 1fr); }
.pricing-card__plans--single .plan-option__price { font-size: 38px; }
.plan-option__note { font-size: 13px; color: var(--gray-500); }
.pricing-card__note { padding: 10px 22px 0; font-size: 14px; color: var(--gray-600); line-height: 1.6; }
.pricing-card__setup { display: flex; gap: 10px; align-items: flex-start; margin: 10px 22px 4px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--orange-light); border: 1px solid rgba(246,156,82,0.25); font-size: 14px; line-height: 1.55; color: var(--gray-700); }
.pricing-card__setup i { color: var(--orange-deep); margin-top: 3px; }
.pricing-card__setup strong { color: var(--dark-teal); }
.pricing-card__list { list-style: none; padding: 12px 22px 20px; margin: 0; display: grid; gap: 8px; }
.pricing-card__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--gray-700); }
.pricing-card__list i { color: var(--green); margin-top: 4px; }
.pricing-card__off { padding: 20px 22px; font-size: 15px; color: var(--gray-700); }
.hero-price { margin-top: var(--space-md); text-align: center; font: 600 15px var(--font-ui); color: rgba(255,255,255,0.75); position: relative; z-index: 2; }
.hero-price strong { color: var(--orange); font-size: 18px; }

/* ---------- /start/ checkout page ---------- */
.start-wrap { max-width: 640px; margin: 0 auto; }
.start-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.start-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--gray-100); }
.start-card__head h2 { margin: 0; font-size: 30px; color: var(--dark-teal); }
.start-card__head a { font: 600 13px var(--font-ui); color: var(--orange-deep); white-space: nowrap; }
.start-card__body { padding: 20px 22px; }
.start-card__foot { padding: 16px 22px; border-top: 1px solid var(--gray-100); background: #fafaf7; display: flex; align-items: center; gap: 10px; font: 500 13px var(--font-ui); color: var(--gray-500); }
.start-card__foot i { color: var(--green); }
.plan-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.plan-choice label { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 2px solid var(--gray-200); border-radius: var(--radius-md); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.plan-choice input { position: absolute; opacity: 0; pointer-events: none; }
.plan-choice label:has(input:checked) { border-color: var(--orange); background: #fffaf4; }
.plan-choice label:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.plan-choice__name { font: 700 13px var(--font-ui); letter-spacing: 1.2px; text-transform: uppercase; color: var(--gray-500); }
.plan-choice__price { font: 800 28px var(--font-ui); color: var(--dark-teal); line-height: 1.1; }
.plan-choice__price small { font-size: 14px; font-weight: 600; color: var(--gray-500); }
.plan-choice__note { font-size: 13px; color: var(--gray-500); }
.plan-choice label:has(input:checked)::after { content: "\f058"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 12px; right: 12px; color: var(--orange); }
.plan-single { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 16px 18px; border: 2px solid var(--orange); border-radius: var(--radius-md); background: #fffaf4; }
.plan-single__name { display: block; font: 700 13px var(--font-ui); letter-spacing: 1.2px; text-transform: uppercase; color: var(--gray-500); }
.plan-single__note { display: block; margin-top: 4px; font-size: 13px; color: var(--gray-500); }
.plan-single__price { font: 800 30px var(--font-ui); color: var(--dark-teal); line-height: 1.1; white-space: nowrap; }
.plan-single__price small { font-size: 14px; font-weight: 600; color: var(--gray-500); }
.start-total { margin: 0 0 18px; padding: 14px 16px; border-radius: var(--radius-md); background: #fafaf7; border: 1px solid var(--gray-200); }
.start-total[hidden] { display: none; }
.start-total__row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font: 500 15px var(--font-ui); color: var(--gray-700); }
.start-total__row span:last-child { font-weight: 700; color: var(--dark-teal); font-variant-numeric: tabular-nums; }
.start-total__row--due { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--gray-200); font-weight: 700; color: var(--dark-teal); font-size: 16px; }
.start-total__row--due span:last-child { font-size: 18px; color: var(--orange-deep); }
.start-total .start-total__note { margin: 8px 0 0; font-size: 13px; line-height: 1.55; color: var(--gray-500); }
.start-includes { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.start-includes li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--gray-700); }
.start-includes i { color: var(--green); margin-top: 4px; }
.start-callvol { padding: 12px 14px; margin-bottom: 16px; border-radius: var(--radius-md); background: #eef6f7; border: 1px solid rgba(84,182,191,0.35); font-size: 14px; color: var(--gray-700); line-height: 1.6; }
.start-agree { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-bottom: 16px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-md); cursor: pointer; font-size: 14px; color: var(--gray-700); line-height: 1.55; }
.start-agree:has(input:checked) { border-color: var(--green); background: #f3fbf7; }
.start-agree input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--orange); }
.start-agree a { color: var(--orange-deep); font-weight: 700; text-decoration: underline; }
.start-error { display: none; margin-bottom: 14px; padding: 12px 14px; border-radius: var(--radius-md); background: #fdeeee; border: 1px solid rgba(223,49,49,0.3); color: #8f1d1d; font-size: 14px; }
.start-error.is-shown { display: block; }
.start-signed { font: 500 13px var(--font-ui); color: var(--gray-500); margin-top: 12px; text-align: center; }
.start-submit { width: 100%; justify-content: center; }
.start-submit[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Terms of Service summary popup ---------- */
.terms-modal {
  /* The site's reset zeroes margins; a dialog needs margin:auto to sit centered. */
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(600px, calc(100vw - 32px));
  height: fit-content;
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  overflow: visible;
}
.terms-modal::backdrop { background: rgba(8, 24, 25, 0.62); backdrop-filter: blur(3px); }
.terms-modal[open] { animation: termsIn 0.28s var(--ease-out); }
.terms-modal[open]::backdrop { animation: termsFade 0.28s ease; }
@keyframes termsIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes termsFade { from { opacity: 0; } to { opacity: 1; } }
html.terms-modal-open { overflow: hidden; }
.terms-modal__panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 32px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  text-align: left;
}
.terms-modal__head {
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 18px;
  background: radial-gradient(ellipse 80% 120% at 0% 0%, rgba(84,182,191,0.18), transparent 60%), var(--dark-teal);
  color: #fff;
}
.terms-modal__eyebrow { font: 700 12px var(--font-ui); letter-spacing: 2px; text-transform: uppercase; color: var(--orange); }
.terms-modal__title { margin: 4px 0 0; font-family: var(--font-display); font-size: 34px; font-weight: 400; letter-spacing: 1.5px; line-height: 1; color: #fff; text-transform: none; }
.terms-modal__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.terms-modal__close:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); }
.terms-modal__close:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.terms-modal__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 22px; }
.terms-modal__list { list-style: none; margin: 0; padding: 0; }
.terms-modal__list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--gray-100); font: 400 14.5px/1.6 var(--font-body); color: var(--gray-600); }
.terms-modal__list li:last-child { border-bottom: 0; }
.terms-modal__list strong { display: block; margin-bottom: 2px; font: 700 15px/1.35 var(--font-ui); color: var(--dark-teal); }
.terms-modal__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(246,156,82,0.13); color: var(--orange-deep); font-size: 15px; }
.terms-modal__foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-top: 1px solid var(--gray-200);
  background: #fafaf7;
}
.terms-modal__full { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.terms-modal__full a { font: 700 14.5px var(--font-ui); color: var(--orange-deep); text-decoration: none; }
.terms-modal__full a:hover { text-decoration: underline; }
.terms-modal__full a i { font-size: 12px; margin-left: 4px; }
.terms-modal__full span { font: 500 12.5px var(--font-ui); color: var(--gray-500); }
.terms-modal__agree.btn { flex: none; padding: 12px 28px; font-size: 15px; }
.terms-modal__agree[hidden] { display: none; }
@media (max-width: 600px) {
  .terms-modal__head { padding: 16px 16px 14px; }
  .terms-modal__title { font-size: 30px; }
  .terms-modal__body { padding: 4px 16px; }
  .terms-modal__foot { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
  .terms-modal__agree.btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .terms-modal[open], .terms-modal[open]::backdrop { animation: none; }
}

@media (max-width: 600px) {
  .pricing-card__plans, .plan-choice { grid-template-columns: minmax(0, 1fr); }
  .city-search__input { height: 56px; font-size: 16px; }
  .start-card__head h2 { font-size: 26px; }
}
