html {
  font-size: 14px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* ── SEO Content Section ──────────────────────────────────────── */
.seo-content {
  background-color: #f0f4f8;
  border-top: 1px solid #e2e8f0;
}
.seo-stat-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  padding: 1.25rem 1rem;
  transition: box-shadow .15s;
}
.seo-stat-box:hover {
  box-shadow: 0 4px 12px rgba(26, 111, 196, .12);
}
.seo-stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: #1a6fc4;
  line-height: 1;
  margin-bottom: .2rem;
}
.seo-stat-label {
  font-size: .78rem;
  color: #6c757d;
  margin: 0;
}
.seo-step-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  padding: 1.25rem 1rem;
  height: 100%;
}
.seo-step-number {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #1a6fc4;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .65rem;
}
.seo-step-title {
  font-size: .92rem;
  font-weight: 700;
  color: #0c2340;
  margin-bottom: .4rem;
}
.seo-h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0c2340;
  border-left: 4px solid #1a6fc4;
  padding-left: .75rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.seo-h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a6fc4;
  margin-top: 1.25rem;
  margin-bottom: .4rem;
}
.seo-aide-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.seo-aide-list li {
  padding: .65rem .9rem;
  border-left: 3px solid #28a745;
  background: #fff;
  border-radius: 0 .4rem .4rem 0;
  margin-bottom: .45rem;
  font-size: .93rem;
}
.seo-feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  padding: 1rem 1.1rem;
  transition: box-shadow .15s;
}
.seo-feature-card:hover {
  box-shadow: 0 4px 12px rgba(26, 111, 196, .1);
}
.seo-price-table th,
.seo-price-table td {
  font-size: .87rem;
  vertical-align: middle;
}
/* ────────────────────────────────────────────────────────────── */

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  background-color: #f8f9fa;
}

/* Navbar */
.navbar-main {
  background: linear-gradient(135deg, #0c2340 0%, #1a6fc4 100%);
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.navbar-main .navbar-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.navbar-main .nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 0.4rem;
  padding: 0.35rem 0.8rem !important;
  opacity: 0.82;
  transition: background 0.15s, opacity 0.15s;
}
.navbar-main .nav-link:hover {
  background: rgba(255, 255, 255, 0.13);
  opacity: 1;
}

/* Hero banner on form page */
.estimator-hero {
  background: linear-gradient(140deg, #0c2340 0%, #1355a0 60%, #1a84d4 100%);
  position: relative;
  overflow: hidden;
  padding-bottom: 4.5rem !important;
}
.estimator-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(255, 255, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
}
.text-white-75 {
  color: rgba(255, 255, 255, 0.85);
}

/* Step headers */
.step-header {
  background-color: #1a6fc4;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
}
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 0.5rem;
}

/* Work category cards */
.work-category-card {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1rem;
  background: #fff;
  transition: box-shadow 0.15s;
}
.work-category-card:hover {
  box-shadow: 0 4px 12px rgba(26, 111, 196, 0.12);
}
.work-category-title {
  font-weight: 700;
  color: #1a6fc4;
  border-bottom: 2px solid #1a6fc4;
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.work-item {
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.work-item:last-child {
  border-bottom: none;
}
.price-range {
  color: #28a745;
  font-weight: 600;
}

/* Budget cards */
.budget-card {
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  color: #fff;
}
.budget-min {
  background: linear-gradient(135deg, #28a745, #1e7e34);
}
.budget-avg {
  background: linear-gradient(135deg, #1a6fc4, #0d4f9e);
}
.budget-max {
  background: linear-gradient(135deg, #fd7e14, #d96900);
}
.budget-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}
.budget-amount {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.25rem 0;
}
.budget-sub {
  font-size: 0.78rem;
  opacity: 0.8;
}

/* AI report */
.ai-report-content {
  line-height: 1.9;
  color: #2c3e50;
  font-size: 0.96rem;
  font-family: 'Inter', system-ui, sans-serif;
}
.ai-report-content h1,
.ai-report-content h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a6fc4;
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: linear-gradient(90deg, #e8f1fb 0%, transparent 100%);
  border-left: 4px solid #1a6fc4;
  border-radius: 0 0.3rem 0.3rem 0;
}
.ai-report-content h1:first-child,
.ai-report-content h2:first-child {
  margin-top: 0;
}
.ai-report-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0d4f9e;
  margin-top: 1.1rem;
  margin-bottom: 0.35rem;
}
.ai-report-content p {
  margin-bottom: 0.7rem;
}
.ai-report-content ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 0.75rem;
}
.ai-report-content ul li {
  position: relative;
  padding: 0.35rem 0.5rem 0.35rem 1.75rem;
  border-bottom: 1px solid #f0f4f8;
  font-size: 0.93rem;
}
.ai-report-content ul li:last-child {
  border-bottom: none;
}
.ai-report-content ul li::before {
  content: '›';
  position: absolute;
  left: 0.4rem;
  color: #1a6fc4;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
}
.ai-report-content strong {
  color: #0d4f9e;
  font-weight: 600;
}
.ai-report-content hr {
  border: none;
  border-top: 2px dashed #d0dff0;
  margin: 1.4rem 0;
}
.ai-report-content em {
  color: #6c757d;
  font-size: 0.88rem;
}
.ai-report-content p:last-child em {
  display: block;
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 0.6rem 1rem;
  border-radius: 0 0.4rem 0.4rem 0;
  color: #856404;
  font-style: normal;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-legal-nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
  justify-content: center;
}
.footer-legal-link {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.15s;
  white-space: nowrap;
}
.footer-legal-link:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-legal-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  padding: 0 0.25rem;
}

/* Focus styles */
.btn:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(26, 111, 196, 0.3);
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1060;
  background: #0c2340;
  color: #e8edf2;
  border-top: 3px solid #1a6fc4;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
  padding: 1rem 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cookie-banner.cookie-banner-visible {
  transform: translateY(0);
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1 1 320px;
  font-size: 0.88rem;
  line-height: 1.55;
}
.cookie-banner-text strong {
  font-size: 0.95rem;
  color: #fff;
}
.cookie-link {
  color: #7ab8f5;
  text-decoration: underline;
}
.cookie-link:hover {
  color: #fff;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
@media (max-width: 576px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-banner-actions .btn {
    flex: 1;
  }
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
}
.legal-header {
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 1.5rem;
}
.legal-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0c2340;
  margin-bottom: 0.5rem;
}
.legal-section {
  margin-bottom: 2.25rem;
}
.legal-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a6fc4;
  border-left: 4px solid #1a6fc4;
  padding-left: 0.75rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.legal-section p,
.legal-section li {
  font-size: 0.96rem;
  line-height: 1.75;
  color: #343a40;
}
.legal-section ul {
  padding-left: 1.4rem;
}
.legal-section ul li {
  margin-bottom: 0.35rem;
}
.legal-section code {
  font-size: 0.85rem;
  background: #f0f4f8;
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  color: #0c2340;
}
.legal-footer-nav {
  border-top: 1px solid #dee2e6;
  padding-top: 1.5rem;
}

/* ============================================================
   RESULT DISCLAIMER
   ============================================================ */
.disclaimer-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fffbea;
  border: 1px solid #ffc107;
  border-left: 5px solid #ffc107;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
}
.disclaimer-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.disclaimer-main {
  font-size: 0.97rem;
  font-weight: 600;
  color: #533f03;
}
.disclaimer-sub {
  font-size: 0.88rem;
  color: #6c5800;
  line-height: 1.6;
}
.disclaimer-link {
  color: #856404;
  text-decoration: underline;
}
.disclaimer-link:hover {
  color: #533f03;
}
