/* ============================================
   Remote Home Check - Premium UI Styles
   Based on Modern Design System
   ============================================ */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* ========================================
   CROSS-BROWSER COMPATIBILITY & RESET
   Ensures consistent look across all browsers
   ======================================== */

/* CSS Reset - Normalize across all browsers */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}

/* Ensure consistent rendering across browsers */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* Remove default margins from common elements */
h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

/* Normalize form elements across browsers */
input, button, textarea, select {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Fix button styling in all browsers */
button {
  overflow: visible;
  text-transform: none;
  cursor: pointer;
}

/* Remove default select arrow in IE */
select::-ms-expand {
  display: none;
}

/* Consistent select styling */
select {
  background-image: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Fix input type=number spinner in all browsers */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* Ensure images scale properly */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

/* Cross-browser smooth scrolling */
html, body {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Prevent horizontal scroll on mobile */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Prevent text size adjustment on orientation change */
@media screen and (orientation: portrait) {
  html {
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
  }
}

/* Ensure proper touch targets on mobile (min 44x44px) */
button, a, input[type="submit"], input[type="button"] {
  min-height: 44px;
  min-width: 44px;
}

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  /* RHC Brand Colors */
  --rhc-blue: #00ACD8;
  --rhc-deep: #00416B;
  --rhc-grey: #989898;
  --rhc-grey-light: #B7B8BA;
  
  /* Base Colors */
  --background: #ffffff;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #00ACD8;

  /* Gateway footer: one shared dark slate bar site-wide (hub, /home, /pace, /slc, legal). Not #000 — slate-800 for softer contrast vs pure black. */
  --gateway-footer-bg: #1e293b;
  --gf-primary-btn: #6366f1;
  --gf-primary-btn-hover: #4f46e5;
  
  /* Typography */
  --font-body: 'Inter', 'Avenir Next', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Roboto Slab', serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ============================================
   Base Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 30%, #e0f7fa 50%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Animations
   ============================================ */
@keyframes shine {
  0% { transform: translateX(-100%); opacity: 0; }
  20% { opacity: 0.3; }
  50% { opacity: 0.5; }
  80% { opacity: 0.3; }
  100% { transform: translateX(100%); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 172, 216, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 172, 216, 0.6); }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-shine {
  animation: shine 3s ease-in-out infinite;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-slide-up {
  animation: slide-up 0.6s ease-out forwards;
}

.fade-in {
  animation: fade-in 0.6s ease-in;
}

/* ============================================
   Utility Classes
   ============================================ */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
  background: linear-gradient(135deg, var(--rhc-blue) 0%, var(--rhc-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Hero Banner
   ============================================ */
/* ========================================
   TOP NAVIGATION BAR
   Professional sticky navigation
   ======================================== */

.top-nav-bar {
  display: none; /* Hidden - replaced with Back to Hub button */
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(0, 172, 216, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-nav-bar:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
  border-bottom-color: rgba(0, 172, 216, 0.2);
}

.top-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.top-nav-logo {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}

.top-nav-logo:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.top-nav-logo-image {
  width: clamp(36px, 4vw, 44px);
  height: clamp(36px, 4vw, 44px);
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.top-nav-logo-text {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: #00416B;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.top-nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.top-nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(46, 51, 56, 0.8);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.top-nav-link:hover {
  color: #4a90e2;
  background-color: rgba(74, 144, 226, 0.08);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .top-nav-container {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .top-nav-logo-text {
    font-size: 1rem;
  }

  .top-nav-actions {
    gap: 1rem;
  }

  .top-nav-link {
    font-size: 0.9375rem;
    padding: 0.5rem;
  }
}

@media (max-width: 640px) {
  .top-nav-logo-text {
    display: none;
  }

  .top-nav-actions {
    gap: 0.75rem;
  }

  .top-nav-link {
    font-size: 0.875rem;
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .top-nav-container {
    padding: 0.625rem 0.875rem;
  }

  .top-nav-logo {
    gap: 0.5rem;
  }

  .top-nav-logo-image {
    width: 32px;
    height: 32px;
  }

  .top-nav-actions {
    gap: 0.5rem;
  }

  .top-nav-link {
    font-size: 0.8125rem;
    padding: 0.375rem;
  }
}

.header-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #00ACD8 0%, #00416B 100%);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
  color: #ffffff;
  box-shadow: 0 28px 65px rgba(15, 23, 42, 0.32);
}

.header-section::before {
  display: none;
}

@keyframes header-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.header-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.25rem, 0.8vw, 0.6rem);
}

.logo-section {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.3rem);
}

.logo-image {
  width: clamp(88px, 12vw, 108px);
  height: clamp(88px, 12vw, 108px);
  object-fit: contain;
  background: transparent;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25));
}

.main-title {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(2.6rem, 4.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.45px;
  color: #ffffff;
  text-shadow: 0 6px 16px rgba(5, 15, 28, 0.55);
}

.subtitle {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  color: #f6fbff;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.15px;
  text-shadow: 0 4px 12px rgba(5, 20, 38, 0.4);
}

.description {
  font-family: 'Avenir Next', 'Inter', sans-serif;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: #f9fcff;
  line-height: 1.4;
  max-width: 720px;
  margin: 0 auto;
  text-shadow: 0 3px 12px rgba(5, 20, 38, 0.32);
}

.stats-container {
  display: flex;
  justify-content: center;
  gap: clamp(1.75rem, 4vw, 3rem);
  margin-top: clamp(1rem, 2vw, 1.5rem);
  flex-wrap: nowrap;
  padding: 0 clamp(0.5rem, 2vw, 2rem);
  align-items: stretch;
}

.stat-item {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2vw, 1.25rem) clamp(2.25rem, 4.5vw, 3rem);
  text-align: center;
  flex: 0 1 auto;
  min-width: 320px;
  max-width: 400px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-number {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: clamp(0.4rem, 0.8vw, 0.6rem);
  letter-spacing: -0.4px;
  line-height: 1.1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.stat-label {
  font-family: 'Avenir Next', 'Inter', sans-serif;
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  color: #ffffff;
  letter-spacing: 0.15px;
  line-height: 1.3;
  font-weight: 500;
  text-transform: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  hyphens: auto;
  padding: 0 0.25rem;
}

/* ============================================
   Trust Strip
   ============================================ */
.trust-strip {
  background: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 4vw, 2rem);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.trust-strip-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  flex: 0 1 auto;
  min-width: 200px;
  transition: transform 0.2s ease;
}

.trust-item:hover {
  transform: translateY(-2px);
}

.trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.5rem, 4vw, 3rem);
  height: clamp(2.5rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--rhc-blue) 0%, var(--rhc-deep) 100%);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 172, 216, 0.25);
}

.trust-icon i {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: #ffffff;
}

.trust-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.trust-label {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.3vw, 1rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.trust-description {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1.1vw, 0.875rem);
  font-weight: 500;
  color: #475569;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .trust-strip {
    padding: 1.5rem 1rem;
  }

  .trust-strip-container {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .trust-item {
    width: 100%;
    min-width: auto;
    max-width: 320px;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .trust-strip {
    padding: 1.25rem 1rem;
  }

  .trust-strip-container {
    gap: 1.25rem;
    align-items: center;
  }

  .trust-item {
    gap: 0.875rem;
    justify-content: center;
    align-items: center;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.5rem;
  }

  .trust-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
  }

  .trust-icon i {
    font-size: 1.1rem;
  }
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.faq-page-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.faq-page-section .max-w-7xl {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  width: 100%;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
  border-color: rgba(0, 172, 216, 0.2);
}

.faq-question {
  width: 100%;
  padding: clamp(1.25rem, 2vw, 1.5rem);
  background: linear-gradient(135deg, #f5f8fb 0%, #e9eef3 100%);
  border: 1px solid rgba(214, 221, 231, 0.8);
  border-radius: var(--radius-lg);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-body);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.faq-question:hover {
  background: linear-gradient(135deg, #e8edf2 0%, #d4dde8 100%);
  border-color: rgba(0, 172, 216, 0.28);
  box-shadow: 0 2px 7px rgba(0, 172, 216, 0.11);
  transform: translateY(-1px);
}

.faq-question[aria-expanded="true"] {
  background: linear-gradient(135deg, #e5f2ff 0%, #cdd9fc 100%);
  border-color: rgba(0, 172, 216, 0.32);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 2px 7px rgba(0, 172, 216, 0.13);
}

.faq-question-text {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  font-weight: 600;
  color: #0f172a;
  line-height: 1.5;
  letter-spacing: -0.2px;
  flex: 1;
  text-align: left;
}

.faq-icon {
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  color: var(--rhc-blue);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 clamp(1.25rem, 2vw, 1.5rem);
  text-align: left;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 500px;
  padding: 0 clamp(1.25rem, 2vw, 1.5rem) clamp(1.25rem, 2vw, 1.5rem);
}

.faq-answer p {
  font-size: clamp(0.9375rem, 1.1vw, 1rem);
  line-height: 1.7;
  color: #475569;
  margin: 0;
  padding-top: 0.5rem;
  text-align: left;
}

@media (max-width: 768px) {
  .faq-container {
    gap: 0.875rem;
  }

  .faq-question {
    padding: 1.125rem 1rem;
  }

  .faq-question-text {
    font-size: 0.9375rem;
  }

  .faq-icon {
    font-size: 0.875rem;
  }

  .faq-answer {
    padding: 0 1rem;
  }

  .faq-question[aria-expanded="true"] + .faq-answer {
    padding: 0 1rem 1.125rem;
  }

  .faq-answer p {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .faq-container {
    gap: 0.75rem;
  }

  .faq-question {
    padding: 1rem 0.875rem;
  }

  .faq-question-text {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .faq-answer p {
    font-size: 0.8125rem;
    line-height: 1.6;
  }
}

@media (max-width: 768px) {
  .stats-container {
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0 0.5rem;
  }

  .stat-item {
    padding: 0.875rem 0.75rem;
    max-width: none;
  }

  .stat-label {
    font-size: clamp(0.65rem, 0.9vw, 0.75rem);
    line-height: 1.25;
  }
}

@media (max-width: 640px) {
  .stats-container {
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 0 0.5rem;
  }

  .stat-item {
    flex: 0 0 calc(50% - 0.375rem);
    min-width: calc(50% - 0.375rem);
    max-width: calc(50% - 0.375rem);
    width: calc(50% - 0.375rem);
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(0.875rem, 1.8vw, 1.25rem);
    box-sizing: border-box;
  }

  .stat-item:nth-child(3) {
    flex: 0 0 calc(50% - 0.375rem);
    min-width: calc(50% - 0.375rem);
    max-width: calc(50% - 0.375rem);
    width: calc(50% - 0.375rem);
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(0.875rem, 1.8vw, 1.25rem);
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .logo-section {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .stats-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    flex-wrap: nowrap;
    justify-content: center;
  }

  .stat-item {
    width: 100%;
    max-width: 200px;
    min-width: 180px;
    padding: 0.75rem 0.75rem;
    flex: 0 0 auto;
    box-sizing: border-box;
  }
  
  .stat-item:nth-child(3) {
    width: 100%;
    max-width: 200px;
    min-width: 180px;
    flex: 0 0 auto;
    padding: 0.75rem 0.75rem;
    box-sizing: border-box;
  }
  
  .stat-label {
    line-height: 1.4;
    font-size: clamp(0.8rem, 1.3vw, 0.9rem);
  }
}

/* ============================================
   Section Styles
   ============================================ */
.section {
  padding: 3.5rem 1.5rem;
}

.section--white {
  background: #ffffff;
  position: relative;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
  border-top: 1px solid rgba(226, 232, 240, 0.5);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  padding: 5rem 1.5rem;
}

.section--white .section-subtitle {
  color: #475569;
  font-size: 1.25rem;
  margin: 1rem auto 0;
}

.section--white .section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section--white .section-title {
    font-size: 3rem;
  }
}

.section--white .section-header-with-images {
  margin-bottom: 2rem;
}

.section--white .section-round-image {
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.section--white .section-image-label {
  background: rgba(0, 172, 216, 0.1);
  color: var(--rhc-deep);
  border: 1px solid rgba(0, 172, 216, 0.15);
}

.section--white .section-image-left:hover .section-image-label,
.section--white .section-image-right:hover .section-image-label {
  background: var(--rhc-blue);
  color: #ffffff;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: #475569;
  max-width: 42rem;
  margin: 0.75rem auto 0;
}

/* Section Header with Images */
.section-header-with-images {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-image-left {
  justify-self: end;
  margin-left: 1rem;
  transform: translateX(0.75rem) translateY(0);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.section-image-right {
  justify-self: start;
  margin-right: -1.5rem;
  transform: translateX(1.5rem) translateY(0);
}

.section-header-content {
  text-align: center;
  min-width: 300px;
  max-width: 800px;
}

@media (max-width: 1024px) {
  .section-header-with-images {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .section-image-left,
  .section-image-right {
    justify-self: center;
    margin-left: 0;
    margin-right: 0;
    transform: none !important;
  }
}

.section-image-left,
.section-image-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.section-image-left:hover {
  transform: translateX(0.75rem) translateY(-4px);
}

.section-image-right:hover {
  transform: translateX(1.5rem) translateY(-4px);
}

.round-image-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.section-round-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: all 0.3s ease;
  pointer-events: none;
  -ms-content-zooming: none;
  -ms-touch-action: none;
  touch-action: none;
}

.section-image-right .section-round-image {
  object-position: center 55%;
}

.section-image-left:hover .round-image-wrapper,
.section-image-right:hover .round-image-wrapper {
  box-shadow: 0 12px 32px rgba(0, 172, 216, 0.3);
  border-color: var(--rhc-blue);
  transform: scale(1.05);
}

.section-image-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rhc-deep);
  text-align: center;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.section-image-left:hover .section-image-label,
.section-image-right:hover .section-image-label {
  background: var(--rhc-blue);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 172, 216, 0.3);
}

@media (max-width: 1024px) {
  .section-header-with-images {
    gap: 1.5rem;
  }
  
  .round-image-wrapper {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  .section-header-with-images {
    flex-direction: column;
    gap: 2rem;
  }
  
  .section-image-left {
    order: 1;
    transform: none !important;
  }
  
  .section-header-content {
    order: 2;
  }
  
  .section-image-right {
    order: 3;
    transform: none !important;
  }
  
  .section-image-right:hover {
    transform: none !important;
  }
  
  .round-image-wrapper {
    width: 90px;
    height: 90px;
  }
  
  .section-image-label {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
}

/* ============================================
   Feature Cards
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.feature-card {
  background: linear-gradient(135deg, #f4f7fb 0%, #ffffff 100%);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid #f1f5f9;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card:hover {
  box-shadow: var(--shadow-2xl);
  border-color: rgba(0, 172, 216, 0.3);
  transform: translateY(-4px);
}

.feature-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem;
  border-radius: var(--radius-xl);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
  width: 3rem;
  height: 3rem;
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1);
}

.feature-icon-wrapper.red { background: linear-gradient(135deg, #ef4444 0%, #f97316 100%); }
.feature-icon-wrapper.pink { background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%); }
.feature-icon-wrapper.blue { background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%); }
.feature-icon-wrapper.purple { background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%); }

.feature-icon-wrapper i {
  width: 2rem;
  height: 2rem;
  color: white;
  font-size: 1.5rem;
  line-height: 1;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0f172a;
  text-align: center;
}

.feature-description {
  color: #475569;
  line-height: 1.6;
  text-align: center;
  font-size: 0.875rem;
}

/* ============================================
   Monitor Section
   ============================================ */
.monitor-section {
  background: #f1f5f9;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.monitor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .monitor-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .monitor-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.monitor-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid #f1f5f9;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.monitor-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: rgba(0, 172, 216, 0.3);
  transform: translateY(-2px);
}

.monitor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem;
  border-radius: var(--radius-xl);
  margin-bottom: 1rem;
  width: 3rem;
  height: 3rem;
}

.monitor-icon.orange { background: #fef3c7; color: #d97706; }
.monitor-icon.red { background: #fee2e2; color: #dc2626; }
.monitor-icon.purple { background: #f3e8ff; color: #9333ea; }
.monitor-icon.blue { background: #dbeafe; color: #2563eb; }
.monitor-icon.cyan { background: #cffafe; color: #0891b2; }
.monitor-icon.pink { background: #fce7f3; color: #db2777; }

.monitor-icon i {
  width: 2rem;
  height: 2rem;
  font-size: 1.5rem;
  line-height: 1;
}

.monitor-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0f172a;
  text-align: center;
}

.monitor-description {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
  text-align: center;
}

.monitor-more {
  text-align: center;
  color: #64748b;
  font-style: italic;
  margin-top: 2rem;
}

.section--white.form-section {
  background: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.45);
  border-bottom: 1px solid rgba(226, 232, 240, 0.45);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.07);
}

/* ============================================
   Form Section
   ============================================ */
.form-section {
  padding: 5rem 1.5rem;
}

.form-container {
  max-width: 56rem;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

/* Calculator Intro Section */
.calculator-intro {
  padding: 1.75rem 2rem;
  background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.calculator-intro-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--rhc-deep);
  margin: 0 0 1rem 0;
  text-align: center;
}

.calculator-intro-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.calculator-intro-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #475569;
}

.calculator-intro-icon {
  color: var(--rhc-blue);
  font-size: 1.125rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.calculator-intro-item span {
  flex: 1;
}

/* Responsive styles for calculator intro */
@media (max-width: 768px) {
  .calculator-intro {
    padding: 1.5rem 1.5rem;
  }
  
  .calculator-intro-title {
    font-size: 1.375rem;
    margin-bottom: 0.875rem;
  }
  
  .calculator-intro-list {
    gap: 0.625rem;
  }
  
  .calculator-intro-item {
    font-size: 0.875rem;
    line-height: 1.4;
    gap: 0.625rem;
  }
  
  .calculator-intro-icon {
    font-size: 1rem;
  }
}

.form-header {
  background: linear-gradient(135deg, var(--rhc-deep) 0%, var(--rhc-blue) 100%);
  color: white;
  padding: 2rem;
}

.form-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-header-icon {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-header-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.2));
}

.form-header-icon i {
  width: 2rem;
  height: 2rem;
  color: white;
}

.form-header-title {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
}

.form-header-subtitle {
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

/* Progress Bar */
.progress-container {
  margin-top: 1.5rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: white;
  border-radius: 9999px;
  transition: width 0.5s ease;
}

/* Form Content */
.form-content {
  padding: 2rem;
}

.form-step-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #0f172a;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}

.form-label .required {
  color: #ef4444;
  margin-left: 0.25rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-xl);
  font-size: 1rem;
  transition: all 0.2s ease;
  outline: none;
  background: white;
  font-family: var(--font-body);
}

.form-input:focus,
.form-select:focus {
  border-color: var(--rhc-blue);
  box-shadow: 0 0 0 4px rgba(0, 172, 216, 0.1);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.field-complete {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #10b981;
  margin-top: 0.25rem;
}

.field-complete i {
  width: 1rem;
  height: 1rem;
}

/* Form Navigation */
.form-navigation {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  border: 2px solid #cbd5e1;
  color: #334155;
  background: white;
}

.btn-secondary:hover:not(:disabled) {
  background: #f8fafc;
}

.btn-primary {
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--rhc-blue) 0%, var(--rhc-deep) 100%);
  color: white;
}

.form-navigation .btn {
  min-width: 180px;
}

@media (max-width: 640px) {
  .form-navigation {
    flex-direction: column;
    align-items: center;
  }

  .form-navigation .btn {
    width: 100%;
    max-width: 260px;
  }
}

.btn-primary:hover:not(:disabled) {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* ============================================
   Results Display
   ============================================ */
.results-container {
  background: linear-gradient(135deg, white 0%, #e0f2fe 100%);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  border: 2px solid rgba(0, 172, 216, 0.3);
}

.results-header {
  background: linear-gradient(135deg, var(--rhc-deep) 0%, var(--rhc-blue) 100%);
  color: white;
  padding: 2rem;
  text-align: center;
}

.results-icon {
  display: inline-flex;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-2xl);
  margin-bottom: 1rem;
}

.results-icon i {
  width: 3rem;
  height: 3rem;
  color: white;
}

.results-title {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.results-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.results-content {
  padding: 2rem;
}

.scores-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .scores-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.score-card {
  background: white;
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 2px solid;
}

.score-card.blue { border-color: #bfdbfe; }
.score-card.purple { border-color: #e9d5ff; }
.score-card.cyan { border-color: #a5f3fc; }

.score-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.5rem;
}

.score-value {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.score-card.blue .score-value { color: var(--rhc-blue); }
.score-card.purple .score-value { color: #9333ea; }
.score-card.cyan .score-value { color: #0891b2; }

.score-out-of {
  font-size: 0.875rem;
  color: #64748b;
}

.tier-card {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 2px solid #86efac;
  text-align: center;
}

.tier-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.5rem;
}

.tier-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--rhc-deep);
  margin-bottom: 1.5rem;
}

.savings-display {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.savings-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

.savings-value {
  font-size: 3rem;
  font-weight: 700;
  color: #059669;
}

.savings-description {
  color: #475569;
  line-height: 1.7;
  max-width: 42rem;
  margin: 1rem auto 0;
}

.results-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .results-actions {
    flex-direction: row;
  }
}

.results-actions .btn {
  flex: 1;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: normal;
  filter: brightness(0) invert(1);
}

@media (min-width: 768px) {
  .footer-logo {
    width: 50px;
    height: 50px;
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .footer-main {
    align-items: flex-start;
    text-align: left;
    flex: 1;
  }
  
  .footer-brand {
    justify-content: flex-start;
  }
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
}

.footer-tagline {
  color: #cbd5e1;
  margin-bottom: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 400px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 1rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-copyright {
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Footer Contact Block */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 280px;
  align-items: flex-start;
  text-align: left;
}

@media (min-width: 768px) {
  .footer-contact {
    align-items: flex-start;
    text-align: left;
  }
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  min-height: 1.5em;
  box-sizing: border-box;
}

.footer-contact-icon {
  font-size: 1rem;
  color: var(--rhc-blue);
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}

.footer-contact-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}

.footer-contact-link:hover {
  color: var(--rhc-blue);
  text-decoration: underline;
}

.footer-contact-text {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}

/* ============================================
   How It Works Modal
   ============================================ */

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

/* Modal Container */
.modal-container {
  background: #ffffff;
  border-radius: var(--radius-2xl);
  max-width: 800px;
  width: calc(100% - 2rem);
  max-height: 90vh;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: auto;
  box-sizing: border-box;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(15, 23, 42, 0.05);
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  color: #475569;
}

.modal-close:hover {
  background: rgba(15, 23, 42, 0.1);
  color: #0f172a;
  transform: rotate(90deg);
}

.modal-close i {
  font-size: 1.125rem;
}

/* Modal Content */
.modal-content {
  padding: 2rem 1.5rem 2rem 1.75rem;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  max-width: 100%;
  min-width: 0;
}

/* Modal Headline */
.modal-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  margin-bottom: 2.5rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

.modal-headline-mobile {
  display: none;
}

/* Modal Steps */
.modal-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

.modal-step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: 0;
  box-sizing: border-box;
  min-width: 0;
}

.modal-step-number {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rhc-blue) 0%, var(--rhc-deep) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 0 8px 16px rgba(0, 172, 216, 0.3);
}

.modal-step-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.625rem;
  line-height: 1.3;
}

.modal-step-description {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.6;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* Modal Outcomes */
.modal-outcomes {
  margin-bottom: 2rem;
  width: 100%;
  max-width: 100%;
}

.modal-outcomes-title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  color: #0f172a;
  text-align: center;
  margin-bottom: 1.25rem;
  width: 100%;
  max-width: 100%;
}

.modal-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

.modal-tile {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  min-height: 120px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  min-width: 0;
}

.modal-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--rhc-blue);
}

.modal-tile-prominent {
  background: linear-gradient(135deg, rgba(0, 172, 216, 0.08) 0%, rgba(0, 65, 107, 0.05) 100%);
  border: 2px solid var(--rhc-blue);
  border-width: 2.5px;
}

.modal-tile-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rhc-blue) 0%, var(--rhc-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 172, 216, 0.3);
}

.modal-tile-prominent .modal-tile-icon {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.75rem;
  box-shadow: 0 6px 16px rgba(0, 172, 216, 0.4);
}

.modal-tile-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
  margin: 0;
}

.modal-tile-prominent .modal-tile-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--rhc-deep);
}

/* Modal Reassurance */
.modal-reassurance {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-left: 4px solid var(--rhc-blue);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.modal-reassurance i {
  font-size: 1.5rem;
  color: var(--rhc-blue);
  flex-shrink: 0;
}

.modal-reassurance p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: #475569;
  margin: 0;
  line-height: 1.6;
  font-weight: 500;
}

/* Modal CTA Section */
.modal-cta-section {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  width: 100%;
  box-sizing: border-box;
}

.modal-cta-primary {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}

.modal-cta-secondary {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}

/* Modal Desktop - Ensure full width layout */
@media (min-width: 769px) {
  .modal-container {
    max-width: 800px;
    width: calc(100% - 2rem);
    box-sizing: border-box;
  }

  .modal-content {
    padding: 2rem 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .modal-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .modal-tiles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .modal-step {
    padding: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .modal-tile {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 1rem 0.625rem;
    box-sizing: border-box;
  }
}

/* ============================================
   Force Single-Column Layout for How It Works Modal
   Remove blank right panel and ensure scrollbar at edge
   ============================================ */
#how-it-works-modal .modal-container {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#how-it-works-modal .modal-content {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 2rem 1.5rem !important;
  margin: 0 !important;
}

#how-it-works-modal .modal-steps {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#how-it-works-modal .modal-tiles-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#how-it-works-modal .modal-step {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
}

#how-it-works-modal .modal-tile {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

#how-it-works-modal .modal-outcomes {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#how-it-works-modal .modal-reassurance {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#how-it-works-modal .modal-cta-section {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#how-it-works-modal .modal-headline {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Hide any potential right column or empty panels */
#how-it-works-modal .modal-column-right,
#how-it-works-modal .modal-aside,
#how-it-works-modal .modal-empty,
#how-it-works-modal .modal-sidebar,
#how-it-works-modal .modal-right,
#how-it-works-modal .modal-column {
  display: none !important;
}

/* Force single column - no flex splits */
#how-it-works-modal .modal-body,
#how-it-works-modal .modal-inner {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Desktop: Ensure full width even on large screens */
@media (min-width: 769px) {
  #how-it-works-modal .modal-container {
    max-width: 800px !important;
    width: calc(100% - 2rem) !important;
  }

  #how-it-works-modal .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 2rem 2rem !important;
  }
}

/* Modal Responsive */
@media (max-width: 768px) {
  .modal-container {
    max-width: 95%;
  }

  .modal-content {
    padding: 2rem 1.5rem;
  }

  .modal-headline {
    margin-bottom: 2rem;
  }

  .modal-headline-desktop {
    display: none;
  }

  .modal-headline-mobile {
    display: block;
  }

  .modal-steps {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-bottom: 2rem;
  }

  .modal-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
  }

  .modal-outcomes-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .modal-cta-section {
    flex-direction: column;
    margin-top: 1rem;
  }

  .modal-cta-primary,
  .modal-cta-secondary {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .modal-container {
    max-height: 95vh;
    border-radius: var(--radius-xl);
  }

  .modal-content {
    padding: 1.5rem 1.25rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 2.25rem;
    height: 2.25rem;
  }

  .modal-tiles-grid {
    grid-template-columns: 1fr;
  }

  .modal-step-number {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
  }

  .modal-tile-icon {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.25rem;
  }

  .modal-tile-prominent .modal-tile-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
  text-align: center;
}

.max-w-7xl {
  max-width: 80rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 2.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

/* Compact sections for Why Remote Home Check and What We Monitor */
.section--white .features-grid,
.monitor-section {
  margin-top: 0;
}

/* Reduce padding for sections containing feature/monitor grids */
section.section--white:not(.form-section) {
  padding: 2.5rem 1.5rem;
}

.monitor-section {
  padding: 2.5rem 1.5rem;
}

@media (min-width: 768px) {
  section.section--white:not(.form-section) {
    padding: 3rem 1.5rem;
  }
  
  .monitor-section {
    padding: 3rem 1.5rem;
  }
}

.text-sm {
  font-size: 0.875rem;
}

.font-semibold {
  font-weight: 600;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .form-header-title {
    font-size: 1.5rem;
  }
  
  .form-content {
    padding: 1.5rem;
  }
}

/* ============================================
   Modal Styles (for email collection)
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  border-radius: var(--radius-2xl);
  padding: 2rem;
  max-width: 28rem;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-2xl);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #64748b;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-logo {
  width: 3.75rem;
  height: 3.75rem;
  margin: 0 auto 1rem;
  mix-blend-mode: normal;
}

.modal-title {
  color: #334155;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-email-field {
  margin-bottom: 1rem;
}

.modal-email-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #334155;
  font-weight: 600;
  font-size: 0.875rem;
}

.modal-email-label .required {
  color: #ef4444;
  margin-left: 0.25rem;
}

.modal-email-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  box-sizing: border-box;
  transition: all 0.2s ease;
  outline: none;
}

.modal-email-input:focus {
  border-color: var(--rhc-blue);
  box-shadow: 0 0 0 3px rgba(0, 172, 216, 0.1);
}

.modal-email-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}

.modal-email-error.show {
  display: block;
}

.modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.modal-send-btn {
  background: linear-gradient(135deg, var(--rhc-blue) 0%, var(--rhc-deep) 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  width: auto;
  opacity: 0.5;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
}

.modal-send-btn:not(:disabled) {
  opacity: 1;
  cursor: pointer;
}

.modal-send-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--rhc-blue) 0%, #035280 100%);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.modal-send-btn:disabled {
  cursor: not-allowed;
}

/* CSV Download Link */
.csv-download-link {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--rhc-blue);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  font-family: var(--font-body);
  align-items: center;
  gap: 0.5rem;
}

.csv-download-link:hover {
  background: var(--rhc-deep);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.csv-download-link.show {
  display: inline-flex !important;
}

/* Success Banner */
.success-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  color: #334155;
  padding: 2rem 3rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  z-index: 10001;
  text-align: center;
  max-width: 90%;
}

.success-banner h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #10b981;
}

.success-banner p {
  color: #64748b;
  margin-bottom: 1rem;
}

.success-banner button {
  background: var(--rhc-blue);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.success-banner button:hover {
  background: var(--rhc-deep);
}


/* ============================================
   FAQ CTA Card (Homepage)
   ============================================ */
.faq-cta-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 2px solid rgba(0, 172, 216, 0.2);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
  max-width: 1000px;
  margin: 0 auto;
}

.faq-cta-card:hover {
  box-shadow: 0 12px 32px rgba(0, 172, 216, 0.15);
  transform: translateY(-2px);
  border-color: rgba(0, 172, 216, 0.3);
}

.faq-cta-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--rhc-blue) 0%, var(--rhc-deep) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 172, 216, 0.3);
}

.faq-cta-icon i {
  font-size: 2.5rem;
  color: white;
}

.faq-cta-content {
  flex: 1;
}

.faq-cta-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.faq-cta-description {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.faq-cta-button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.faq-cta-button i {
  transition: transform 0.3s ease;
}

.faq-cta-button:hover i {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .faq-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .faq-cta-icon {
    width: 70px;
    height: 70px;
  }

  .faq-cta-icon i {
    font-size: 2rem;
  }

  .faq-cta-title {
    font-size: 1.25rem;
  }

  .faq-cta-description {
    font-size: 0.9375rem;
  }

  .faq-cta-button {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   FAQ Back Button
   ============================================ */
/* ============================================
   FAQ Page Navigation Header
   ============================================ */
.faq-nav-header {
  background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.faq-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.faq-nav-logo {
  display: flex;
  align-items: center;
}

.faq-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.faq-logo-link:hover {
  opacity: 0.8;
}

.faq-logo-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.faq-logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rhc-deep);
}

.faq-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.faq-back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-lg);
  color: #475569;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.faq-back-button:hover {
  background: #f8fafc;
  border-color: var(--rhc-blue);
  color: var(--rhc-blue);
  transform: translateX(-2px);
  box-shadow: 0 2px 8px rgba(0, 172, 216, 0.12);
}

.faq-back-button i {
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.faq-back-button:hover i {
  transform: translateX(-2px);
}

.faq-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: linear-gradient(135deg, var(--rhc-blue) 0%, var(--rhc-deep) 100%);
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 172, 216, 0.25);
}

.faq-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 172, 216, 0.35);
  background: linear-gradient(135deg, #00b8d4 0%, #0f172a 100%);
}

.faq-cta-button i {
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.faq-cta-button:hover i {
  transform: translateX(2px);
}

@media (max-width: 768px) {
  .faq-nav-container {
    padding: 1rem;
    flex-wrap: wrap;
  }

  .faq-logo-text {
    font-size: 1.125rem;
  }

  .faq-logo-image {
    width: 36px;
    height: 36px;
  }

  .faq-nav-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.5rem;
  }

  .faq-back-button,
  .faq-cta-button {
    flex: 1;
    justify-content: center;
    font-size: 0.8125rem;
    padding: 0.625rem 1rem;
  }
}

@media (max-width: 480px) {
  .faq-nav-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .faq-nav-logo {
    justify-content: center;
  }

  .faq-nav-actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0;
  }

  .faq-back-button,
  .faq-cta-button {
    width: 100%;
  }
}

.faq-page-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* ============================================
   About & FAQ Page Header
   ============================================ */
.about-faq-header {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

.page-main-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.page-subtitle {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: #475569;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .page-main-title {
    font-size: 3rem;
  }
  
  .page-subtitle {
    font-size: 1.25rem;
  }
}

/* ============================================
   About Section
   ============================================ */
.about-section {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

/* About Hero Card */
.about-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 2px solid rgba(0, 172, 216, 0.2);
  border-radius: var(--radius-xl);
  padding: 2rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.about-hero-icon {
  flex-shrink: 0;
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, var(--rhc-blue) 0%, var(--rhc-deep) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 172, 216, 0.3);
}

.about-hero-icon i {
  font-size: 2rem;
  color: white;
}

.about-hero-content {
  flex: 1;
}

.about-hero-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.about-hero-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
}

.about-hero-text p {
  margin-bottom: 1rem;
}

.about-hero-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .about-hero-card {
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    text-align: center;
    gap: 1rem;
  }

  .about-hero-icon {
    margin: 0 auto;
    width: 60px;
    height: 60px;
  }

  .about-hero-icon i {
    font-size: 1.75rem;
  }

  .about-hero-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .about-hero-text {
    font-size: 0.9375rem;
  }
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* About Cards */
.about-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-card:hover {
  box-shadow: 0 8px 24px rgba(0, 172, 216, 0.15);
  transform: translateY(-2px);
  border-color: rgba(0, 172, 216, 0.3);
}

.about-card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.about-card:hover .about-card-icon {
  transform: scale(1.08);
}

.about-card-icon i {
  font-size: 1.75rem;
  color: white;
}

.about-card-icon.founded {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

.about-card-icon.mission {
  background: linear-gradient(135deg, var(--rhc-blue) 0%, var(--rhc-deep) 100%);
}

.about-card-icon.focus {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

.about-card-icon.partner {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.about-card-icon.privacy {
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
}

.about-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.about-card-description {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

@media (max-width: 640px) {
  .about-card {
    padding: 1.25rem 1rem;
  }

  .about-card-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 0.875rem;
  }

  .about-card-icon i {
    font-size: 1.5rem;
  }

  .about-card-title {
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
  }

  .about-card-description {
    font-size: 0.8125rem;
  }
}

/* ============================================
   FAQ Categories
   ============================================ */
.faq-category {
  margin-bottom: 2rem;
  text-align: center;
  width: 100%;
}

.faq-category:last-child {
  margin-bottom: 0;
}

.faq-category-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid #e2e8f0;
  text-align: center;
  width: 100%;
}

.faq-category-title i {
  color: var(--rhc-blue);
  font-size: 1.25rem;
}

@media (max-width: 640px) {
  .faq-category-title {
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
    padding-bottom: 0.5rem;
  }
  
  .faq-category-title i {
    font-size: 1.125rem;
  }
}

/* FAQ List (for detailed answers) */
.faq-list {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style: none;
  text-align: left;
}

.faq-list li {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
  text-align: left;
}

.faq-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--rhc-blue);
  font-weight: bold;
  font-size: 1.25rem;
}

.faq-list li strong {
  color: #0f172a;
  font-weight: 600;
}

/* Section Highlight Animation for Post-Calculator Scroll */
@keyframes sectionHighlight {
  0% {
    background-color: transparent;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
  }
  50% {
    background-color: rgba(0, 172, 216, 0.05);
    box-shadow: 0 20px 50px rgba(0, 172, 216, 0.15);
  }
  100% {
    background-color: transparent;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
  }
}

.section-highlight {
  animation: sectionHighlight 2s ease-in-out;
}

.faq-answer p {
  margin-bottom: 1rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Home Page Back to Hub Button Responsive Styles */
@media (max-width: 768px) {
  .home-back-button {
    padding: 0.45rem 0.75rem !important;
    font-size: 0.8125rem !important;
    top: 1rem !important;
    left: 1rem !important;
    gap: 0.375rem !important;
  }
}

@media (max-width: 480px) {
  .home-back-button {
    padding: 0.4rem 0.65rem !important;
    font-size: 0.75rem !important;
    top: 0.75rem !important;
    left: 0.75rem !important;
  }
}

/*
 * Gateway footer styles — duplicated from public/css/gateway-footer.css so /home works even when
 * a standalone request to /css/gateway-footer.css fails (keeps typography + grid + form widgets).
 * Edit public/css/gateway-footer.css first, then copy its contents here (omit :root — vars live in main :root above).
 */
#gateway-footer.gf-root {
  position: relative;
  background: var(--gateway-footer-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.gf-wrap {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 1.25rem;
}

@media (min-width: 640px) {
  .gf-wrap {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .gf-wrap {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (min-width: 1024px) {
  .gf-wrap {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.gf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .gf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .gf-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3rem;
  }
}

.gf-brand-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gf-logo-wrap {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.gf-logo-wrap img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.gf-brand-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.gf-tagline {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.6);
  text-wrap: pretty;
}

.gf-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
}

.gf-social a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.15s ease;
}

.gf-social a:hover {
  color: #fff;
}

.gf-social svg {
  width: 1.25rem !important;
  height: 1.25rem !important;
  max-width: 32px;
  max-height: 32px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

#gateway-footer.gf-root svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.gf-col-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.gf-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gf-links li + li {
  margin-top: 0.75rem;
}

.gf-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.15s ease;
}

.gf-links a:hover {
  color: #fff;
}

.gf-contact-icon {
  width: 1rem !important;
  height: 1rem !important;
  max-width: 24px;
  max-height: 24px;
  flex-shrink: 0;
}

.gf-contact-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

span.gf-plain.gf-contact-row {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.gf-connected-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.gf-connected-list li + li {
  margin-top: 0.75rem;
}

.gf-connected-list a,
.gf-connected-list .gf-plain {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gf-connected-list a:hover {
  color: #fff;
}

.gf-news-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.gf-news-form {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.625rem;
  width: 100%;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .gf-news-form {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }
}

.gf-news-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 2.5rem;
  box-sizing: border-box;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25;
  border-radius: 10px;
  background: #2f3b52;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gf-news-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.gf-news-input:focus {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 2px rgba(129, 140, 248, 0.35);
}

.gf-btn-subscribe {
  flex-shrink: 0;
  height: 2.5rem;
  box-sizing: border-box;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: var(--gf-primary-btn);
  color: #fff;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.gf-btn-subscribe:hover {
  background: var(--gf-primary-btn-hover);
}

.gf-btn-subscribe:active {
  background: #4338ca;
}

.gf-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .gf-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.gf-copy {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  text-align: center;
}

@media (min-width: 768px) {
  .gf-bottom > div:first-child .gf-copy {
    text-align: left;
  }
}

.gf-copy-sub {
  font-size: 0.8125rem;
  margin-top: 0.35rem;
}

.gf-copy-sub a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.gf-copy-sub a:hover {
  color: #fff;
}

.gf-legal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .gf-legal-row {
    justify-content: flex-end;
    width: auto;
  }
}

.gf-legal-row a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.15s ease;
}

.gf-legal-row a:hover {
  color: #fff;
}

.gf-legal-strip {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
}

.gf-legal-strip a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.gf-legal-strip a:hover {
  color: #fff;
}

footer#gateway-footer a,
footer#gateway-footer a:hover {
  text-decoration: none;
}

/* Mobile: centered gf-root (parity with landing GatewayFooter) */
@media (max-width: 767.98px) {
  #gateway-footer.gf-root .gf-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  #gateway-footer.gf-root .gf-brand-row {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }

  #gateway-footer.gf-root .gf-tagline {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }

  #gateway-footer.gf-root .gf-social {
    justify-content: center;
  }

  #gateway-footer.gf-root .gf-links li {
    text-align: center;
  }

  #gateway-footer.gf-root .gf-connected-list a.gf-contact-row {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }

  #gateway-footer.gf-root span.gf-plain.gf-contact-row {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  #gateway-footer.gf-root .gf-news-label {
    text-align: center;
    width: 100%;
  }
}

footer#gateway-footer .gateway-footer-meta {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1rem !important;
  width: 100% !important;
}

@media (min-width: 768px) {
  footer#gateway-footer .gateway-footer-meta {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
}

footer#gateway-footer .gateway-footer-legal,
footer#gateway-footer .mt-12.pt-8.border-t > div > div:last-child {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.75rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

footer#gateway-footer .gateway-footer-legal > div:first-child,
footer#gateway-footer .mt-12.pt-8.border-t > div > div:last-child > div:first-child {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  column-gap: 2rem !important;
  row-gap: 0.5rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (min-width: 768px) {
  footer#gateway-footer .gateway-footer-legal,
  footer#gateway-footer .mt-12.pt-8.border-t > div > div:last-child {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    width: auto !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 0.5rem 1.5rem !important;
  }

  footer#gateway-footer .gateway-footer-legal > div:first-child,
  footer#gateway-footer .mt-12.pt-8.border-t > div > div:last-child > div:first-child {
    width: auto !important;
    justify-content: flex-end !important;
  }
}

