/* ============================================================
   Quick Car Finance — Form Styles
   Production-ready CSS matching live quickcarfinance.co.uk
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --qcf-navy: hsl(224, 47%, 22%);
  --qcf-blue-700: hsl(220, 91%, 42%);
  --qcf-blue-600: hsl(220, 100%, 48%);
  --qcf-blue-500: hsl(220, 100%, 54%);
  --qcf-blue-400: hsl(220, 90%, 64%);
  --qcf-blue: hsl(220, 100%, 54%);
  --qcf-orange: hsl(25, 95%, 53%);
  --qcf-orange-hover: hsl(25, 95%, 46%);
  --qcf-green: hsl(142, 72%, 42%);
  --qcf-yellow: hsl(45, 93%, 47%);
  --text-primary: #141518;
  --text-on-brand: #FAFAFA;
  --text-muted: #2B3147;
  --text-light: #6B7280;
  --border: hsl(220, 13%, 91%);
  --border-focus: var(--qcf-blue-500);
  --card-bg: #FFFFFF;
  --page-bg: #F3F4F8;
  --error: #DC2626;
  --error-bg: #FEF2F2;
  --success: #16A34A;
  --gradient-hero: linear-gradient(160deg, #0B1A4B 0%, #0B56D1 40%, #1466FF 60%, #0B56D1 80%, #0B1A4B 100%);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-tile-hover: 0 4px 12px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-anchor: none; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background: var(--page-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-anchor: none;
}
img { max-width: 100%; display: block; }
a { color: var(--qcf-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 16px; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #fff; border-bottom: 1px solid var(--border); height: 64px;
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.header-logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.header-logo img { height: 40px; width: auto; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-phone {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--text-primary); text-decoration: none;
}
.header-phone:hover { color: var(--qcf-blue); text-decoration: none; }
.header-phone svg { width: 18px; height: 18px; color: var(--qcf-blue); }
.header-fca {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 20px; padding: 5px 12px; white-space: nowrap;
}
.header-fca svg { width: 16px; height: 16px; color: var(--qcf-blue); }
.header-soft-check {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--qcf-green);
  background: #ECFDF5; border-radius: 20px; padding: 4px 10px; white-space: nowrap;
}
.header-soft-check svg { width: 14px; height: 14px; }
.header-clear {
  font-size: 12px; color: var(--text-light); cursor: pointer;
  white-space: nowrap; border: none; background: none; padding: 4px 8px; border-radius: 4px;
}
.header-clear:hover { color: var(--error); background: var(--error-bg); }

/* ---------- HERO ---------- */
.hero {
  background: var(--gradient-hero);
  padding: 40px 20px 64px; text-align: center; position: relative; overflow: hidden;
}
.hero-headline { font-size: 40px; font-weight: 800; color: #fff; margin-bottom: 4px; letter-spacing: -0.02em; }
.hero-subheadline { font-size: 20px; font-weight: 600; color: #5BB5F0; margin-bottom: 20px; }
.hero-bullets {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
  max-width: 520px; margin: 0 auto 24px; text-align: left;
}
.hero-bullets li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: rgba(255,255,255,0.92); line-height: 1.5;
}
.hero-bullets .check-icon {
  flex-shrink: 0; width: 22px; height: 22px;
  background: rgba(34,197,94,0.2); border: 2px solid #22C55E;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.hero-bullets .check-icon svg { width: 12px; height: 12px; color: #22C55E; }
.hero-rate-line { font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 6px; font-weight: 500; }
.hero-disclaimer { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.hero-google-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 24px;
  padding: 8px 16px; font-size: 13px; color: #fff;
}
.hero-google-badge .badge-label { font-weight: 700; }
.hero-google-badge .badge-stars { display: flex; gap: 1px; }
.hero-google-badge .badge-stars svg { width: 14px; height: 14px; color: var(--qcf-yellow); fill: var(--qcf-yellow); }
.hero-google-badge .badge-count { color: rgba(255,255,255,0.7); font-size: 12px; }

/* ---------- FORM CARD ---------- */
.form-section {
  max-width: 680px; margin: -48px auto 0;
  padding: 0 20px 40px; position: relative; z-index: 10;
}
.form-card {
  background: var(--card-bg); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 32px 32px 24px; position: relative;
}

/* ---------- PROGRESS BAR ---------- */
.progress-bar {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px; padding: 0 8px;
}
.progress-step { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; }
.progress-circle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; transition: all var(--transition-normal);
  border: 2px solid var(--border); background: #fff; color: var(--text-light);
}
.progress-step.active .progress-circle { background: var(--qcf-navy); border-color: var(--qcf-navy); color: #fff; }
.progress-step.completed .progress-circle { background: var(--qcf-green); border-color: var(--qcf-green); color: #fff; }
.progress-line { flex: 1; height: 2px; background: var(--border); min-width: 40px; position: relative; z-index: 1; }
.progress-line.completed { background: var(--qcf-green); }
.progress-label { font-size: 16px; font-weight: 700; color: var(--text-primary); text-align: center; margin-bottom: 4px; }
.form-advisor-tagline { font-size: 13px; color: var(--text-light); text-align: center; margin-bottom: 20px; font-style: italic; }
.progress-section-name { display: block; margin-top: 20px; text-align: center; }

/* ---------- STEP CONTAINER ---------- */
.steps-wrapper { position: relative; overflow-x: clip; overflow-y: visible; min-height: 200px; overflow-anchor: none; }
.step { display: none; animation: stepFadeIn 300ms ease forwards; }
.step.active { display: block; }
@keyframes stepFadeIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.step.slide-in-reverse { animation-name: stepFadeInReverse; }
@keyframes stepFadeInReverse { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }

/* ---------- STEP QUESTION ---------- */
.step-question { font-size: 22px; font-weight: 700; color: var(--text-primary); text-align: center; margin-bottom: 6px; line-height: 1.3; }
.step-helper { font-size: 14px; color: var(--text-light); text-align: center; margin-bottom: 24px; }

/* ---------- TILE OPTIONS ---------- */
.tiles { display: grid; gap: 12px; margin-bottom: 16px; }
.tiles.cols-2 { grid-template-columns: repeat(2, 1fr); }
.tiles.cols-3 { grid-template-columns: repeat(3, 1fr); }
.tiles.cols-4 { grid-template-columns: repeat(4, 1fr); }
.tiles.cols-5 { grid-template-columns: repeat(5, 1fr); }
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 18px 12px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); background: #fff; cursor: pointer;
  transition: all var(--transition-fast); font-size: 14px; font-weight: 600;
  color: var(--text-primary); text-align: center; min-height: 48px;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.tile:hover { border-color: var(--qcf-blue-400); box-shadow: var(--shadow-tile-hover); transform: translateY(-1px); }
.tile:active { transform: translateY(0); }
.tile.selected { border-color: var(--qcf-blue); background: #EFF6FF; color: var(--qcf-blue-700); }
.tile .tile-label { font-size: 14px; font-weight: 600; }

/* More toggle */
.more-toggle {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 8px; font-size: 13px; font-weight: 600; color: var(--qcf-blue);
  cursor: pointer; margin: 4px 0 12px; border-radius: 6px; transition: background var(--transition-fast);
}
.more-toggle:hover { background: #EFF6FF; }
.more-toggle svg { width: 16px; height: 16px; transition: transform var(--transition-fast); }
.more-toggle.expanded svg { transform: rotate(180deg); }
.more-options { display: none; margin-bottom: 16px; }
.more-options.visible { display: grid; }

/* ---------- FORM INPUTS ---------- */
.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.input-wrapper { position: relative; }
.input-wrapper .prefix {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 16px; font-weight: 600; color: var(--text-light); pointer-events: none; z-index: 2;
}
.input-wrapper .prefix + input { padding-left: 32px; }
.form-input {
  width: 100%; height: 52px; padding: 0 16px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 16px; color: var(--text-primary); background: #fff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast); outline: none;
}
.form-input::placeholder { color: #9CA3AF; }
.form-input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(20,102,255,0.12); }
.form-input.valid { border-color: var(--success); }
.form-input.invalid { border-color: var(--error); box-shadow: 0 0 0 3px rgba(220,38,38,0.08); }
.input-wrapper .valid-tick {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--success); opacity: 0; transition: opacity var(--transition-fast);
}
.input-wrapper .valid-tick.show { opacity: 1; }
.field-error { display: none; font-size: 13px; color: var(--error); margin-top: 4px; padding-left: 2px; }
.field-error.show { display: block; }
.input-row { display: flex; gap: 12px; }
.input-row .input-group { flex: 1; }
.date-row { display: flex; gap: 8px; justify-content: center; }
.date-row .form-input { text-align: center; }
.date-row .date-dd { width: 70px; flex: none; }
.date-row .date-mm { width: 70px; flex: none; }
.date-row .date-yyyy { width: 100px; flex: none; }

/* Searchable select */
.search-select-wrap { position: relative; }
.search-select-wrap .form-input { padding-right: 40px; }
.search-select-dropdown {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 2px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  max-height: 240px; overflow-y: auto; z-index: 50; display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.search-select-dropdown.open { display: block; }
.search-select-option { padding: 12px 16px; font-size: 14px; cursor: pointer; transition: background var(--transition-fast); }
.search-select-option:hover, .search-select-option.highlighted { background: #EFF6FF; }

/* Checkbox */
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; cursor: pointer; }
.checkbox-group input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--qcf-blue); flex-shrink: 0; cursor: pointer; }
.checkbox-group label { font-size: 14px; color: var(--text-muted); line-height: 1.5; cursor: pointer; }

/* Reassurance */
.reassurance { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-light); margin-top: 8px; }
.reassurance svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--qcf-green); }

/* Rep example */
.rep-example {
  background: #F8FAFC; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 12px; color: var(--text-light); line-height: 1.6; margin-top: 16px;
}

/* ---------- ADDRESS LOOKUP ---------- */
.address-lookup-wrap { position: relative; }
.address-lookup-wrap .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-light); pointer-events: none; z-index: 2;
}
.address-lookup-wrap .form-input { padding-left: 40px; }
.address-results {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 2px solid var(--border-focus); border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  max-height: 240px; overflow-y: auto; z-index: 50; display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.address-results.open { display: block; }
.address-result-item {
  padding: 12px 16px; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; gap: 8px; transition: background var(--transition-fast);
}
.address-result-item:hover { background: #EFF6FF; }
.address-result-item svg { width: 16px; height: 16px; color: var(--text-light); flex-shrink: 0; }
.address-confirmed { background: #F0FDF4; border: 2px solid var(--qcf-green); border-radius: var(--radius-sm); padding: 16px; display: none; }
.address-confirmed.show { display: block; }
.address-confirmed-text { font-size: 14px; font-weight: 500; color: var(--text-primary); line-height: 1.6; }
.address-confirmed-change { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--qcf-blue); cursor: pointer; margin-top: 8px; }
.manual-entry-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--qcf-blue); cursor: pointer; margin-top: 8px; }
.manual-entry-link svg { width: 14px; height: 14px; }
.manual-fields { display: none; }
.manual-fields.show { display: block; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 32px; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 700; transition: all var(--transition-fast);
  border: none; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--qcf-orange); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--qcf-orange-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-submit { background: var(--qcf-orange); color: #fff; width: 100%; height: 56px; font-size: 18px; position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-submit:hover { background: var(--qcf-orange-hover); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none !important; }
.btn-submit .spinner { display: none; }
.btn-submit.btn-loading .spinner { display: inline-block; }
.btn-submit.btn-loading .btn-text { opacity: 0.85; }
.btn-back {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--text-light);
  padding: 8px 0; margin-bottom: 16px; cursor: pointer;
  transition: color var(--transition-fast); background: none; border: none; position: relative;
}
.btn-back:hover { color: var(--text-primary); }
.btn-back svg { width: 16px; height: 16px; }
.btn-back .back-tooltip {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--text-primary); color: #fff; font-size: 12px; font-weight: 500;
  padding: 6px 10px; border-radius: 6px; white-space: nowrap; margin-top: 4px; z-index: 10;
}
.btn-back:hover .back-tooltip { display: block; }

/* ---------- FCA CONSENT ---------- */
.fca-consent {
  font-size: 11px; color: var(--text-light); text-align: center;
  line-height: 1.6; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border);
}

/* ---------- REVIEWS SECTION ---------- */
.reviews-section { max-width: 960px; margin: 48px auto 0; padding: 0 20px 48px; }
.reviews-header { text-align: center; margin-bottom: 32px; }
.reviews-score { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; }
.reviews-score-number { font-size: 48px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.reviews-score-stars { display: flex; gap: 2px; }
.reviews-score-stars svg { width: 24px; height: 24px; fill: var(--qcf-yellow); color: var(--qcf-yellow); }
.reviews-count { font-size: 14px; color: var(--text-light); }
.reviews-count strong { color: var(--text-primary); font-weight: 700; }
.reviews-google-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  padding: 8px 16px; background: #fff; border: 1px solid var(--border);
  border-radius: 20px; font-size: 13px; font-weight: 600; color: var(--qcf-blue); transition: all var(--transition-fast);
}
.reviews-google-link:hover { border-color: var(--qcf-blue); box-shadow: var(--shadow-tile-hover); text-decoration: none; }
.reviews-summary { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 24px; margin-bottom: 24px; }
.reviews-summary-title { font-size: 14px; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.reviews-summary-title svg { width: 16px; height: 16px; color: var(--qcf-blue); }
.reviews-summary-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.reviews-summary-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.reviews-summary-list li::before { content: '•'; color: var(--qcf-blue); font-weight: 700; flex-shrink: 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; }
.review-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: #fff; flex-shrink: 0; }
.review-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.review-verified { font-size: 11px; color: var(--text-light); display: flex; align-items: center; gap: 3px; }
.review-verified svg { width: 12px; height: 12px; color: var(--qcf-blue); }
.review-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.review-stars { display: flex; gap: 1px; }
.review-stars svg { width: 14px; height: 14px; fill: var(--qcf-yellow); color: var(--qcf-yellow); }
.review-date { font-size: 12px; color: var(--text-light); }
.review-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.review-readmore { font-size: 12px; font-weight: 600; color: var(--qcf-blue); margin-top: 6px; cursor: pointer; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--qcf-navy); color: rgba(255,255,255,0.7); padding: 40px 20px; font-size: 12px; line-height: 1.7; }
.footer-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.footer-rep-example { background: rgba(255,255,255,0.06); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 20px; font-size: 12px; }
.footer-rep-example strong { color: rgba(255,255,255,0.9); }
.footer-section { margin-bottom: 16px; }
.footer-section h4 { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.9); margin-bottom: 4px; }
.footer-warning { background: rgba(220,38,38,0.15); border-left: 3px solid #DC2626; padding: 10px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 16px; text-align: left; }
.footer-warning strong { color: #FCA5A5; }
.footer-company { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; margin-top: 16px; }
.footer-company strong { color: rgba(255,255,255,0.9); }

/* ---------- LEGAL / SUBMISSION ---------- */
.legal-text { font-size: 12px; color: var(--text-light); line-height: 1.7; margin-top: 16px; }
.legal-text a { color: var(--qcf-blue); }
.commission-disclosure { background: #F8FAFC; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 12px; color: var(--text-light); line-height: 1.6; margin-top: 16px; }
.commission-disclosure strong { color: var(--text-muted); }
.soft-search-notice { display: flex; align-items: center; gap: 8px; background: #ECFDF5; border: 1px solid #BBF7D0; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; color: #166534; margin-top: 12px; margin-bottom: 16px; }
.soft-search-notice svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- SPINNER ---------- */
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 600ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .header-inner { padding: 0 16px; }
  .header-soft-check { display: none; }
  .header-clear { display: none; }
  .header-phone span { display: none; }
  .header-fca span { display: none; }
  .header-fca { padding: 5px 8px; }
  .hero { padding: 32px 16px 72px; }
  .hero-headline { font-size: 28px; }
  .hero-subheadline { font-size: 16px; margin-bottom: 20px; }
  .hero-bullets li { font-size: 14px; }
  .form-section { margin-top: -40px; padding: 0 12px 32px; }
  .form-card { padding: 24px 20px 20px; }
  .progress-circle { width: 30px; height: 30px; font-size: 12px; }
  .progress-line { min-width: 24px; }
  .step-question { font-size: 18px; }
  .tiles.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .tiles.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .btn { height: 48px; }
  .btn-submit { height: 52px; font-size: 16px; }
}
@media (max-width: 480px) {
  .tiles.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .reviews-score-number { font-size: 36px; }
}
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .site-footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--qcf-blue); outline-offset: 2px; }
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .form-input, .form-select, input, select, textarea { font-size: 16px; }
}

/* ===== FORM REVIEW BADGES ===== */
.form-reviews-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 0 14px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 14px;
  flex-wrap: nowrap;
}
.form-review-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.form-review-badge:hover { color: #111; }
.form-review-score { font-weight: 700; font-size: 13px; }
.form-review-stars { color: #f59e0b; font-size: 13px; letter-spacing: 1px; }
.form-review-count { color: #6b7280; font-size: 12px; }
.form-review-sep { color: #d1d5db; font-size: 16px; }
@media (max-width: 400px) {
  .form-review-count { display: none; }
  .form-reviews-row { gap: 8px; }
}
