/* Instant Quote overrides (keeps site-wide /styles.css, but fixes layout + map + mobile)
   CLEAN VERSION */

:root{
  --iq-blue:#123a53;
  --iq-blue-2:#1e6fa8;
  --iq-card:#ffffff;
  --iq-text:#0c1b2a;
  --iq-muted:#6b7a89;
  --iq-border:#d9e2ec;
  --iq-radius:18px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }

/* Top nav */
.iq-top{
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.iq-top-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.iq-brand img{ height: 42px; width:auto; display:block; }
.iq-nav{ display:flex; align-items:center; gap: 18px; flex-wrap: wrap; }
.iq-nav a{
  text-decoration:none;
  color: var(--iq-text);
  font-weight: 600;
  opacity: .92;
}
.iq-nav a.active{ color: var(--iq-blue-2); opacity: 1; }

/* Hero */
.iq-hero{
  background: var(--iq-blue);
  color: #fff;
  padding: 56px 0 64px;
}
.iq-hero-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.iq-hero h1{ margin:0 0 12px; font-size: 44px; line-height: 1.05; }
.iq-hero p{ margin:0; max-width: 60ch; opacity:.92; font-size: 18px; line-height: 1.5; }

@media (max-width: 640px){
  .iq-hero{ padding: 36px 0 44px; }
  .iq-hero h1{ font-size: 36px; }
  .iq-nav{ gap: 12px; }
}

/* Main container */
.wrap{
  max-width: 1100px;
  margin: -42px auto 48px;
  padding: 0 16px;
}
@media (max-width: 980px){
  .wrap{ margin-top: 16px; }
}

/* Header card */
.iq-card-header{
  background: var(--iq-card);
  border: 1px solid var(--iq-border);
  border-radius: var(--iq-radius);
  padding: 20px 22px;
  box-shadow: 0 10px 25px rgba(15,23,42,.06);
  display:flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.title{ font-size: 20px; font-weight: 700; color: var(--iq-text); }
.sub{ color: var(--iq-muted); margin-top: 6px; line-height: 1.45; }
.tag{ color: var(--iq-muted); font-weight: 600; white-space: nowrap; }
@media (max-width: 980px){
  .tag{ white-space: normal; }
}

/* Grid: mobile 1 col, desktop 2 col */
.grid{
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 1024px){
  .grid{ grid-template-columns: 1.25fr .75fr; }
}

/* Panels */
.panel{
  background: var(--iq-card);
  border: 1px solid var(--iq-border);
  border-radius: var(--iq-radius);
  padding: 18px 18px;
  box-shadow: 0 10px 25px rgba(15,23,42,.06);
}
.panel h2{ margin: 0 0 10px; font-size: 22px; }

/* Form controls */
label{ display:block; font-weight: 650; color: var(--iq-text); margin-bottom: 6px; }
input, select, textarea{
  width: 100%;
  border: 1px solid var(--iq-border);
  border-radius: 14px;
  padding: 12px 12px;
  background: #fff;
  color: var(--iq-text);
  outline: none;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(30,111,168,.55);
  box-shadow: 0 0 0 4px rgba(30,111,168,.12);
}

.small{ color: var(--iq-muted); font-size: 14px; }

/* default "row": 1 col mobile, 2 col desktop */
.row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px){
  .row{ grid-template-columns: 1fr 1fr; }
}

/* Buttons */
button{
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
  background: var(--iq-blue-2);
  color: #fff;
}
button.ghost{
  background: #eef4fb;
  color: var(--iq-blue);
  border: 1px solid var(--iq-border);
}

button.selected{
  background: var(--iq-blue-2);
  color: #fff;
  border: 0;
  box-shadow: 0 0 0 3px rgba(250,204,21,.55);
}
button:active{ transform: translateY(1px); }

.hr{
  border: 0;
  border-top: 1px solid rgba(15,23,42,.10);
  margin: 16px 0;
}

/* Map */
.map{
  margin-top: 10px;
  width: 100%;
  height: 360px;
  min-height: 320px;
  border-radius: 14px;
  border: 1px solid var(--iq-border);
  overflow: hidden;
  background: #e9eef5;
}
@media (max-width: 720px){
  .map{ height: 320px; }
}

/* Notice + quote box */
.notice{
  background: #f7fbff;
  border: 1px solid rgba(30,111,168,.20);
  border-radius: 14px;
  padding: 12px 12px;
  color: var(--iq-blue);
  margin-top: 10px;
}
.hidden{ display:none !important; }


/* ===== MASTER FIX (iOS Safari): prevent option text from collapsing into 1px vertical strip ===== */
.instant-quote-page .row.options{
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

/* Make each label a normal horizontal row */
.instant-quote-page .row.options > label.small{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Lock the input size */
.instant-quote-page .row.options > label.small > input{
  flex: 0 0 auto !important;
}

/* Force the text to stay next to the input (and not in a skinny right column) */
.instant-quote-page .row.options > label.small > span{
  display: block !important;
  position: static !important;
  float: none !important;
  transform: none !important;

  flex: 1 1 auto !important;
  min-width: 10rem !important;   /* key: prevents 1px collapse */
  max-width: 100% !important;

  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;

  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  text-align: left !important;
}

/* Extra guardrail: if anything creates horizontal bleed */
.instant-quote-page{
  overflow-x: hidden;
}
