/**
 * Coastal Electric — "Find Your AC" room finder — styles
 * ========================================================
 * Tokens below are pulled from the live site (styles.css :root), not
 * invented. Swap the :root values only if the site's own tokens change.
 *
 * Layout switch: .ac-finder--desktop shows at >=980px, .ac-finder--mobile
 * shows below it — matches the site's own nav breakpoint (see styles.css's
 * "@media (max-width: 980px)" mobile-nav block) rather than the export's
 * original 768px, so this component switches to its phone layout at the
 * same width the rest of the page already does.
 */

:root {
  --ac-navy: #2C3850;
  --ac-charcoal: #2E2C2D;
  --ac-greige: #DFDFDA;
  --ac-border: #EAE9E5;
  --ac-muted: #6f6f6c;
  --ac-muted-2: #919191;
  --ac-muted-3: #8a8a86;
  --ac-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ac-finder, .ac-finder * { box-sizing: border-box; }
.ac-finder { font-family: var(--ac-font); color: var(--ac-charcoal); }

.ac-btn {
  border: none; border-radius: 999px; font-family: var(--ac-font);
  font-weight: 600; cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px;
}
.ac-btn--primary { background: var(--ac-navy); color: #FFFFFF; padding: 14px 24px; font-size: 15px; width: 100%; }
.ac-btn--outline { background: transparent; color: var(--ac-navy); border: 1.5px solid var(--ac-navy); padding: 13px 24px; font-size: 14.5px; width: 100%; }
.ac-btn--link { background: none; color: var(--ac-muted); text-decoration: underline; padding: 10px 0; font-size: 12.5px; font-weight: 600; width: 100%; }

/* ---------- shared room list ---------- */
.ac-room-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1.5px solid rgba(46,44,45,0.1); border-radius: 14px; cursor: pointer;
}
.ac-room-row.is-selected { border: 2px solid var(--ac-navy); background: #f4f5f7; padding: 11px 13px; }
.ac-room-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--ac-greige);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ac-room-row.is-selected .ac-room-icon { background: var(--ac-navy); }
.ac-room-icon svg { width: 18px; height: 18px; }
.ac-room-copy { flex: 1; display: flex; flex-direction: column; }
.ac-room-copy strong { font-size: 14px; font-weight: 700; }
.ac-room-copy small { font-size: 11.8px; color: var(--ac-muted); margin-top: 1px; }
.ac-room-row.is-selected .ac-room-copy small { color: #5a5854; }
.ac-room-check {
  width: 20px; height: 20px; border-radius: 999px; background: var(--ac-navy);
  color: #FFFFFF; font-size: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ac-room-chevron { color: var(--ac-muted-3); font-size: 18px; }

/* ---------- shared type checkboxes ---------- */
.ac-type-row {
  display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px;
  border: 2px solid rgba(46,44,45,0.12); border-radius: 12px; cursor: pointer;
}
.ac-type-row.is-checked { border-color: var(--ac-navy); background: #f4f5f7; }
.ac-type-box {
  width: 19px; height: 19px; border-radius: 5px; border: 2px solid #c9c9c4;
  flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center;
}
.ac-type-row.is-checked .ac-type-box { background: var(--ac-navy); border-color: var(--ac-navy); }
.ac-type-box svg { width: 12px; height: 12px; display: none; }
.ac-type-row.is-checked .ac-type-box svg { display: block; }
.ac-type-copy strong { font-size: 13.5px; font-weight: 700; display: block; }
.ac-type-copy small { font-size: 11px; color: #5a5854; }

/* ---------- shared match panel ---------- */
.ac-match-title { font-size: 16.5px; font-weight: 700; margin: 0 0 8px; }
.ac-match-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; }
.ac-match-tags span {
  font-size: 10.5px; font-weight: 700; color: #5a5854; background: var(--ac-greige);
  padding: 4px 9px; border-radius: 999px;
}
.ac-match-note {
  background: #f4f5f2; border-radius: 10px; padding: 10px 12px; font-size: 12px;
  line-height: 1.45; color: #3a3836; margin-bottom: 14px;
}
.ac-match-price { padding-top: 12px; border-top: 1px solid rgba(46,44,45,0.08); margin-bottom: 14px; }
.ac-match-strike { font-size: 12.5px; color: var(--ac-muted-2); text-decoration: line-through; }
.ac-match-amount { font-size: 28px; font-weight: 800; color: var(--ac-charcoal); line-height: 1.2; }
.ac-match-label { font-size: 10.5px; font-weight: 700; color: var(--ac-navy); letter-spacing: 0.03em; text-transform: uppercase; }

/* =========================================================
   DESKTOP layout (3 columns)
   ========================================================= */
.ac-finder--desktop {
  display: none; /* becomes flex at >=980px, see breakpoint switch below */
  border: 1px solid var(--ac-border); border-radius: 14px;
  box-shadow: 0 4px 14px -6px rgba(46,44,45,0.18);
  background: #FFFFFF; overflow: hidden;
}
.ac-finder--desktop .ac-col {
  flex: 1; padding: 34px 30px; border-right: 1px solid var(--ac-border);
}
.ac-finder--desktop .ac-col:last-child { border-right: none; }
.ac-col-heading {
  font-size: 11px; font-weight: 700; color: var(--ac-muted-3);
  letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 16px;
}
.ac-room-list, .ac-type-list { display: flex; flex-direction: column; gap: 8px; }

/* =========================================================
   MOBILE layout (step flow)
   ========================================================= */
.ac-finder--mobile {
  display: block; width: 100%; max-width: 480px; margin: 0 auto;
  background: #FFFFFF; min-height: 600px; position: relative;
  border: 1px solid var(--ac-border); border-radius: 14px; overflow: hidden;
  box-shadow: 0 4px 14px -6px rgba(46,44,45,0.18);
}
.ac-screen { display: none; flex-direction: column; min-height: 600px; padding: 0 0 24px; }
.ac-screen.is-active { display: flex; }

/* Slim header: back button + step label only — the real site header/nav
   (logo, cart icon) already sits above this component on the page, so we
   don't duplicate it per-screen the way the original export's full-takeover
   design did. */
.ac-screen-header {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px;
  border-bottom: 1px solid rgba(46,44,45,0.08); min-height: 24px;
}
.ac-screen-header-label { font-weight: 700; font-size: 13px; color: var(--ac-muted); letter-spacing: 0.02em; }
.ac-back-btn {
  width: 44px; height: 44px; margin: -12px 0 -12px -14px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0; background: none;
  border: none; cursor: pointer; padding: 0;
}
.ac-progress { padding: 16px 24px 0; }
.ac-progress-row {
  display: flex; justify-content: space-between; font-size: 11px; font-weight: 700;
  color: var(--ac-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px;
}
.ac-progress-track { height: 4px; border-radius: 999px; background: var(--ac-greige); overflow: hidden; }
.ac-progress-fill { height: 100%; background: var(--ac-navy); border-radius: 999px; }
.ac-screen-body { padding: 20px 24px 0; flex: 1; display: flex; flex-direction: column; }
.ac-screen-body h1 { font-size: 22px; line-height: 1.25; font-weight: 700; margin: 0 0 6px; }
.ac-screen-body p.ac-lede { font-size: 13.5px; line-height: 1.45; color: #5a5854; margin: 0 0 16px; }
.ac-cta-area { margin-top: auto; padding: 20px 0 8px; }

/* Breakpoint switch */
@media (min-width: 980px) {
  .ac-finder--desktop { display: flex; }
  .ac-finder--mobile { display: none; }
}
