*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
   background: #f0f4f8; color: #111827; -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }
h1, h2, h3, p { margin: 0; }
img, svg { display: block; }
.hidden { display: none !important; }

/* Backdrop only shows on mobile when popover is open */
.popover-backdrop {
   position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 25;
}
@media (min-width: 701px) { .popover-backdrop { display: none; } }

:root {
   --navy: #1a4b8c; --amber: #f59e0b; --amber-600: #d97706;
   --fees-bg: #f8fafc;
   --gray-800:#1f2937; --gray-900:#111827;
   --green-300:#86efac; --green-600:#16a34a;
   --blue-50:#eff6ff; --blue-100:#dbeafe; --blue-200:#bfdbfe;
   --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
   --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
   --navy-dark: #0b3168;
   --amber-dark: #d97706;
   --amber-bg: #fffbeb;
   --amber-border: #fde68a;
   --amber-text: #b45309;
   --amber-300: #fcd34d;
   --amber-400: #fbbf24;
   --amber-50: #fffbeb;
   --amber-200: #fde68a;
   --amber-700: #b45309;
   --emerald: #10b981;
   --emerald-dark: #059669;
   --emerald-700: #047857;
   --gray-50: #f9fafb;
   --gray-100: #f3f4f6;
   --gray-200: #e5e7eb;
   --gray-300: #d1d5db;
   --gray-400: #9ca3af;
   --gray-500: #6b7280;
   --gray-600: #4b5563;
   --gray-700: #374151;
   --gray-800: #1f2937;
   --blue-50: #eff6ff;
}

/* Layout */
.page { position:relative; min-height:100vh; padding:24px 16px; display:flex; flex-direction:column; align-items:center; gap:12px; }
.page.result-loading{ /*height: 100vh*/; height: 100%; overflow: hidden; justify-content: center;}
.page-inner, .results { width:100%; max-width:1100px; display:flex; flex-direction:column; gap:12px; }
.card-wrap { width:100%; display:flex; justify-content:center; }

/* Header */
.brandbar { display:flex; align-items:center; justify-content:space-between; }
.brand { display:flex; align-items:center; gap:8px; }
.brand-logo { width:32px; height:32px; border-radius:6px; background:var(--navy); color:#fff; font-weight:800; display:flex; align-items:center; justify-content:center; }
.brand-name { font-size:18px; font-weight:800; color:var(--navy); letter-spacing:-0.01em; }
.brand-tag { font-size:11px; color:var(--gray-500); }
.toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.toolbar h1 { font-size:22px; font-weight:700; color:var(--gray-900); line-height:1.2; }
.toolbar h1 .accent { color:var(--navy); }
.btn-row { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.tool-btn { display:inline-flex; align-items:center; gap:6px; background:#fff; border:1px solid var(--gray-200); color:var(--gray-700); font-size:12px; font-weight:600; padding:8px 14px; border-radius:8px; box-shadow:var(--shadow-sm); }
.tool-btn .pill { display:inline-flex; align-items:center; justify-content:center; background:var(--amber); color:#fff; font-size:10px; font-weight:700; border-radius:9999px; width:16px; height:16px; margin-left:2px; }
.tool-btn .strong { color:var(--gray-900); }
.tool-btn--compare { border-color:var(--navy); color:var(--navy); }
.notice { display:flex; align-items:flex-start; gap:8px; background:rgba(239,246,255,0.6); border:1px solid var(--blue-100); border-radius:8px; padding:8px 12px; margin-bottom: 12px;}
.notice p { font-size:11px; color:var(--gray-600); }
.notice svg { flex-shrink:0; margin-top:2px; }

/* Collapsed card */
.card-collapsed { width:100%; max-width:900px; background:#fff; border-radius:12px; box-shadow:var(--shadow-sm); border:1px solid var(--gray-200); overflow:hidden; transition:border-color .15s; }
.card-collapsed:hover { border-color:rgba(26,75,140,.3); }
.row-flex { display:flex; align-items:stretch; }
.row-logo { background:var(--navy); display:flex; align-items:center; justify-content:center; padding:0 16px; width:84px; }
.logo-circle { border-radius:9999px; box-shadow:0 0 0 2px rgba(255,255,255,.2); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; background-repeat: no-repeat; background-position: center; background-size: contain;}
.logo-circle--sm { width:44px; height:44px; font-size:16px; }
.logo-circle--lg { width:56px; height:56px; font-size:20px; }
.row-body { flex:1; padding:12px 16px; display:flex; align-items:center; gap:16px; min-width:0; }
.row-name { min-width:180px; max-width:220px; }
.name-line { display:flex; align-items:center; gap:6px; }
.name-line .name { font-size:13px; font-weight:700; color:var(--gray-900); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.promo-pill { background:var(--amber); color:#fff; font-size:8px; font-weight:700; padding:2px 4px; border-radius:3px; text-transform:uppercase; letter-spacing:.05em; flex-shrink:0; }
.meta-line { display:flex; align-items:center; gap:6px; margin-top:2px; font-size:10px; color:var(--gray-500); }
.meta-dot { color:var(--gray-300); }
.meta-callback { color:var(--green-600); font-weight:600; }
.metrics { display:flex; align-items:center; gap:20px; flex:1; }
.metric { text-align:center; }
.metric-label { font-size:9px; text-transform:uppercase; color:var(--gray-400); letter-spacing:.05em; font-weight:600; }
.metric-value { font-size:14px; font-weight:700; color:var(--navy); line-height:1; margin-top:2px; }
.metric-rating { display:inline-flex; align-items:center; gap:2px; font-size:13px; font-weight:700; color:var(--amber-600); line-height:1; margin-top:2px; }
.metric-rating .count { color:var(--gray-400); font-weight:400; font-size:10px; }
.row-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.btn-contact { background:var(--amber); color:#fff; font-weight:700; font-size:12px; padding:8px 16px; border-radius:8px; box-shadow:var(--shadow-sm); transition:background .15s; max-height:40px; }
.btn-contact.disabled_link{cursor: no-drop;}
.btn-contact:hover { background:var(--amber-600); }
.btn-contact--lg { font-size:14px; padding:10px 24px; white-space:nowrap; }
.btn-show-more { display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:600; color:var(--navy); padding:8px; border-radius:4px; }
.btn-show-more:hover { background:var(--blue-50); }

/* Expanded card */
.card-expanded { width:100%; max-width:1100px; background:#fff; border-radius:12px; box-shadow:var(--shadow-md); border:2px solid var(--navy); overflow:hidden; }
.exp-header { display:flex; align-items:center; gap:16px; padding:16px 20px; background:var(--navy); }
.exp-header-body { flex:1; min-width:0; }
.exp-header-body h2 { font-size:17px; font-weight:700; color:#fff; line-height:1.2; }
.exp-meta { display:flex; align-items:center; gap:4px; margin-top:2px; color:rgba(255,255,255,.6); font-size:13px; }
.exp-meta svg{width:14px; height:14px;}
.exp-callback { display:flex; align-items:center; gap:6px; margin-top:4px; color:var(--green-300); }
.exp-callback span { font-size:11px; font-weight:600; }
.exp-actions { display:flex; align-items:stretch; gap:12px; flex-shrink:0; }
.promo-block { display:flex; align-items:center; gap:8px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2); border-radius:8px; padding:6px 12px; max-width:380px; }
.promo-block .promo-tag { background:var(--amber); color:#fff; font-size:11px; font-weight:700; padding:2px 6px; border-radius:3px; }
.promo-block .promo-text { font-size:13px; color:rgba(255,255,255,.9); line-height:1.2; }

/* Fees */
.fees { background:var(--fees-bg); padding:12px 20px; border-top:1px solid var(--gray-100); }
.fees-grid { display:grid; grid-template-columns:repeat(5, 1fr); gap:16px; }
.fees-grid.four{ grid-template-columns:repeat(4, 1fr); text-align:center; }
.fee-label { font-size:13px; color:var(--gray-500); font-weight:500; line-height:1.2; }
.fee-label-small { font-size: 12px; color: #9ca3af; }
.fee-value { font-size:18px; font-weight:700; color:var(--navy); margin-top:4px; }
.fee-detail { font-size:12px; color:#3b82f6; margin-top:2px; text-transform:uppercase; letter-spacing:.03em; }

/* 4-col blocks */
.blocks { border-top:1px solid var(--gray-100); display:grid; grid-template-columns:repeat(4, 1fr); }
.blocks.all-four{grid-template-columns: repeat(4, minmax(0, 1fr));}
.blocks > .block + .block { border-left:1px solid var(--gray-100); }
.block { padding:12px 16px; }
.block-title { display:flex; align-items:center; justify-content:center; gap:6px; margin-bottom:8px; font-size:12px; font-weight:700; color:var(--navy); text-transform:uppercase; letter-spacing:.05em; }
.review-list { display:flex; flex-direction:column; gap:8px; }
.review-card { background:#fff; border:1px solid var(--gray-100); border-radius:8px; box-shadow:var(--shadow-sm); padding:6px 10px; }
.review-card-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:4px; }
.review-source { font-size:10px; font-weight:800; letter-spacing:-0.01em; }
.review-source img{ width:75px; height:auto; }
.rating-badge { display:inline-flex; align-items:baseline; gap:2px; color:#fff; font-weight:800; border-radius:4px; padding:2px 6px; line-height:1; }
.rating-badge .num { font-size:11px; }
.rating-badge .of  { font-size:8px; opacity:.8; }
.rating-amber { background:linear-gradient(135deg, #fbbf24, var(--amber)); }
.rating-green { background:linear-gradient(135deg, #00b67a, #009267); }
.review-meta { font-size:10px; color:var(--gray-500); }
.review-meta .strong { color:var(--gray-700); font-weight:600; }
.no-reviews { background:linear-gradient(to bottom, rgba(239,246,255,.6), #fff); border:1px dashed var(--blue-200); border-radius:8px; padding:12px 10px; text-align:center; display:flex; flex-direction:column; align-items:center; }
.no-reviews-icon { width:32px; height:32px; border-radius:9999px; background:#fff; box-shadow:var(--shadow-sm); border:1px solid var(--blue-100); display:flex; align-items:center; justify-content:center; margin-bottom:6px; }
.no-reviews-title { font-size:11px; font-weight:700; color:var(--gray-900); line-height:1.2; }
.no-reviews-sub   { font-size:10px; color:var(--gray-500); margin-top:2px; line-height:1.3; }
.portal-grid { /*display:grid; grid-template-columns:1fr 1fr; gap:8px;*/ }
.portal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;}
.portal-tile img{width:auto; height:auto; max-width:96%;}
.portal-tile { display:flex; align-items:center; justify-content:center; background:#fff; border:1px solid var(--gray-100); border-radius:4px; box-shadow:var(--shadow-sm); padding:0 8px; height:36px; }
.logo-box { display:inline-flex; align-items:center; justify-content:center; font-weight:800; letter-spacing:.02em; font-size:10px; border-radius:3px; padding:4px 6px; white-space:nowrap; }
.award-list { display:flex; flex-direction:column; gap:6px; }
.award { display:flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--gray-100); border-radius:4px; box-shadow:var(--shadow-sm); padding:6px 8px; }
.award span { font-size:11px; font-weight:600; color:var(--gray-800); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.blocks.all-four .award span{ display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: break-spaces; }
.reg-grid { /*display:grid; grid-template-columns:1fr 1fr; gap:6px;*/ }
.reg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.reg-tile img{ width:auto; height:auto; max-width:96%; }
.reg-tile { background:#fff; border:1px solid var(--gray-100); border-radius:4px; box-shadow:var(--shadow-sm); display:flex; align-items:center; justify-content:center; height:30px; overflow:hidden; }
.reg-tile .logo-box { font-size:9px; padding:2px 6px; }

/* Extras */
.extras { border-top:1px solid var(--gray-100); /*background:var(--fees-bg);*/ background: #fff; padding:20px; display:flex; flex-direction:column; gap:20px; }
.extras h3 { font-size:15px; font-weight:700; color:var(--navy); margin-bottom:10px; }
.review-grid { display:grid; grid-template-columns:repeat(5, 1fr); gap:12px; }
.testimonial { background:#fff; border:1px solid var(--gray-100); border-radius:8px; box-shadow:var(--shadow-sm); padding:12px; display:flex; flex-direction:column; gap:8px; }
.testimonial-name { font-size:13px; font-weight:700; color:var(--gray-900); line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.stars-row { display:flex; align-items:center; gap:1px; margin-top:2px; }
.testimonial-quote { position:relative; }
.testimonial-quote svg { position:absolute; top:-2px; left:-2px; }
.testimonial-text { font-size:12px; color:var(--gray-600); line-height:1.4; padding-left:14px; display:-webkit-box; -webkit-line-clamp:6; -webkit-box-orient:vertical; overflow:hidden; }
.extras-cols { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.services-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px 16px; }
.service-item { display:flex; align-items:center; gap:8px; font-size:14px; color:var(--gray-700); }
.service-item svg{ width:18px; height:18px; }
.about-text { font-size:14px; color:var(--gray-600); line-height:1.55; }
.map-wrap { position:relative; border-radius:8px; overflow:hidden; border:1px solid var(--gray-200); box-shadow:var(--shadow-sm); background:#dfeaf3; flex:1; min-height:260px; }
.map-wrap > svg { position:absolute; inset:0; width:100%; height:100%; }
.map-pin-wrap { position:absolute; left:50%; top:50%; transform:translate(-50%,-100%); display:flex; flex-direction:column; align-items:center; }
.map-pin-label { background:var(--navy); color:#fff; font-size:10px; font-weight:700; padding:4px 8px; border-radius:6px; box-shadow:var(--shadow-md); white-space:nowrap; margin-bottom:4px; }
.map-pin-arrow { width:0; height:0; border-left:5px solid transparent; border-right:5px solid transparent; border-top:6px solid var(--navy); margin-top:-6px; }
.map-pin-dot { width:24px; height:24px; border-radius:9999px; background:var(--amber); border:3px solid #fff; box-shadow:var(--shadow-md); display:flex; align-items:center; justify-content:center; }
.map-pin-dot::after { content:''; width:6px; height:6px; border-radius:9999px; background:#fff; }
.map-address { position:absolute; bottom:0; left:0; right:0; background:rgba(255,255,255,.95); padding:8px 12px; border-top:1px solid var(--gray-200); display:flex; align-items:center; gap:8px; }
.map-address span { font-size:11px; color:var(--gray-700); line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.col-right { display:flex; flex-direction:column; }

/* Toggles & footers */
.toggle-bar { border-top:1px solid var(--gray-100); display:flex; justify-content:center; padding:8px 0; }
.toggle-btn { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; color:var(--navy); padding:4px 12px; }
.collapse-bar { border-top:1px solid var(--gray-100); background:var(--gray-50); display:flex; justify-content:center; padding:6px 0; }
.collapse-btn { font-size:11px; color:var(--gray-500); }
.collapse-btn:hover { color:var(--navy); }
.showmore-wrap { width:100%; display:flex; flex-direction:column; align-items:center; gap:8px; padding:12px 0 8px; }
.showmore-text { font-size:12px; color:var(--gray-500); }
.showmore-btn { display:inline-flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--gray-300); color:var(--navy); font-size:13px; font-weight:700; padding:12px 24px; border-radius:8px; box-shadow:var(--shadow-sm); transition:border-color .15s; }
.showmore-btn:hover { border-color:var(--navy); }

/* =========================================================
   Filter / Sort popovers
   ========================================================= */
   .popover-anchor { position: relative; display: inline-block; }
   .popover {
      position: absolute; right: 0; top: calc(100% + 8px);
      z-index: 30; background: #fff; border-radius: 12px;
      border: 1px solid var(--gray-200);
      box-shadow: 0 20px 35px -5px rgba(0,0,0,.18), 0 8px 12px -6px rgba(0,0,0,.1);
      overflow: hidden;
   }
   .popover::before {
      content: ''; position: absolute; top: -6px; right: 24px;
      width: 12px; height: 12px; background: #fff;
      border-left: 1px solid var(--gray-200); border-top: 1px solid var(--gray-200);
      transform: rotate(45deg);
   }
   .popover-filter { width: 460px; }
   .popover-sort   { width: 280px; }
   .popover-head {
      display: flex; align-items: center; justify-content: space-between;
      padding: 12px 16px; border-bottom: 1px solid var(--gray-100);
      background: linear-gradient(to bottom, var(--fees-bg), #fff);
   }
   .popover-head .title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--gray-900); }
   .popover-head .badge-amber { background: var(--amber); color: #fff; font-size: 10px; font-weight: 700; border-radius: 9999px; padding: 2px 8px; }
   .popover-close {
      width: 28px; height: 28px; border-radius: 9999px;
      display: flex; align-items: center; justify-content: center; color: var(--gray-500);
   }
   .popover-close:hover { background: var(--gray-100); }
   .popover-body { padding: 16px; max-height: 520px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
   .section-label {
      display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
   }
   .section-label .label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--navy); }
   .section-label .hint  { font-size: 11px; font-weight: 600; color: var(--gray-700); }

/* Filter content */
.fee-group-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; }
.fee-group-title { font-size: 12px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 11px; color: var(--gray-700); padding: 2px 0; }
.checkbox-row input { display: none; }
.checkbox-box {
   width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--gray-300);
   background: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
   transition: background .15s, border-color .15s;
}
.checkbox-row input:checked + .checkbox-box { background: var(--navy); border-color: var(--navy); }
.checkbox-row input:checked + .checkbox-box::after { content: '✓'; color: #fff; font-size: 10px; font-weight: 700; line-height: 1; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
   font-size: 11px; font-weight: 600; padding: 6px 12px; border-radius: 9999px;
   border: 1px solid var(--gray-200); background: #fff; color: var(--gray-700);
   cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip:hover:not(.active) { border-color: var(--gray-400); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; }
.toggle-row span { font-size: 12px; color: var(--gray-800); }
.switch { width: 36px; height: 20px; border-radius: 9999px; background: var(--gray-300); padding: 2px; cursor: pointer; transition: background .15s; flex-shrink: 0; }
.switch::after { content: ''; display: block; width: 16px; height: 16px; border-radius: 9999px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s; }
.switch.on { background: var(--amber); }
.switch.on::after { transform: translateX(16px); }
.popover-foot {
   border-top: 1px solid var(--gray-100); padding: 10px 12px;
   display: flex; align-items: center; justify-content: space-between;
   background: var(--fees-bg); gap: 8px;
}
.btn-clear {
   display: inline-flex; align-items: center; gap: 4px;
   font-size: 11px; font-weight: 600; color: var(--gray-600);
   padding: 6px 10px; border-radius: 6px;
}
.btn-clear:hover { color: var(--gray-800); background: var(--gray-100); }
.btn-apply {
   font-size: 12px; font-weight: 700; color: #fff;
   background: var(--amber); padding: 8px 16px; border-radius: 8px; box-shadow: var(--shadow-sm);
}
.btn-apply.navy { background: var(--navy); }
.btn-apply:hover { filter: brightness(.95); }

/* Sort radio list */
.sort-list { padding: 4px 0; max-height: 360px; overflow-y: auto; }
.sort-item {
   display: flex; align-items: center; gap: 12px;
}
.sort-item input{display:none;}
.sort-item.active, .sort-item:hover { background: rgba(239,246,255,.6); }
.sort-radio {
   width: 16px; height: 16px; border-radius: 9999px; border: 2px solid var(--gray-300);
   display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sort-item label{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 10px 16px;
}
.sort-item.active .sort-radio, .sort-item input[type='radio']:checked + .sort-radio { border-color: var(--navy); }
.sort-item.active .sort-radio::after, .sort-item input[type='radio']:checked + .sort-radio::after { content: ''; width: 8px; height: 8px; border-radius: 9999px; background: var(--navy); }
.sort-text { flex: 1; }
.sort-label { font-size: 13px; color: var(--gray-800); font-weight: 600; }
.sort-item.active .sort-label, .sort-item input[type='radio']:checked + .sort-label { color: var(--navy); font-weight: 700; }
.sort-sub { font-size: 10px; color: var(--gray-500); margin-top: 2px; }

/* Active state for tool buttons when popover open */
.tool-btn.is-open { background: var(--navy); color: #fff; border-color: var(--navy); }
.tool-btn.is-open svg { color: #fff !important; }
.tool-btn.is-open .strong { color: #fff; }

/* =========================================================
   Compare-mode view  (Explore 1 — Density Row design)
   ========================================================= */
   .compare-wrap {
      width: 100%; max-width: 900px;
      display: flex; flex-direction: column; gap: 12px;
   }
   .compare-header {
      background: linear-gradient(135deg, var(--navy) 0%, #2563eb 100%);
      color: #fff; border-radius: 12px;
      padding: 20px 22px;
      display: flex; align-items: center; justify-content: space-between; gap: 14px;
      box-shadow: var(--shadow-md);
   }
   .compare-header-text h2 {
      font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em;
   }
   .compare-header-text p {
      font-size: 12px; color: rgba(255,255,255,.78); margin-top: 4px;
   }
   .btn-exit-compare {
      background: rgba(255,255,255,.15); color: #fff;
      font-size: 12px; font-weight: 700; padding: 9px 14px; border-radius: 8px;
      border: 1px solid rgba(255,255,255,.25); white-space: nowrap;
      display: inline-flex; align-items: center; gap: 6px;
   }
   .btn-exit-compare:hover { background: rgba(255,255,255,.25); }

/* Density row */
.density-row {
   width: 100%; background: #fff; border-radius: 12px;
   border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
   overflow: hidden;
}
.density-row.is-active {
   border: 2px solid var(--navy); box-shadow: var(--shadow-md);
}
.density-band {
   background: var(--navy); display: flex; align-items: stretch; gap: 12px;
   padding: 14px 16px;
}
.density-agent, .density-agent-inner { display: flex; align-items: center;}
.density-agent-inner{gap: 12px; /*flex-shrink: 0; min-width: 170px;*/}
.density-agent .name { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.2; white-space: nowrap; }
.density-agent .meta { display: flex; align-items: center; gap: 3px; color: rgba(255,255,255,.6); font-size: 12px; margin-top: 2px; white-space: nowrap; }
.density-agent .response { display: flex; align-items: center; gap: 4px; margin-top: 4px; white-space: nowrap; }
.density-agent .response.green { color: var(--green-300); }
.density-agent .response.muted { color: rgba(255,255,255,.55); }
.density-agent .response span { font-size: 10px; font-weight: 600; line-height: 1.2; }
.density-divider { width: 1px; background: rgba(255,255,255,.2); align-self: center; height: 40px; flex-shrink: 0; }
.density-fees { display: flex; gap: 12px; flex: 1; align-items: center; min-width: 0; }
.density-fee { display: flex; flex-direction: column; min-width: 0; height:100%; }
.density-fee .fee-l { font-size: 11px; color: rgba(255,255,255,.6); line-height: 1; }
.density-fee .fee-v { font-size: 15px; color: #fff; font-weight: 700; line-height: 1.15; margin-top: 2px; }
.density-fee .fee-s { font-size: 10px; color: rgba(255,255,255,.4); line-height: 1; }
.density-stats { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.density-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.density-stat .stat-top { display: flex; align-items: center; gap: 3px; }
.density-stat .stat-v { font-size: 12px; font-weight: 700; color: #fff; }
.density-stat .stat-l { font-size: 9px; color: rgba(255,255,255,.6); }
.btn-density-contact {
   background: var(--amber); color: #fff; font-weight: 700; font-size: 13px;
   padding: 10px 18px; border-radius: 8px; box-shadow: var(--shadow-sm);
   white-space: nowrap; align-self: center;
}
.btn-density-contact:hover { background: var(--amber-600); }

/* Bottom strip */
.density-bottom {
   border-top: 1px solid var(--gray-100); background: #fff;
   padding: 8px 18px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.density-bottom-section { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.density-bottom-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-400); }
.density-bottom-divider { width: 1px; height: 18px; background: var(--gray-200); align-self: center; }
.density-portal {
   background: #fff; border: 1px solid var(--gray-100); border-radius: 4px;
   height: 22px; padding: 0 4px;
   display: flex; align-items: center; justify-content: center;
}
.density-portal img {
  height: 20px;
  width: auto;
}
.density-portal .logo-box { font-size: 9px; padding: 2px 4px; }
.award-chip {
   background: #fffbeb; border: 1px solid #fde68a; color: #b45309;
   font-size: 9px; padding: 2px 6px; border-radius: 3px; white-space: nowrap;
}
.no-awards { font-size: 9px; color: var(--gray-400); font-style: italic; }

.density-bottom.mobile {
  display: flex !important;
  background: #01438a;
  border-top: 0px;
}

.density-bottom.mobile .density-stats{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  justify-content: flex-start;
}
.density-bottom.mobile .density-stats .density-stat {
   display: flex;
   flex-direction: row;
   align-items: center;
   gap: 6px;
   justify-content: flex-start;
}
.density-bottom.mobile .density-stats .density-stat .stat {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
}
.btn-density-contact.mobile{
   display:none;
   width:auto;
}
.fee-label-small.mobile, .fee-value.mobile{ display:none; }

.density-fees.four { display: grid; grid-template-columns: repeat(4, 1fr); }
.density-fees.five { display: grid; grid-template-columns: repeat(5, 1fr); }

/* ---------- Section / scene wrapper ---------- */
.page.result-loading .backdrop { position: absolute; /*inset: 0;*/ height: 100vh;}
.dim {
  position: absolute; inset: 0;
  background: rgba(11, 30, 58, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.stage {
   position: relative;
   height: 100%;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 40px 24px;
   width: 100%;
   z-index:10;
}
.stage.signup, .stage.request_received{ display:none; }

/* ---------- Loading modal ---------- */
.modal {
 position: relative;
 background: #fff;
 border-radius: 16px;
 box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
 overflow: hidden;
 z-index: 1;
 width: 100%;
 max-width: 640px;
}
.modal-header {
  background: linear-gradient(135deg, #1a4b8c, #0b3168);
  color: #fff;
  padding: 28px 32px 24px;
  text-align: center;
}
.modal-header.done {
  background: linear-gradient(135deg, #059669, #047857);
}
.modal-header .step-label {
 font-size: 15px;
 font-weight: 700;
 letter-spacing: 0.18em;
 text-transform: uppercase;
 opacity: 0.7;
 margin-bottom: 12px;
}
.modal-header h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
}
.modal-header p {
   font-size: 18px;
   margin-top: 12px;
   opacity: 0.85;
}
.modal-body {
  padding: 28px 32px 24px;
}
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  /*gap: 16px;*/
}
.step-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}
.step-bullet {
  width: 48px; height: 48px;
  border-radius: 999px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.step-bullet.done { background: #10b981; }
.step-bullet.active { background: #1a4b8c; }
.step-bullet.pending { background: #e5e7eb; color: #6b7280; }
.step-bullet.active::after {
  content: "";
  display: block;
  width: 24px; height: 24px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}
.step-bullet.active span { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.step-label {
  flex: 1;
  font-weight: 600;
  font-size: 20px;
  /*color: var(--gray-500);*/
}
.step-label.done { color: #9ca3af; text-decoration: line-through; }
.step-label.active { color: #1a4b8c; }
.step-label.pending { color: #6b7280; }
.step-status {
   font-size: 15px;
   font-weight: 700;
}
.step-status.done { color: #059669; }
.step-status.active { color: #1a4b8c; }
.progress-track {
 margin-top: 28px;
 height: 12px;
 background: var(--gray-100);
 border-radius: 9999px;
 overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a4b8c, #3b82f6);
  border-radius: 999px;
  transition: width 0.3s;
}
.progress-fill.done { background: var(--emerald); }
.all-done-counter {
  text-align: center;
  margin-top: 20px;
  display:none;
}
.all-done-counter .num {
   font-size: 52px;
   font-weight: 700;
   color: var(--navy);
   line-height: 1;
}
.all-done-counter .sub {
   font-size: 16px;
   color: var(--gray-600);
   margin-top: 8px;
}

/* Trustpilot footer */
.trustpilot-footer {
  padding: 16px 32px 20px;
  border-top: 1px solid #f3f4f6;
  background: rgba(249, 250, 251, 0.6);
  text-align: left;
}
.trustpilot-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.tp-text { 
 font-size: 16px;
 font-weight: 700;
 color: var(--gray-700);
}
.tp-stars { display: inline-flex; gap: 2px; }
.tp-star {
  width: 24px;
  height: 24px;
  color: #fff;
  font-size: 10px;
  background: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tp-star svg {
  width: 16px;
  height: 16px;
  color: white;
  fill: white;
}
.trustpilot-row .on{
   font-size: 15px;
   color: var(--gray-500);
}
.trustpilot-row .brand{
 font-size: 16px;
 font-weight: 700;
 color: var(--gray-800);
}
.tp-sub {
   font-size: 14px;
   color: var(--gray-500);
   margin-top: 6px;
}

/* ---------- Signup modal ---------- */
.signup-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  width: 760px;
  max-width: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
}
.signup-stats {
  background: linear-gradient(135deg, #1a4b8c, #0b3168);
  padding: 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.signup-stats .used-by {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}
.signup-stats .big-num {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
}
.signup-stats .who {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
}
.stat-bullets {
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat-bullet {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.stat-bullet .icon { color: #fcd34d; font-size: 16px; }
.testimonial-signup {
  margin-top: auto;
  padding-top: 24px;
}
.signup-modal .trust-list {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom:22px;
}
.signup-modal .trust-list .item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.signup-modal .trust-list .item svg {
 width: 20px;
 height: 20px;
 color: var(--amber-300);
 flex-shrink: 0;
}
.testimonial-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px;
}
.testimonial-card .stars { display: inline-flex; gap: 1px; margin-bottom: 8px; }
.testimonial-card .stars .tp-star { width: 14px; height: 14px; font-size: 9px; }
.testimonial-card .title { font-size: 14px; font-weight: 700; }
.testimonial-card .text {
  font-size: 12.5px;
  color: rgba(255,255,255,0.8);
  line-height: 1.45;
  margin: 4px 0 0;
}
.testimonial-card .who2 {
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 12px;
}

.signup-form { padding: 28px; display: flex; flex-direction: column; }
.signup-form h2 {
 font-weight: 700;
 margin: 0;
 line-height: 1.2;
 font-size: 24px;
 color: var(--navy);
}
#popup_result2 h2{
   text-align: center;
}
#popup_result2 .subtitle {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-800);
  text-align: center;
  margin: 8px 0 24px;
}
.signup-form .subline, .subline2{
   margin: 8px 0 0;
   font-size: 15px;
   color: var(--gray-600);
   margin-top: 8px;
}
.badge-amber {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-radius: 9999px;
  padding: 6px 12px;
  margin-top: 16px;
}
.badge-amber svg {
 width: 14px;
 height: 14px;
 color: var(--amber-dark);
 fill: var(--amber);
}
.badge-amber .text {
 font-size: 12px;
 font-weight: 700;
 text-transform: uppercase;
 letter-spacing: 0.05em;
 color: var(--amber-text);
}
.form-fields {
   display: flex;
   flex-direction: column;
   margin-top: 12px;
   gap: 12px;
}
.form-fields input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.form-fields input:focus { border-color: #1a4b8c; }
.cta-btn {
   margin-top: 16px;
   width: 100%;
   background: var(--amber);
   color: white;
   font-size: 16px;
   font-weight: 700;
   padding: 16px;
   border: none;
   border-radius: 12px;
   cursor: pointer;
   box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
   transition: background .15s;
}
#popup_result3 .cta-btn, #popup_result2 .cta-btn {
  border-radius: 9999px;
}
.form-fields .field{
  position: relative;
}
.form-fields .field svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--navy);
  pointer-events: none;
}
.form-fields .field input {
 width: 100%;
 background: var(--gray-50);
 border: 2px solid var(--gray-200);
 border-radius: 12px;
 padding: 14px 16px 14px 48px;
 font-size: 16px;
 font-family: inherit;
 color: var(--gray-800);
 outline: none;
 transition: background .15s, border-color .15s;
}
.field input:focus {
 background: white;
 border-color: var(--navy);
}
.cta-btn:hover { background: #d97706; }

.inline-trustpilot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.inline-trustpilot .tp-star {    
 width: 20px;
 height: 20px;
 background: var(--emerald);
 display: flex;
 align-items: center;
 justify-content: center; 
}
.inline-trustpilot .tp-star svg {
  width: 14px;
  height: 14px;
  color: white;
  fill: white;
}
.inline-trustpilot .score { 
   font-size: 14px;
   font-weight: 700;
   color: var(--gray-800); 
}
.inline-trustpilot .on { 
   font-size: 13px;
   color: var(--gray-500); 
}
.inline-trustpilot .brand {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
}
.inline-trustpilot .brand .em {
  color: var(--emerald);
}
.terms-line {
   font-size: 12px;
   color: var(--gray-500);
   margin-top: 8px;
   text-align: center;
}
.toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}
.toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  transition: background 0.15s;
}
.toggle .slider::before {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  left: 2px; top: 2px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: transform 0.15s;
}
.toggle input:checked + .slider { background: #1a4b8c; }
.toggle input:checked + .slider::before { transform: translateX(16px); }

@media (max-width: 700px) {
   .compare-header { flex-direction: column; align-items: stretch; padding: 16px; }
   .compare-header-text h2 { font-size: 18px; }
   .btn-exit-compare { justify-content: center; }
   .density-band { flex-wrap: wrap; padding: 12px; gap: 10px; }
   .density-agent { width: 100%; min-width: 0; }
   .density-divider { display: none; }
   .density-fees { width: 100%; flex: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
   .density-stats { width: 100%; justify-content: space-between; }
   .btn-density-contact { width: 100%; padding: 11px; }
   .density-bottom { padding: 8px 12px; gap: 10px; }
   .density-bottom-divider { display: none; }
}

/* Slow shine sweep */
@keyframes rrLogoShineSweep {
   0%   { transform:translateX(-140%) skewX(-20deg); opacity:0; }
   10%  { opacity:.85; }
   55%  { opacity:.85; }
   100% { transform:translateX(240%) skewX(-20deg); opacity:0; }
}
.shine { position:relative; overflow:hidden; }
.shine::after {
   content:''; position:absolute; top:0; left:0; width:55%; height:100%; pointer-events:none;
   background:linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,.6) 50%, rgba(255,255,255,0) 70%, rgba(255,255,255,0) 100%);
   animation: rrLogoShineSweep 3.5s ease-in-out infinite;
   z-index:1;
}

form label.error {
  color: #ff0000;
  font-size: 12px;
}
.ajax-load-container{
   display: flex;
   justify-content: center;
   align-items: center;
   padding-top: 6px;
}
#popup_result3{
 height: 100%;
 flex-direction: column;
 justify-content: center;
 position:relative;
}
.popup-verification-f-second-p {
   line-height: 16px;
   margin-bottom: 0px;
   font-weight: 400;
   text-align: right;
   font-size: 13px;
   color: var(--gray-600);
   margin-top: 8px;
}
.popup-verification-f-second-p a {
  cursor: pointer;
  padding: 0px 0px 0px 3px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.back-button{ 
   position: absolute;
   top: 0px;
   right: 0px;
   background: none;
   border: none;
   color: var(--navy);
   font-size: 14px;
   font-weight: 500;
   cursor: pointer;
   padding: 0;
   font-family: inherit;
}
.back-button:hover{ text-decoration:underline; }

.disable-button-agent {
 color: var(--Old-Color-Gray, #B2B2B2) !important;
 background: var(--Old-Color-Disable, #EEE);
 background-color: var(--Old-Color-Disable, #EEE) !important;
 pointer-events: none;
 font-weight: 600;
}
.popup2-rw{
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 12px;
}
.popup2-rw img {
 width: 100%;
 height: auto;
}
.label_InputUserType {
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 300;
  font-size: 16px;
  line-height: 30px;
  flex-direction: column;
}
.InputUserText_container {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  font-size: 16px;
  height: 44px;
  background-color: rgb(247, 247, 247);
  color: rgb(100, 100, 100);
  width: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
}
.InputUserType {
 display: none;
}
.lbl-txt{
   line-height: 1.2;
   display: block;
   font-size: 14px;
   color: var(--gray-700);
   margin-bottom: 8px;
}
label.popup2-col {
  background-repeat: no-repeat;
  background-position: bottom;
  border-radius: 8px;
  height: 45px;
  margin-bottom: 0px;
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(247, 247, 247);
  color: rgb(100, 100, 100);
}
.InputUserPropType {
  display: none;
}
.look-btn {
  padding: 0px;
  width: 100%;
  text-align: center;
  font-weight: 400 !important;
  color: inherit;
}

input.chosen-value {
 height: 44px !important;
 border: 1px solid #ddd !important;
 width: 100% !important;
 box-shadow: none !important;
 font-size: 15px !important;
}
ul.data8-postcodelookup-list_new {
 position: absolute !important;
 background-color: rgb(255, 255, 255) !important;
 padding: 1px !important;
 width: 100% !important;
 z-index: 50102 !important;
 top: 60px !important;
 left: 0px !important;
 display: none !important;
 height: 0px !important;
 margin-top: 5px !important;
}
ul.data8-postcodelookup-list_new.active {
 display: block !important;
 margin-top: 5px !important;
}
.data8-postcodelookup-list_new {
 display: none !important;
 height: 0px !important;
 width: 100% !important;
 background: #fff !important;
 padding-top: 10px !important;
 padding-left: 0px !important;
 position: absolute !important;
 top: 0px !important;
 bottom: 0px !important;
}
.data8-postcodelookup-list_new.active {
 display: block !important;
 height: fit-content !important;
 overflow: scroll !important;
 max-height: 305px !important;
}
.data8-postcodelookup-list_new.active li {
  cursor: pointer !important;
}
.data8-postcodelookup-dropdown_new {
  position: absolute !important;
  background-color: rgb(255, 255, 255) !important;
  padding: 1px !important;
  width: 100% !important;
  z-index: 50102 !important;
  top: 90px !important;
  left: 0px !important;
  display: none !important;
  height: 0px !important;
}
.data8-postcodelookup-dropdown_new.active {
  margin-top: 5px !important;
  display: block !important;
}
.data8-postcodelookup-dropdown_new > div {
  display: none !important;
}
#AddressCapture_FindButton {
  outline: 0 !important;
  background: transparent !important;
  border-radius: 8px !important;
  z-index: 0 !important;
  display: none !important;
  height: 44px !important;
  border: 1px solid #ddd !important;
  width: 100% !important;
  box-shadow: none !important;
  font-size: 15px !important;
}
.input-group {
  position: relative;
}

.close-btn {
 position: absolute;
 top: 16px;
 right: 16px;
 width: 32px;
 height: 32px;
 border-radius: 999px;
 background: #f3f4f6;
 color: #6b7280;
 font-size: 14px;
 display: flex;
 align-items: center;
 justify-content: center;
 z-index: 5;
}
.close-btn svg {
 width: 16px;
 height: 16px;
}
.check-circle {
 width: 64px;
 height: 64px;
 border-radius: 999px;
 background: rgba(255, 255, 255, 0.1);
 box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
 display: flex;
 align-items: center;
 justify-content: center;
 margin: 0 auto;
 color: #fbbf24;
 font-size: 36px;
 line-height: 1;
}
.check-circle svg {
 width: 36px;
 height: 36px;
 color: #fbbf24;
 stroke-width: 3;
}
.summary-card-wrap {
 padding: 0 32px;
 margin-top: -24px;
}
.summary-card {
 background: #fff;
 border: 1px solid #f3f4f6;
 border-radius: 12px;
 box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
 padding: 20px;
 text-align: center;
 font-size: 14px;
 color: #374151;
 line-height: 1.55;
}
.next-section {
 padding: 24px 32px 8px;
}
.next-label {
 font-size: 11px;
 text-transform: uppercase;
 letter-spacing: 0.16em;
 color: #9ca3af;
 font-weight: 700;
 margin-bottom: 12px;
}
.next-list {
 list-style: none;
 margin: 0;
 padding: 0;
 display: flex;
 flex-direction: column;
 gap: 12px;
}
.next-list li {
 display: flex;
 gap: 12px;
 align-items: flex-start;
}
.next-icon {
 width: 32px;
 height: 32px;
 border-radius: 999px;
 background: #eff6ff;
 color: #1a4b8c;
 font-size: 16px;
 display: flex;
 align-items: center;
 justify-content: center;
 flex-shrink: 0;
}
.next-icon svg {
 width: 16px;
 height: 16px;
 color: #1a4b8c;
}
.next-text .t {
 font-size: 13px;
 font-weight: 600;
 color: #111827;
}
.next-text .s {
 font-size: 12px;
 color: #6b7280;
 margin-top: 2px;
}
.stage.request_received .modal-header{
   background: #1a4b8c;
   padding: 32px 32px 48px;
   text-align: center;
}
.stage.request_received .cta-wrap {
 padding: 24px 32px 28px;
}
.stage.request_received .cta {
 width: 100%;
 background: #f59e0b;
 color: #fff;
 font-size: 14px;
 font-weight: 700;
 padding: 12px;
 border-radius: 8px;
 box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
 transition: background 0.15s;
}
.mobile_block{
   display:none;
}
.mobile_block.block {
 padding-left: 0px;
 padding-right: 0px;
}
.exp-header-inner {
 width: 100%;
}
.exp-header-inner-content{
   display: flex;
   align-items: center;
   gap: 16px;
}
.exp-header .contact-agent.mobile{
   display:none;
}

/* Jaspreet quote footer */
.quote-footer {
   border-top: 1px solid var(--gray-100);
   background: rgba(249,250,251,0.6);
   padding: 16px 32px;
}
.quote-footer .head {
   display: flex; align-items: center; gap: 8px;
}
.quote-footer .title { font-size: 14px; font-weight: 700; color: var(--gray-800); }
.quote-footer .stars { display: inline-flex; gap: 1px; }
.quote-footer .stars svg {
   width: 14px; height: 14px;
   fill: var(--amber-400); color: var(--amber-400);
   stroke-width: 0;
}
.quote-footer .body {
   font-size: 13px; font-style: italic;
   color: var(--gray-600); line-height: 1.45;
   margin: 6px 0 0;
}
.quote-footer .author {
   font-size: 13px; font-weight: 600;
   color: var(--gray-700); margin-top: 10px;
}

.signup-modal .quote-card {
   margin-top: auto;
   background: rgba(255,255,255,0.1);
   border: 1px solid rgba(255,255,255,0.1);
   border-radius: 12px;
   padding: 14px;
   /*margin-top: 22px;*/
   margin-top: auto;
}
.signup-modal .quote-card .head {
   display: flex; align-items: center; gap: 8px;
}
.signup-modal .quote-card .title { font-size: 14px; font-weight: 700; }
.signup-modal .quote-card .stars { display: inline-flex; gap: 1px; }
.signup-modal .quote-card .stars svg {
   width: 14px; height: 14px;
   fill: var(--amber-400); color: var(--amber-400);
   stroke-width: 0;
}
.signup-modal .quote-card .body {
   font-size: 12.5px; font-style: italic;
   opacity: 0.8; margin: 6px 0 0; line-height: 1.45;
}
.signup-modal .quote-card .author {
   font-size: 12.5px; font-weight: 600;
   margin-top: 10px;
}
.all_review_link{
   font-size: 13px;
   color: var(--gray-500);
   font-weight: 500;
   line-height: 1.2;
   margin-left: 12px;
}

#popup_result3 .fail{
   color: #ff0000;
   font-size: 15px;
}

.disable-button-agent {
    color: var(--Old-Color-Gray, #B2B2B2) !important;
    background: var(--Old-Color-Disable, #EEE);
    background-color: var(--Old-Color-Disable, #EEE) !important;
    pointer-events: none;
}

@media only screen and (min-width: 992px) {
  .data8-postcodelookup-list_new li {
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    padding-left: 10px !important;
 }
}

/* =========================================================
   Tablet range (701px – 1024px) — keep desktop card layout
   but reflow the dense areas so nothing overflows.
   ========================================================= */
   @media (max-width: 1024px) {
      /* exp-header: allow the promo + CONTACT row to wrap below name */
      .exp-header { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
      .exp-header-body { flex: 1 1 220px; min-width: 0; }
      .exp-header-body h2 { font-size: 14px; white-space: normal; overflow: visible; text-overflow: clip; }
      .exp-actions { flex-wrap: wrap; justify-content: flex-end; }
      .promo-block { max-width: 100%; }

      /* 4-col block strip → 2x2 grid so each block has breathing room */
      .blocks, .blocks.all-four { grid-template-columns: 1fr 1fr; }
      .blocks > .block + .block { border-left: none; }
      .blocks > .block:nth-child(odd) { border-right: 1px solid var(--gray-100); }
      .blocks > .block:nth-child(n+3) { border-top: 1px solid var(--gray-100); }

      /* Inner block grids fill their narrower column */
      .portal-grid { grid-template-columns: 1fr 1fr; }
      .reg-grid { grid-template-columns: repeat(3, 1fr); }
      .review-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
      .award-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
      .award span { white-space: normal; }
   }

/* =========================================================
   Mobile responsive (<= 700px) — placed last so it overrides
   the desktop rules above when the viewport matches.
   ========================================================= */
   @media (max-width: 700px) {
      .page { padding: 0; gap: 0; background: #f0f4f8; }
      .page-inner, .results, .compare-wrap { max-width: 440px; }

      /* Header: Rentround logo only */
      .brandbar { padding: 12px 16px 4px; }
      .brand-tag { display: none; }

      /* Toolbar block stacks vertically */
      .toolbar { padding: 8px 16px 12px; gap: 12px; flex-direction: column; align-items: stretch; }
      .toolbar h1 { font-size: 18px; }

      /* Notice */
      .notice { margin: 0 16px 12px; }

      /* Toolbar buttons: 2-col grid (Sort | Filter), Compare full-width below */
      .btn-row {
         width: 100%;
         display: grid;
         grid-template-columns: 1fr 1fr;
         gap: 8px;
      }
      .btn-row .popover-anchor {
         display: block; width: 100%;
      }
      .btn-row .popover-anchor:nth-of-type(1) { order: 1; }
      .btn-row .popover-anchor:nth-of-type(2) { order: 0; }
      .btn-row .tool-btn--compare {
         order: 2;
         grid-column: 1 / -1;
      }
      .tool-btn {
         width: 100%;
         justify-content: center;
         padding: 11px 8px;
         font-size: 12px;
      }

      /* Results / compare wrap padding */
      .results, .compare-wrap { padding: 0 12px 12px; gap: 12px; }

      /* Collapsed card stacks */
      .row-flex { flex-direction: column; }
      .row-logo { width: 100%; padding: 12px 16px; justify-content: flex-start; gap: 12px; }
      .row-body { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 14px; }
      .row-name { min-width: 0; max-width: none; }
      .metrics { gap: 0; justify-content: space-between; width: 100%; }
      .metric { flex: 1; }
      .row-actions { justify-content: space-between; width: 100%; gap: 8px; }
      .btn-contact { /*flex: 1; padding: 10px;*/ }
      .exp-header .contact-agent.mobile{display:flex;}
      .exp-header .contact-agent.desktop{display:none;}
      .btn-show-more { flex-shrink: 0; padding: 10px 12px; }

      .exp-header-inner {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
        justify-content: space-between;
     }

  /* Expanded card mobile — header keeps logo + name + CONTACT in one row,
     promo + button wrap to a second row */
     .card-expanded { border-radius: 12px; }
     .exp-header { flex-wrap: wrap; padding: 12px 14px; gap: 10px; align-items: center; }
     .exp-header .logo-circle--lg { width: 42px; height: 42px; font-size: 15px; }
     .exp-header-body { flex: 1; min-width: 0; }
     .exp-header-body h2 { /*font-size: 13px;*/ }
     .exp-actions {
      width: 100%;
      flex-direction: row; align-items: center; gap: 10px;
      justify-content: space-between;
   }
   .promo-block { /*flex: 1; max-width: none;*/ padding: 6px 10px; }
   .btn-contact--lg { padding: 9px 14px; font-size: 12px; flex-shrink: 0; }

   /* Fees: 2x2 on mobile */
   .fees { padding: 14px 14px; }
   .fees-grid { /*grid-template-columns: 1fr 1fr;*/ grid-template-columns: repeat(3, 1fr); gap: 14px 12px; }

   /* 4 blocks → stack as full-width sections */
   .blocks, .blocks.all-four { grid-template-columns: 1fr; }
   .blocks > .block { padding: 12px 14px; }
   .blocks > .block + .block { border-left: none; border-top: 1px solid var(--gray-100); }

   /* Inside-block grids */
   .review-list { /*gap: 8px;*/ display: grid; grid-template-columns: repeat(2, 1fr); }
   .portal-grid { grid-template-columns: repeat(4, 1fr); }
   .portal-tile { height: 28px; }
   .portal-tile .logo-box { font-size: 9px; padding: 3px 4px; }
   .award-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
   .award span { white-space: normal; }
   .reg-grid { grid-template-columns: repeat(3, 1fr); }

   /* Extras */
   .review-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
   .extras-cols { grid-template-columns: 1fr; gap: 18px; }
   .map-wrap { min-height: 180px; }

   /* Show-more footer */
   .showmore-wrap { padding: 8px 12px 24px; }
   .showmore-btn { width: 100%; justify-content: center; }

   /* Filter / Sort popovers become full-width fixed bottom sheets */
   .popover {
      position: fixed;
      left: 8px; right: 8px; top: auto; bottom: 8px;
      width: auto;
      max-height: 82vh;
      display: flex; flex-direction: column;
      border-radius: 16px;
   }
   .popover-filter, .popover-sort { width: auto; }
   .popover::before { display: none; }
   .popover-body { max-height: 58vh; }
   .fee-group-grid { grid-template-columns: 1fr; }

   /* Compare-mode density rows: stack vertically inside the navy band */
   .compare-header { flex-direction: column; align-items: stretch; padding: 16px; }
   .compare-header-text h2 { font-size: 18px; }
   .btn-exit-compare { justify-content: center; }
   .density-band { flex-wrap: wrap; padding: 12px; gap: 10px; }
   .density-agent { width: 100%; min-width: 0; }
   .density-divider { display: none; }
   .density-fees { width: 100%; flex: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
   .density-stats { width: 100%; justify-content: space-between; }
   .btn-density-contact { width: 100%; padding: 11px; }
   .density-bottom { padding: 8px 12px; gap: 10px; }
   .density-bottom-divider { display: none; }
   .density-bottom.mobile, .btn-density-contact.mobile, .fee-label-small.mobile, .fee-value.mobile{ display: block !important; }
   .density-bottom.desktop, .density-stats.desktop, .btn-density-contact.desktop, .fee-value.desktop, .fee-detail.desktop, .desktop_block, .show_on_desktop { display:none !important; }
   .mobile_block{display:block;}
   .fees-grid.four { grid-template-columns: repeat(2, 1fr); text-align: left; }
   .density-fee .fee-l{ text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; white-space: break-spaces; text-overflow: ellipsis; }

   .stage { padding: 12px; }

   /* Loading modal */
   .modal { width: 100%; }
   .modal-header { padding: 20px 20px 18px; }
   .modal-header h2 { font-size: 22px; }
   .modal-header p { font-size: 14px; margin-top: 6px; }
   .modal-body { padding: 20px 20px 16px; }
   .step-bullet { 
      width: 32px;
      height: 32px;
      font-size: 12px;
   }
   .step-bullet.active::after{
      width: 18px;
      height: 18px;
   }
   .step-label { font-size: 15px; }
   .step-status{font-size: 12px;}
   .modal-header .step-label{
    font-size: 12px;
    margin-bottom: 8px;
 }
 .trustpilot-footer { padding: 12px 20px 16px; }

 /* Signup modal — stack to single column */
 .signup-modal {
   grid-template-columns: 1fr;
   width: 100%;
}
.signup-stats {
      /*padding: 16px;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      text-align: center;
      gap: 8px;*/
      padding: 22px;
   }
   .stat-bullets, .testimonial-signup, .signup-modal .trust-list, .signup-modal .quote-card { display: none; }
   .signup-stats .big-num { font-size: 16px; }
   .signup-stats .big-num::after {
      /*content: " landlords & sellers helped";
      font-size: 13px;
      font-weight: 700;
      color: #fff;*/
   }
   .signup-stats .big-num { /*color: #fcd34d;*/ font-size: 36px; }
   .signup-form { padding: 20px; }
   .signup-form h2 { font-size: 20px; }
   .signup-form .subline { /*display: none;*/ }
   .all-done-counter .num{font-size: 32px;}
   .all-done-counter .sub{font-size: 13px;}
   .tp-text{font-size: 13px;}
   .tp-star{ width: 18px; height: 18px; }
   .tp-star svg{width: 12px; height: 12px;}
   .trustpilot-row .on{font-size: 12px;}
   .trustpilot-row .brand{font-size: 13px;}
   .tp-sub{font-size: 12px;}
   .density-agent{justify-content:space-between;}
   span[data-sort-current] {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 70px;
 }
 .quote-footer{padding: 16px 20px;}
 .trustpilot-footer{text-align:center;}
 .density-fees.five, .density-fees.four{grid-template-columns: repeat(3, 1fr); row-gap: 16px;}
}