/* ============================================================
   VirWave — Website Styles
   Design: Calm luxury · Minimal · Inclusive
   Brand: Teal #0A7EA4 · Mint #8CEBAA · Navy #0D2137
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand palette */
  --navy:        #0D2137;
  --navy-deep:   #091826;
  --teal:        #0A7EA4;
  --teal-light:  #0C9AC4;
  --mint:        #8CEBAA;
  --mint-soft:   #B4F0CA;

  /* Neutrals */
  --white:       #F8F8F6;
  --white-pure:  #FFFFFF;
  --off-white:   #F2F2F0;
  --gray-100:    #E8E8E6;
  --gray-200:    #D4D4D2;
  --gray-400:    #9E9E9C;
  --gray-600:    #666664;
  --gray-800:    #333331;
  --black:       #11181C;

  /* Semantic */
  --bg:          var(--white);
  --bg-surface:  var(--off-white);
  --text:        var(--black);
  --text-muted:  var(--gray-600);
  --text-light:  rgba(255,255,255,0.88);
  --text-light-muted: rgba(255,255,255,0.60);
  --accent:      var(--teal);
  --accent-cta:  var(--mint);
  --border:      var(--gray-100);

  /* Type scale */
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:   'SF Mono', 'Fira Code', 'Consolas', monospace;
  --text-xs:     0.75rem;
  --text-sm:     0.875rem;
  --text-base:   1rem;
  --text-lg:     1.125rem;
  --text-xl:     1.25rem;
  --text-2xl:    1.5rem;
  --text-3xl:    1.875rem;
  --text-4xl:    2.25rem;
  --text-5xl:    3rem;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Layout */
  --max-width:   1120px;
  --radius:      8px;
  --radius-lg:   12px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 30px rgba(0,0,0,0.12);
  --transition:  0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-light); }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* --- Utility ----------------------------------------------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--sp-6); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: 200;
  padding: var(--sp-2) var(--sp-4);
  background: var(--navy);
  color: var(--white-pure);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Hidden sections/pages system */
[data-visibility="hidden"] { display: none !important; }

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.75rem 1.75rem;
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.btn-primary {
  background: var(--mint);
  color: var(--navy);
  border-color: var(--mint);
}
.btn-primary:hover {
  background: var(--mint-soft);
  border-color: var(--mint-soft);
  color: var(--navy);
}

.btn-secondary {
  background: var(--teal);
  color: var(--white-pure);
  border-color: var(--teal);
}
.btn-secondary:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  color: var(--white-pure);
}

.btn-ghost {
  background: transparent;
  color: var(--white-pure);
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
  color: var(--white-pure);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--text);
  border-color: var(--gray-200);
}
.btn-ghost-dark:hover {
  border-color: var(--gray-400);
  background: var(--off-white);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-lg);
}

/* --- Navigation -------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 33, 55, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--white-pure);
  text-decoration: none;
}
.nav-logo:hover { color: var(--white-pure); }
.nav-logo img {
  height: 32px;
  width: auto;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  list-style: none;
}

.nav-links a {
  color: var(--text-light-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white-pure);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  color: var(--white-pure);
}
.nav-toggle svg { display: block; }

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(13, 33, 55, 0.98);
    backdrop-filter: blur(12px);
    padding: var(--sp-8) var(--sp-6);
    gap: var(--sp-6);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: var(--text-lg);
  }
}

/* --- Hero -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 40%, #0E3854 70%, var(--teal) 100%);
  color: var(--white-pure);
  overflow: hidden;
  padding: var(--sp-24) var(--sp-6);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(140, 235, 170, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 680px;
}

/* Hero ambient particles — matches VirWave app splash screen */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Outer span drifts on X axis */
.particle {
  position: absolute;
  display: block;
  animation: particle-x var(--dur-x) ease-in-out infinite alternate;
}

/* Inner span is the visible dot, drifts on Y axis */
.particle > span {
  display: block;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--white-pure);
  opacity: var(--opacity);
  animation: particle-y var(--dur-y) ease-in-out infinite alternate;
}

@keyframes particle-x {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--dx)); }
}
@keyframes particle-y {
  from { transform: translateY(0); }
  to   { transform: translateY(var(--dy)); }
}

.hero-eyebrow {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: var(--sp-4);
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white-pure);
  margin-bottom: var(--sp-6);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--text-light);
  margin-bottom: var(--sp-10);
  line-height: 1.6;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Sections ---------------------------------------------- */
.section {
  padding: var(--sp-24) var(--sp-6);
}

.section-dark {
  background: var(--navy);
  color: var(--white-pure);
}
.section-dark h2,
.section-dark h3 { color: var(--white-pure); }
.section-dark p { color: var(--text-light); }

.section-alt {
  background: var(--bg-surface);
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-16);
}
.section-header h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--sp-4);
}
.section-header p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}
.section-dark .section-header p { color: var(--text-light-muted); }

/* --- Card Grid --------------------------------------------- */
.card-grid {
  display: grid;
  gap: var(--sp-8);
}
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--white-pure);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.section-dark .card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}
.section-dark .card:hover {
  background: rgba(255,255,255,0.08);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(10, 126, 164, 0.1);
  color: var(--teal);
  font-size: 1.5rem;
  margin-bottom: var(--sp-4);
}
.section-dark .card-icon {
  background: rgba(140, 235, 170, 0.1);
  color: var(--mint);
}

.card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-2);
}

.card p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.section-dark .card p { color: var(--text-light-muted); }

/* --- Steps ------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-8);
  counter-reset: step;
}

.step {
  text-align: center;
  counter-increment: step;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--mint));
  color: var(--white-pure);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

.step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-2);
}

.step p {
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.section-dark .step p { color: var(--text-light-muted); }

/* --- Blog Cards -------------------------------------------- */
.blog-card {
  background: var(--white-pure);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card-date {
  font-size: var(--text-xs);
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-2);
}

.blog-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-2);
}
.blog-card h3 a {
  color: var(--text);
  text-decoration: none;
}
.blog-card h3 a:hover { color: var(--teal); }

.blog-card p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  flex: 1;
  margin-bottom: var(--sp-4);
}

.blog-card-tags {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(10, 126, 164, 0.08);
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: 500;
  border-radius: 100px;
}

/* --- Blog Post Content ------------------------------------- */
.post-header {
  padding-top: calc(64px + var(--sp-16));
  padding-bottom: var(--sp-12);
  background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 60%, #0E3854 100%);
  color: var(--white-pure);
}

.post-header h1 {
  font-size: var(--text-4xl);
  color: var(--white-pure);
  margin-bottom: var(--sp-4);
}

.post-meta {
  font-size: var(--text-sm);
  color: var(--text-light-muted);
}

.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-6);
}

.post-body h1 { font-size: var(--text-3xl); margin: var(--sp-10) 0 var(--sp-4); }
.post-body h2 { font-size: var(--text-2xl); margin: var(--sp-8) 0 var(--sp-3); }
.post-body h3 { font-size: var(--text-xl); margin: var(--sp-6) 0 var(--sp-2); }
.post-body p  { margin-bottom: var(--sp-4); line-height: 1.75; }
.post-body ul, .post-body ol { margin: 0 0 var(--sp-4) var(--sp-6); }
.post-body li { margin-bottom: var(--sp-2); line-height: 1.75; }

.post-body blockquote {
  border-left: 3px solid var(--mint);
  padding: var(--sp-4) var(--sp-6);
  margin: var(--sp-6) 0;
  background: var(--bg-surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
}

.post-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-surface);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.post-body pre {
  background: var(--navy);
  color: var(--text-light);
  padding: var(--sp-6);
  border-radius: var(--radius);
  overflow-x: auto;
  margin: var(--sp-6) 0;
}
.post-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-8) 0;
}

.post-body a { text-decoration: underline; text-underline-offset: 2px; }

.post-body img {
  border-radius: var(--radius);
  margin: var(--sp-6) 0;
}

/* --- Contact ----------------------------------------------- */
.contact-buttons {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Blog Listing ------------------------------------------ */
.blog-hero {
  padding-top: calc(64px + var(--sp-16));
  padding-bottom: var(--sp-12);
  background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 60%, #0E3854 100%);
  color: var(--white-pure);
  text-align: center;
}
.blog-hero h1 {
  font-size: var(--text-4xl);
  color: var(--white-pure);
  margin-bottom: var(--sp-4);
}
.blog-hero p { color: var(--text-light-muted); }

.blog-filter {
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
}

.blog-filter select {
  font-family: var(--font);
  font-size: var(--text-sm);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white-pure);
  color: var(--text);
  cursor: pointer;
}
.blog-filter select:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.blog-list {
  padding: 0 var(--sp-6) var(--sp-16);
}

/* --- Products Grid ----------------------------------------- */
.product-card {
  text-align: center;
  padding: var(--sp-10);
}

.product-icon {
  font-size: 3rem;
  margin-bottom: var(--sp-4);
}

.product-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-top: var(--sp-4);
}
.product-badge-soon {
  background: rgba(10, 126, 164, 0.1);
  color: var(--teal);
}
.product-badge-live {
  background: rgba(140, 235, 170, 0.15);
  color: #2A9D5C;
}

/* --- Legal Pages ------------------------------------------- */
.legal-page {
  padding-top: calc(64px + var(--sp-12));
  padding-bottom: var(--sp-16);
}

.legal-page h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--sp-2);
}

.legal-page .legal-meta {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-10);
}

.legal-page h2 {
  font-size: var(--text-xl);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-3);
}

.legal-page h3 {
  font-size: var(--text-lg);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-2);
}

.legal-page p {
  margin-bottom: var(--sp-4);
  line-height: 1.75;
}

.legal-page ul {
  margin: 0 0 var(--sp-4) var(--sp-6);
}

.legal-page li {
  margin-bottom: var(--sp-2);
  line-height: 1.75;
}

.legal-page hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-8) 0;
}

/* --- Event Banner (QR arrival) ------------------------------ */
.event-banner {
  text-align: center;
  margin-bottom: var(--sp-10);
}

.event-banner-inner {
  display: inline-block;
  padding: var(--sp-6) var(--sp-10);
  background: linear-gradient(135deg, rgba(13,33,55,0.04), rgba(10,126,164,0.06));
  border: 1px solid rgba(10,126,164,0.12);
  border-radius: var(--radius-lg);
}

.event-banner-eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--sp-1);
}

.event-banner-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--sp-1);
  letter-spacing: -0.015em;
}

.event-banner-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

/* --- Interest Form ----------------------------------------- */
.form-page {
  padding-top: calc(64px + var(--sp-16));
  padding-bottom: var(--sp-16);
}

.interest-form {
  max-width: 540px;
  margin: 0 auto;
  background: var(--white-pure);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-8) var(--sp-6);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: var(--sp-6);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--sp-2);
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font);
  font-size: var(--text-base);
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white-pure);
  color: var(--text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(10, 126, 164, 0.12);
}

.form-group input,
.form-group textarea {
  -webkit-appearance: none;   /* remove iOS inner shadow */
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* --- Field hints & character counters ---------------------- */
.field-hint {
  display: block;
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-top: var(--sp-1);
  transition: color var(--transition);
}

.char-count {
  float: right;
  font-variant-numeric: tabular-nums;
}

.char-count.warn {
  color: #C27028;
  font-weight: 500;
}

.char-count.limit {
  color: #C0392B;
  font-weight: 600;
}

/* --- Validation states ------------------------------------- */
.field-error {
  display: none;
  font-size: var(--text-xs);
  color: #C0392B;
  margin-top: var(--sp-1);
  line-height: 1.4;
}

.field-error.visible {
  display: block;
}

.form-error-banner {
  color: #C0392B;
  font-size: var(--text-sm);
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(192, 57, 43, 0.06);
  border: 1px solid rgba(192, 57, 43, 0.15);
  border-radius: var(--radius);
}

/* Valid field (has value + passes validation) */
.form-group input.field-valid,
.form-group textarea.field-valid {
  border-color: #2A9D5C;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232A9D5C' viewBox='0 0 16 16'%3E%3Cpath d='M13.485 3.929a1 1 0 0 1 .086 1.406l-5.5 6.5a1 1 0 0 1-1.472.066l-3-3a1 1 0 1 1 1.414-1.414l2.214 2.214 4.852-5.686a1 1 0 0 1 1.406-.086Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

/* Invalid field (touched + fails validation) */
.form-group input.field-invalid,
.form-group textarea.field-invalid {
  border-color: #C0392B;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23C0392B' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1Zm-.75 4a.75.75 0 0 1 1.5 0v3a.75.75 0 0 1-1.5 0V5Zm.75 6.25a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.form-group input.field-invalid:focus,
.form-group textarea.field-invalid:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.form-group input.field-valid:focus,
.form-group textarea.field-valid:focus {
  box-shadow: 0 0 0 3px rgba(42, 157, 92, 0.12);
}

/* Consent checkbox error */
.form-consent.consent-error label {
  color: #C0392B;
}
.form-consent.consent-error input[type="checkbox"] {
  outline: 2px solid #C0392B;
  outline-offset: 1px;
}

/* Disabled submit state */
button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-consent {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  margin-bottom: var(--sp-6);
}

.form-consent input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: var(--teal);
}

.form-consent label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.form-success {
  text-align: center;
  padding: var(--sp-12) var(--sp-8);
  background: linear-gradient(135deg, rgba(10, 126, 164, 0.06), rgba(140, 235, 170, 0.08));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10, 126, 164, 0.15);
}

/* Remove nested border when success replaces form card */
#form-success .form-success {
  border: none;
  border-radius: 0;
}
.form-success .success-icon {
  margin-bottom: var(--sp-4);
}
.form-success h3 {
  color: var(--teal);
  font-size: var(--text-2xl);
  margin-bottom: var(--sp-2);
}
.form-success p {
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 auto;
}

/* --- Interest Multi-select --------------------------------- */
.interest-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.interest-option {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.625rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--white-pure);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: all var(--transition);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.interest-option:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.interest-option input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.interest-option:focus-within {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.interest-option:has(input:checked) {
  background: rgba(10, 126, 164, 0.08);
  border-color: var(--teal);
  color: var(--teal);
  font-weight: 500;
}

/* Fallback for browsers without :has() — JS adds this class */
.interest-option.selected {
  background: rgba(10, 126, 164, 0.08);
  border-color: var(--teal);
  color: var(--teal);
  font-weight: 500;
}

/* --- Fieldset reset ---------------------------------------- */
.interest-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
.interest-fieldset legend {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--sp-2);
  color: var(--text);
  padding: 0;
}

/* --- Legal text -------------------------------------------- */
.form-legal-text {
  font-size: var(--text-xs);
  color: var(--gray-400);
  line-height: 1.5;
  margin-bottom: var(--sp-4);
}

/* --- QR Code Section --------------------------------------- */
.qr-section {
  text-align: center;
  margin-top: var(--sp-8);
  padding: var(--sp-8);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
}

.qr-section img {
  margin: var(--sp-4) auto;
}

/* --- Footer ------------------------------------------------ */
.site-footer {
  background: var(--navy);
  color: var(--text-light-muted);
  padding: var(--sp-12) var(--sp-6);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
}

.footer-links {
  display: flex;
  gap: var(--sp-6);
  list-style: none;
}
.footer-links a {
  color: var(--text-light-muted);
  font-size: var(--text-sm);
}
.footer-links a:hover { color: var(--white-pure); }

.footer-copy {
  font-size: var(--text-sm);
}

/* --- Page Top Spacer --------------------------------------- */
.page-top { padding-top: 64px; }

/* --- Responsive -------------------------------------------- */
@media (max-width: 768px) {
  .hero { min-height: 90vh; padding: var(--sp-20) var(--sp-4); }
  .hero h1 { font-size: var(--text-3xl); }
  .section { padding: var(--sp-16) var(--sp-4); }
  .section-header { margin-bottom: var(--sp-10); }
  .section-header h2 { font-size: var(--text-2xl); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .post-header h1 { font-size: var(--text-2xl); }

  /* Form — card edge-to-edge on mobile */
  .interest-form {
    border-left: none;
    border-right: none;
    border-radius: 0;
    margin-left: calc(var(--sp-6) * -1);
    margin-right: calc(var(--sp-6) * -1);
    padding: var(--sp-6) var(--sp-6) var(--sp-4);
    box-shadow: none;
  }

  .form-page {
    padding-top: calc(64px + var(--sp-10));
    padding-bottom: var(--sp-10);
  }

  .event-banner-inner {
    padding: var(--sp-4) var(--sp-6);
  }

  .event-banner-title {
    font-size: var(--text-xl);
  }

  .section-header h1 {
    font-size: var(--text-2xl);
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
  .contact-buttons { flex-direction: column; align-items: center; }
}

/* --- Loading State ----------------------------------------- */
.loading {
  text-align: center;
  padding: var(--sp-16);
  color: var(--text-muted);
}
.loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-200);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: var(--sp-2);
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- 404 / Empty State ------------------------------------- */
.empty-state {
  text-align: center;
  padding: var(--sp-20) var(--sp-6);
}
.empty-state h2 { margin-bottom: var(--sp-4); }
.empty-state p { color: var(--text-muted); margin-bottom: var(--sp-8); }

/* --- Credibility ------------------------------------------- */
.credibility-note {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}
.section-dark .credibility-note {
  color: var(--text-light-muted);
  border-top-color: rgba(255,255,255,0.08);
}

/* --- Reduced Motion ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .card:hover {
    transform: none;
  }

  .nav-links {
    transition: none;
  }

  .loading::after {
    animation: none;
  }
}
