/* Root Styling */

:root {
  --bg: #ffffff;
  --card-bg: #f1f5f9;
  --primary: #1E3A8A;
  --primary-hover: #1D4ED8;
  --text: #1E293B;
  --muted: #64748B;
  --border: #CBD5E1;
  --input-bg: #ffffff;
  --input-border: #CBD5E1;
  --input-focus: rgba(30, 58, 138, 0.15);
  --success: #10B981;
}

.success-message {
  --success-bg: rgba(16, 185, 129, 0.12); /* subtle mint tint */
  --success-border: #10B981; /* success green */
  --success-text: #064E3B; /* dark green text */
  --success-icon: #10B981;

  display: flex;
  align-items: flex-start;
  gap: 0.75rem;

  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;

  color: var(--success-text);
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 500;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);

  transform: translateY(10px);
  animation: successFadeIn 0.5s ease forwards;
}

/* ===== VLM Alerts (inline) ===== */
.vlm-alert {
  --vlm-bg: #0A1E44; /* deep trust blue background tint */
  --vlm-ok: #10B981; /* success green */
  --vlm-err: #EF4444; /* error red */
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.35;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}
.vlm-alert--success {
  background: linear-gradient(180deg, rgba(16,185,129,0.12), rgba(16,185,129,0.08));
  color: #064E3B;
  border: 1px solid rgba(16,185,129,0.35);
}
.vlm-alert--error {
  background: linear-gradient(180deg, rgba(239,68,68,0.12), rgba(239,68,68,0.08));
  color: #7F1D1D;
  border: 1px solid rgba(239,68,68,0.35);
}
.hidden { display: none; }

/* ===== VLM Toasts (floating) ===== */
.vlm-toast-host {
  position: fixed;
  top: 16px;
  right: 16px;
  display: grid;
  gap: 10px;
  z-index: 9999;
}
.vlm-toast {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  max-width: 420px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #0B1220;
  color: #F8FAFC;
  box-shadow: 0 10px 30px rgba(2,6,23,0.35);
  transform: translateY(0);
  opacity: 1;
  transition: opacity .2s ease, transform .2s ease;
}
.vlm-toast--hide {
  opacity: 0;
  transform: translateY(-6px);
}
.vlm-toast--success { border-left: 4px solid #10B981; }
.vlm-toast--error { border-left: 4px solid #EF4444; }
.vlm-toast__icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: currentColor;
  opacity: .15;
}
.vlm-toast--success .vlm-toast__icon { color: #10B981; }
.vlm-toast--error .vlm-toast__icon { color: #EF4444; }
.vlm-toast__text { font-size: .95rem; line-height: 1.25rem; }
.vlm-toast__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #94A3B8;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 8px;
}
.vlm-toast__close:hover { color: #E2E8F0; background: rgba(148,163,184,0.12); }

/* Step actions row with Turnstile + Submit */
.form-actions {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Ensure the submit button visually leads */
.form-actions .submit-btn {
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: 10px;
}

/* Keep the compact Turnstile tidy and aligned */
.form-actions .cf-turnstile {
  display: inline-flex;
  align-items: center;
}

/* (Optional) tame widget scaling if it looks oversized on some devices */
.form-actions .cf-turnstile iframe {
  transform-origin: left center;
}

/* Prev/Next buttons: consistent, modern sizing */
.prev-btn,
.next-btn {
  min-height: 44px;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 600;
}

/* Mobile: stack neatly, make submit full width for thumb reach */
@media (max-width: 520px) {
  .form-actions {
    width: 100%;
    justify-content: space-between;
  }
  .form-actions .submit-btn {
    flex: 1 1 auto;
    width: 100%;
    text-align: center;
  }
}

/* Typography */

html, body {
  background-color: var(--bg);        
  color: var(--text);              
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--primary);              
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2.25rem; 
}

h2 {
  font-size: 1.75rem; 
}

h3 {
  font-size: 1.375rem; 
}

p {
  margin-bottom: 1rem;
  font-weight: 400;
}

/*Header*/

.topbar {
  background-color: var(--card-bg);
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.35rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}


.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.5rem 1rem 0.25rem; 
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: height 0.3s cubic-bezier(0.4,0,0.2,1);
  will-change: height;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 120px; 
  max-height: 120px;
  object-fit: contain;
  display: block;
  transition: padding 0.3s cubic-bezier(0.4,0,0.2,1);
  will-change: padding;
}

.site-header.shrink .logo {
  height: 60px;
  max-height: 60px;
  transition: height 0.3s ease;
}
.site-header.shrink .header-inner {
  padding: 0.2rem 1rem;
  transition: padding 0.3s ease;
}


.cta-dropdown {
  position: relative;
}

.cta-button {
  background-color: var(--primary);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.15);
}

.cta-button:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.25);
}

.cta-button:focus-visible {
  outline: 3px solid rgba(30, 58, 138, 0.4);
  outline-offset: 2px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 220px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  animation: fadeIn 0.2s ease-in-out;
}

.dropdown-menu li {
  border-bottom: 1px solid var(--border);
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text);
  transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: var(--card-bg);
}

/* Navigation */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 0.5rem 0 0.25rem;
  border-top: 1px solid var(--border); 
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 0.25rem;
  flex: 1 1 auto;
  text-align: center;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--primary);
}



/* Hide/show utility class */

.hidden {
  display: none !important;
}

/* Hero section */

.hero-section {
  background-color: var(--card-bg);
  padding: 4rem 2rem;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  flex: 1 1 500px;
}

.subheadline {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 40rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: flex-start;
}

.cta-option {
  background-color: var(--primary);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.15);
  flex: 1 1 220px;
  max-width: 220px;
  text-align: center;
}


.cta-option:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}


.hero-image {
  flex: 1 1 400px;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* Smaller media hero */

@media (max-width: 768px) {

    .hero-section {
        padding: 2.5rem 1.25rem;
    }

    .hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-image {
        order: -1; 
        max-width: 300px;
        margin-bottom: 1rem;
    }

    .hero-image img {
        width: 100%;
        height: auto;
     }

    .cta-group {
    justify-content: center;
    }
}

/* Our services section */

.services-section {
  background-color: var(--card-bg);
  padding: 4rem 1.5rem;
}

.services-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.service-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.service-card a:hover {
  color: var(--primary-hover);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.service-icon svg {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--primary);
}

/*Why Choose Us Section*/

.why-choose-us {
  padding: 4rem 1.5rem;
  background-color: var(--card-bg);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 3rem;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.reason-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;                
  min-height: 280px;           
  box-sizing: border-box; 
}

.reason-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.icon-wrapper svg {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 1rem;
}

.reason-title {
  font-size: 1.125rem;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.reason-text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Claims Proces Section */

.claims-process {
  background-color: var(--bg);
  padding: 4rem 1.5rem;
}

.section-title {
  text-align: center;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 3rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-step {
  width: 100%;
  max-width: 600px;
  background-color: var(--card-bg);
  border-radius: 999px;
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-icon svg {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 1rem;
}


.step-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.timeline-step p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

.timeline-arrow {
  font-size: 2rem;
  color: var(--primary);
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Interest Form Section */
.interest-form-section {
  background-color: var(--card-bg);
  padding: 4rem 1.5rem;
}

.interest-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background-color: var(--input-bg);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--input-focus);
}

/* Form validation states */
.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group select:invalid:not(:focus),
.form-group textarea:invalid:not(:focus):not(:placeholder-shown) {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group input:valid:not(:focus):not(:placeholder-shown),
.form-group select:valid:not(:focus),
.form-group textarea:valid:not(:focus):not(:placeholder-shown) {
  border-color: var(--success);
}

.helper-text {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.thank-you-message {
  text-align: center;
  font-size: 1rem;
  color: var(--success);
  margin-top: 1rem;
}



/*About Us Section*/

.about-us {
  background-color: #f9fafb;
  padding: 4rem 1.5rem;
}

.about-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.about-intro {
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 1rem;
  line-height: 1.7;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background-color: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.value-card svg {
  height: 36px;
  width: 36px;
  color: var(--primary);
  margin-bottom: 1rem;
}

.value-card h3 {
  margin: 0.25rem 0;
  font-size: 1.15rem;
  color: var(--text);
}

.value-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ===== Premium Footer ===== */
.site-footer {
  background: #0B1220; /* deep navy */
  color: #CBD5E1;      /* slate-200 */
  padding: 3rem 1.5rem 2rem;
}
.site-footer a { color: #cfe0ff; }
.site-footer a:hover { color: #ffffff; }

.footer-wrap { max-width: 1100px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 2fr; /* brand, links, contact, compliance */
  gap: 2rem;
  align-items: start;
}
@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-top h3 {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .25px;
  color: #E5EDFF;
  margin: 0 0 .75rem;
}

.footer-brand .brand-mark { display:flex; align-items:center; gap:.5rem; margin-bottom:.25rem; }
.footer-brand .brand-name {
  color: #E5EDFF;
  font-weight: 800;
  letter-spacing: .2px;
}
.brand-tag { color:#9FB3C8; margin:.25rem 0 1rem; }

.reg-badges { display:flex; flex-wrap:wrap; gap:.5rem; }
.badge {
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.4rem .6rem; border-radius:999px; font-weight:700; font-size:.8rem;
  background: rgba(59,130,246,.15); color:#E5EDFF; border:1px solid rgba(59,130,246,.35);
}
.badge-outline {
  background: transparent; color:#B6C6E2; border:1px solid rgba(182,198,226,.5);
}

.footer-links ul,
.footer-contact ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:.5rem; }
.footer-contact li { color:#B6C6E2; }

.footer-legal {
  font-size:.92rem; line-height:1.6; color:#B6C6E2;
}
.footer-legal a { text-decoration: underline; text-underline-offset: 2px; }

.footer-divider {
  margin: 2rem 0 1.25rem;
  border-top: 1px solid rgba(255,255,255,.12);
}

.footer-bottom {
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  font-size:.92rem; color:#93A3B8;
}
.footer-bottom .foot-meta { display:flex; align-items:center; gap:1rem; }
.footer-bottom .foot-meta a { color:#B6C6E2; }
.footer-bottom .foot-meta a:hover { color:#fff; }

@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap:.5rem; }
}

/* Smooth link hover + focus */
.site-footer a { transition: color .2s ease, opacity .2s ease; }
.site-footer a:focus-visible {
  outline: 3px solid rgba(59,130,246,.35);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --- Compatibility shim for legacy VLM classes --- */
.footer-container { max-width: 1100px; margin: 0 auto; }
.footer-blurb p { color: #B6C6E2; }


/* Cookie banner (top-fixed variant) */
.cookie-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10002; /* Above all modals and other elements */
  background: rgba(11,18,32,.96);
  color: #E5EDFF;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.cookie-banner_inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cookie-text {
  flex: 1 1 auto;
  margin: 0;
  font-size: .95rem;
  color: #CFE0FF;
}

.cookie-text a {
  color: #3b82f6;
  text-decoration: underline;
}

.cookie-actions {
  flex: 0 0 auto;
  display: flex;
  gap: .6rem;
}

.cookie-actions .btn-primary,
.cookie-actions .btn-secondary,
.cookie-actions .btn-tertiary {
  padding: .6rem .9rem;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-actions .btn-primary { background: #3b82f6; color: #fff; }
.cookie-actions .btn-primary:hover { background: #2563eb; }

.cookie-actions .btn-secondary { background: #243049; color: #E5EDFF; }
.cookie-actions .btn-secondary:hover { background: #2d3b5a; }

.cookie-actions .btn-tertiary { background: transparent; color: #E5EDFF; border: 1px solid rgba(255,255,255,.3); }
.cookie-actions .btn-tertiary:hover { background: rgba(255,255,255,.1); }

/* Push content down while banner is visible so it doesn't overlap header */
body.has-cookie-banner { padding-top: 56px; }

/* Primary / Secondary buttons */
.btn-primary {
  background-color: #3b82f6;
  color: #fff;
}
.btn-primary:hover {
  background-color: #2563eb;
}

.btn-secondary {
  background-color: transparent;
  color: #e5e7eb;
  border: 2px solid #e5e7eb;
}
.btn-secondary:hover {
  background-color: #374151;
}



/* Sticky Mobile CTA */
.sticky-cta {
  display: none; /* Hidden by default on desktop */
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-decoration: none;
  z-index: 9999;
  transition: background-color 0.2s ease, transform 0.1s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.sticky-cta.visible {
  opacity: 1;
  pointer-events: auto;
}

.sticky-cta:hover {
  background-color: var(--primary-hover);
  transform: translateX(-50%) translateY(-2px);
}

@media (max-width: 768px) {
  .sticky-cta {
    display: inline-block;
  }
}

/*Micro-animations*/
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.service-card, .value-card, .reason-card {
  transform: translateZ(0); 
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover, .value-card:hover, .reason-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.service-card:hover .service-icon svg,
.value-card:hover .value-icon,
.reason-card:hover .icon-wrapper svg {
  transform: translateY(-2px);
  transition: transform .2s ease;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   Modal styles (Enhanced)
   ============================ */

/* Base overlay */
.modal {
  position: fixed;
  inset: 0;
  display: none;                       /* hidden by default */
  align-items: center;                 /* vertical center */
  justify-content: center;             /* horizontal center */
  background: rgba(0,0,0,0.55);        /* dim backdrop */
  backdrop-filter: blur(4px) saturate(120%);
  -webkit-backdrop-filter: blur(4px) saturate(120%);
  z-index: 9998;                       /* below banners */
  padding: 1.5rem;                     /* breathing room on small screens */
  overflow-y: auto;                    /* allow page-level scrolling if needed */
}

/* Only show when explicitly opened */
.modal.show {
  display: flex;
}

/* Accessibility: hide when aria-hidden="true" */
.modal[aria-hidden="true"] {
  display: none !important;
}

/* Inner box - improved scroll behavior */
.modal .modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 0;                          /* remove padding from container */
  width: 92%;
  max-width: 820px;                    /* matches your IVA policy modal */
  max-height: calc(100vh - 3rem);      /* account for modal padding */
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 48px rgba(11,18,32,0.22);
  animation: modalFadeIn .25s ease-out;
  position: relative;
}

/* Modal header - fixed at top */
.modal .modal-content > h2 {
  padding: 2rem 2rem 1rem 2rem;
  margin: 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
  border-radius: 16px 16px 0 0;
  flex-shrink: 0;
}

/* Modal body - scrollable content */
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 2rem;
  -webkit-overflow-scrolling: touch;   /* smooth scrolling on iOS */
}

/* Modal footer - fixed at bottom */
.modal .modal-content > button {
  padding: 1rem 2rem 2rem 2rem;
  margin: 0;
  border-top: 1px solid var(--border);
  background: #fff;
  border-radius: 0 0 16px 16px;
  flex-shrink: 0;
}

/* Modal animation */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Headings inside policy modals */
.policy-modal h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1E3A8A;                      /* primary deep blue */
  margin: 0;
}
.policy-modal h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1E3A8A;
  margin: 1.75rem 0 .75rem;
}
.policy-modal p {
  margin: 0 0 1rem;
  font-size: .97rem;
  color: #374151;
  line-height: 1.55;
}
.policy-modal ul {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}
.policy-modal li {
  list-style: disc;
  margin: 0 0 .5rem;
  font-size: .95rem;
  color: #1F2937;
}

/* Links inside modal */
.policy-modal a {
  color: #1E3A8A;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.policy-modal a:hover {
  color: #2563EB;
}

/* Close button */
.policy-modal button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: .75rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  background: #1E3A8A;
  color: #fff;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background .2s ease;
}
.policy-modal button:hover {
  background: #2563EB;
}

/* ===========================
   Coming Soon Modal (Redesign) — MOBILE-FIRST
   =========================== */
.comingsoon-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;                 /* sits above banners */
  display: grid;
  place-items: center;
  padding:
  max(clamp(20px, 6vw, 32px), env(safe-area-inset-top))
  max(clamp(20px, 6vw, 32px), env(safe-area-inset-right))
  max(clamp(20px, 6vw, 32px), env(safe-area-inset-bottom))
  max(clamp(20px, 6vw, 32px), env(safe-area-inset-left));
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  overscroll-behavior: contain;
  isolation: isolate; 
}
.comingsoon-modal.show {
  opacity: 1;
  pointer-events: auto;
}

/* Backdrop (behind panel) */
.comingsoon-modal .modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.22);       /* lighter veil */
backdrop-filter: saturate(120%) blur(12px);
-webkit-backdrop-filter: saturate(120%) blur(12px);
  z-index: 1;
  border: 0;
  cursor: default;
}

/* Panel */
.comingsoon-modal .modal-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  background:
    radial-gradient(120% 120% at 10% -10%, rgba(59,130,246,0.10), transparent 60%),
    radial-gradient(120% 120% at 110% 10%, rgba(16,185,129,0.10), transparent 60%),
    rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  box-shadow:
    0 10px 30px rgba(2, 6, 23, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.65);
  color: #1F2937;
  padding: 16px 14px 14px; 
  transform: translateY(10px) scale(.98);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
  z-index: 2;
  max-height: calc(100dvh - 32px);
  overflow: auto;                       /* mobile scroll inside panel */
  -webkit-overflow-scrolling: touch;
}

/* Ultra-small phones get an even tighter feeling */
@media (max-width: 380px) {
  .comingsoon-modal .modal-panel {
    max-width: 94vw;               /* lets the panel shrink more */
    padding: 14px 12px 12px;
    border-radius: 14px;
  }
  .comingsoon-modal h2 { font-size: 1.1rem; }
  .comingsoon-modal .modal-sub { font-size: .95rem; }
}


/* Fallback when no backdrop-filter support */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .comingsoon-modal .modal-panel {
    background: #ffffff;
  }
}

.comingsoon-modal.show .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Close button */
.comingsoon-modal .modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #6B7280;
  cursor: pointer;
  padding: 12px;                      /* larger tap target for 44px minimum */
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.comingsoon-modal .modal-close:hover { background: rgba(0,0,0,0.06); }

/* Header */
.comingsoon-modal .modal-header {
  text-align: center;
  padding-top: 4px;
}
.comingsoon-modal .modal-icon {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: 6px auto 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(59,130,246,.15), rgba(37,99,235,.15));
  color: #1F2937;
  font-size: 26px;
}
.comingsoon-modal h2 {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 4.5vw, 1.5rem);  /* scales smoothly on mobile */
  font-weight: 700;
}
.comingsoon-modal .modal-sub {
  margin: 0 auto;
  color: #4B5563;
  max-width: 40ch;
  font-size: clamp(.95rem, 3.6vw, 1rem);
}

/* Content */
.comingsoon-modal .modal-content {
  margin-top: 14px;
}

/* Choice grid — single column by default (mobile-first) */
.comingsoon-modal .choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 560px) {
  .comingsoon-modal .choice-grid { grid-template-columns: 1fr 1fr; }
}

/* Pills — centered text and comfy tap targets */
.comingsoon-modal .pill {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;          /* center text horizontally */
  text-align: center;               /* ensure multi-line text is centered */
  min-height: 54px;                 /* larger touch area */
  border: 1px solid rgba(31,41,55,0.10);
  background: #FFFFFF;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  box-shadow: 0 1px 2px rgba(2,6,23,.05);
}
.comingsoon-modal .pill:hover,
.comingsoon-modal .pill:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(2,6,23,.10);
  border-color: rgba(59,130,246,0.35);
  outline: none;
}
.comingsoon-modal .pill-title {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}
.comingsoon-modal .pill-sub {
  display: block;
  font-size: .92rem;
  color: #6B7280;
}

.comingsoon-modal .pill-title,
.comingsoon-modal .pill-sub {
  width: 100%;
  text-align: center;
}

/* Divider */
.comingsoon-modal .divider {
  margin: 14px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31,41,55,0.12), transparent);
}

/* --- Coming Soon CTA: always centered, never overlaps --- */
.comingsoon-modal .primary-cta {
  /* layout */
  display: inline-flex;                 /* shrink-to-content on wide screens */
  align-items: center;
  justify-content: center;
  gap: 8px;

  /* appearance */
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #3B82F6, #2563EB);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37,99,235,.25);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;

  /* centering + containment */
  margin: 12px auto 0;                  /* centers the element itself */
  max-width: 100%;                      /* never spill outside the panel */
  box-sizing: border-box;               /* padding stays inside width */
}
.comingsoon-modal .primary-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(37,99,235,.35);
  filter: saturate(1.05);
}

/* If the CTA sits in a row/wrapper, center the wrapper too */
.comingsoon-modal .modal-actions,
.comingsoon-modal .cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;                      /* avoids overlap if siblings exist */
  gap: 12px;                            /* nice breathing room */
}

.comingsoon-modal .microtext {
  margin: 12px 2px 6px;
  text-align: center;
  color: #6B7280;
  font-size: .85rem;
}

.error-message {
  text-align: center;
  font-size: 0.95rem;
  color: #DC2626;
  margin-top: 0.75rem;
}


#register { scroll-margin-top: 80px; } 

/* ============================
   Policy Page Styles (Standalone Pages)
   ============================ */

.policy-page {
  background-color: var(--bg);
  min-height: calc(100vh - 200px);
  padding: 3rem 0;
}

.policy-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.policy-content {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.policy-content h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 2rem 0;
  text-align: center;
  border-bottom: 2px solid var(--border);
  padding-bottom: 1rem;
}

.policy-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin: 2rem 0 1rem 0;
}

.policy-content p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

.policy-content ul {
  margin: 0 0 1.25rem 1.5rem;
  padding: 0;
}

.policy-content li {
  list-style: disc;
  margin: 0 0 .75rem;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

.policy-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.policy-content a:hover {
  color: var(--primary-hover);
}

.policy-content strong {
  font-weight: 600;
  color: var(--primary);
}

.policy-content code {
  background: var(--card-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
}

/* Cookie management section styling */
.cookie-management {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cookie-management h3 {
  margin-top: 0;
  color: var(--primary);
}

/* Mobile responsiveness for policy pages */
@media (max-width: 768px) {
  .policy-page {
    padding: 2rem 0;
  }
  
  .policy-content {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }
  
  .policy-content h1 {
    font-size: 1.75rem;
  }
}

/* Form actions (Turnstile + Submit) */
.form-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem 1rem;
}
.form-actions .cf-turnstile {
  transform: translateZ(0); /* prevents blurriness on some GPUs */
}
@media (max-width: 520px) {
  .form-actions {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/* Honeypot hiding */
.hp-wrap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .comingsoon-modal,
  .comingsoon-modal .modal-panel { transition: none !important; }
}

/* Phones: full-width CTA */
@media (max-width: 479px) {
  .comingsoon-modal .primary-cta {
    display: flex;
    width: 100%;
  }
}

/* ≥480px: natural width, centered via .cta-row */
@media (min-width: 480px) {
  .comingsoon-modal .primary-cta {
    display: inline-flex;
    width: auto;
  }
}


@media (min-width: 560px) {
  .comingsoon-modal .choice-grid { grid-template-columns: 1fr 1fr; }
  .comingsoon-modal .modal-panel { border-radius: 20px; padding: 20px clamp(20px, 4vw, 28px) 18px; }
}











