/* =========================================================
   Wendy Dabrusin — Edge Home Finance
   Shared stylesheet
   ========================================================= */

:root {
  --navy: #16244a;
  --navy-2: #1a2a5b;
  --blue: #35569e;
  --blue-light: #8eaad3;
  --blue-pale: #eaf0fa;
  --bg: #f6f8fb;
  --white: #ffffff;
  --text: #232a3b;
  --text-soft: #5b6472;
  --border: #e2e7f0;
  --success: #2f8f5b;
  --cream: #fbf9f4;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(22, 36, 74, 0.08);
  --shadow-lg: 0 12px 32px rgba(22, 36, 74, 0.14);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; }

p { margin: 0 0 16px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
  display: inline-block;
}

.lede {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 640px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-2); box-shadow: var(--shadow); }

.btn-accent {
  background: var(--blue-light);
  color: var(--navy);
}
.btn-accent:hover { box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--blue-pale); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ===== Top bar (disclosure strip) ===== */
.topbar {
  background: var(--navy);
  color: #cfd9ef;
  font-size: 0.78rem;
  text-align: center;
  padding: 6px 16px;
}
.topbar a { color: #cfd9ef; text-decoration: underline; }

/* ===== Header / Nav ===== */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-top { border-bottom: 1px solid var(--border); }
.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1340px;
  margin: 0 auto;
  gap: 16px;
  flex-wrap: wrap;
}
.header-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  max-width: 1340px;
  margin: 0 auto;
  gap: 16px;
}
.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}
.brand:hover { text-decoration: none; }
.brand-mark { display: block; height: 56px; width: auto; flex-shrink: 0; }
.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  max-width: 100%;
}
.brand .brand-name {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}
.brand .brand-tag {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--blue);
  line-height: 1.25;
  margin: 1px 0 3px;
  white-space: nowrap;
}
.brand .brand-title,
.brand .brand-sub,
.brand .brand-powered {
  display: block;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  text-transform: uppercase;
  line-height: 1.3;
  white-space: normal;
  max-width: 100%;
}
@media (max-width: 400px) {
  .brand-mark { height: 40px; }
  .brand .brand-name { font-size: 1.2rem; }
  .brand .brand-name,
  .brand .brand-tag { white-space: normal; }
}

.btn-sm { padding: 8px 16px; font-size: 0.8rem; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
nav.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue-pale);
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
nav.main-nav a:hover { color: var(--blue); text-decoration: none; background: #dde8f9; }
nav.main-nav a.active { color: var(--white); background: var(--blue); }

/* Resources dropdown (native <details>/<summary>, no JS required to open) */
.nav-dropdown { position: relative; }
.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue-pale);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { content: "\25BE"; font-size: 0.7em; position: relative; top: 1px; }
.nav-dropdown summary:hover { color: var(--blue); background: #dde8f9; }
.nav-dropdown.current summary { color: var(--white); background: var(--blue); }
.nav-dropdown .dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 190px;
  z-index: 50;
}
.nav-dropdown .dropdown-panel a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.87rem;
  background: none;
}
.nav-dropdown .dropdown-panel a:hover { background: var(--blue-pale); text-decoration: none; }
.nav-dropdown .dropdown-panel a.active { color: var(--blue); background: var(--blue-pale); }
@media (max-width: 820px) {
  .nav-dropdown .dropdown-panel {
    position: static;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 14px;
    margin-top: 2px;
    min-width: 0;
  }
  .nav-dropdown summary { width: 100%; justify-content: center; }
}

.nav-ctas { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--navy);
}

@media (max-width: 820px) {
  nav.main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 10px 14px; width: 100%; border-radius: 10px; text-align: center; }
  .header-bottom-inner { flex-wrap: wrap; justify-content: flex-start; }
  .nav-toggle { display: inline-block; }
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--blue) 100%);
  color: var(--white);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before { width: 440px; height: 440px; background: rgba(255,255,255,0.05); top: -190px; right: -130px; }
.hero::after { width: 280px; height: 280px; background: rgba(142,170,211,0.16); bottom: -120px; left: 8%; }
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero .lede { color: #d7e0f4; }
.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero .eyebrow { color: var(--blue-light); }

/* Pull-quote (e.g. "Meet Wendy" home section) */
.quote-block {
  position: relative;
  padding-left: 26px;
  border-left: 4px solid var(--blue-light);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--navy);
}
.quote-block cite {
  display: block;
  margin-top: 14px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* Numbered process cards (home page "how it works") */
.process-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  text-align: center;
}
.process-card .num-circle {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 auto 16px;
}

.hero-kicker {
  display: inline-block;
  color: #c9d4ec;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
  z-index: 2;
}
.hero-wave svg { display: block; width: 100%; height: 54px; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { padding: 40px 0; }
}

/* Centered italic value-statement strip (between hero and next section) */
.value-statement { text-align: center; padding: 52px 0 12px; }
.value-statement p {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--navy);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}
.value-statement p strong { font-style: normal; color: var(--blue); }

/* Numbered feature cards with a large faint watermark numeral */
.num-card {
  position: relative;
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.num-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.num-card .num-card-index {
  position: absolute;
  top: -10px; right: 2px;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 4.4rem;
  color: var(--blue-pale);
  line-height: 1;
  z-index: 0;
  user-select: none;
}
.num-card .icon, .num-card h3, .num-card p { position: relative; z-index: 1; }

/* ===== Bright hero (home page) — light, photo + scattered note callouts ===== */
.hero-bright {
  background: var(--white);
  padding: 68px 0 84px;
}
.hero-bright .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-bright .eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.hero-bright h1 { color: var(--navy); margin-bottom: 6px; }
.hero-bright .accent-line {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
}
.hero-bright .lede { color: var(--text-soft); }
.hero-bright .hero-media { position: relative; }
.hero-bright .hero-media img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
}
.hero-bright .hero-media::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100%;
  max-width: 460px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 68% 72% at center, rgba(255,255,255,0) 50%, rgba(255,255,255,0.35) 62%, rgba(255,255,255,0.75) 78%, #fff 100%);
  pointer-events: none;
}
@media (max-width: 860px) {
  .hero-bright .container { grid-template-columns: 1fr; }
  .hero-bright { padding: 48px 0 64px; }
}

/* Scattered sticky-note callouts around the hero photo */
.sticky-note {
  position: absolute;
  width: 132px;
  padding: 14px 14px 16px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 10px 22px rgba(22, 36, 74, 0.18);
  z-index: 2;
}
.sticky-note.y { background: #eaf0fa; color: #16244a; transform: rotate(-6deg); }
.sticky-note.p { background: #b9d5f5; color: #16244a; transform: rotate(4deg); }
.sticky-note.b { background: #cfe6ff; color: #123a63; transform: rotate(-3deg); }
.sticky-note.g { background: #8eaad3; color: #0f2142; transform: rotate(5deg); }
@media (max-width: 860px) {
  .sticky-note { display: none; }
}

/* Quick-topic chip row */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-row.center { justify-content: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  box-shadow: var(--shadow);
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Checklist card */
.check-list { display: flex; flex-direction: column; gap: 16px; }
.check-item { display: flex; align-items: flex-start; gap: 12px; }
.check-item .check-dot {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.check-item p { margin: 0; font-size: 0.95rem; }

/* Vertical numbered list with connector line (differentiators) */
.numbered-list { position: relative; max-width: 760px; }
.numbered-list::before {
  content: "";
  position: absolute;
  left: 23px; top: 10px; bottom: 10px;
  width: 2px;
  background: var(--border);
}
.numbered-list-item { position: relative; display: flex; gap: 24px; padding-bottom: 36px; }
.numbered-list-item:last-child { padding-bottom: 0; }

/* Frosted text panel — keeps body copy readable when a section sits over a background photo */
.text-panel {
  background: rgba(255,255,255,0.92);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow);
}
.nli-num {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--navy);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Dark numbered cards (on navy sections) */
.num-card-dark {
  position: relative;
  display: block;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  overflow: hidden;
  text-decoration: none !important;
  transition: transform 0.18s ease, background 0.18s ease;
}
.num-card-dark:hover { transform: translateY(-4px); background: rgba(255,255,255,0.09); }
.num-card-dark .num-card-index {
  position: absolute;
  top: -10px; right: 2px;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 4.4rem;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  z-index: 0;
  user-select: none;
}
.num-card-dark .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.num-card-dark h3 { color: var(--white); position: relative; z-index: 1; margin-bottom: 8px; }
.num-card-dark p { color: #c9d4ec; position: relative; z-index: 1; margin-bottom: 0; }
.num-card-dark .hover-cue {
  display: block;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-light);
  position: relative; z-index: 1;
}

/* Page header (non-home hero, smaller) */
.page-hero {
  background: linear-gradient(120deg, var(--navy), var(--blue));
  color: var(--white);
  padding: 52px 0 46px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero .lede { color: #dbe4f7; margin: 0 auto; }

/* Page hero variant with an illustration/photo alongside the text */
.page-hero-media .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}
.page-hero-media .lede { margin: 0; }
.page-hero-media-art {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  line-height: 0;
}
@media (max-width: 860px) {
  .page-hero-media .container { grid-template-columns: 1fr; text-align: center; }
}

/* ===== Sections ===== */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-pale { background: var(--blue-pale); }

.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head.left { margin: 0 0 36px; text-align: left; }

/* Grids / cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.card:hover, .card.hoverable:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card h3 { margin-bottom: 10px; }
.card .icon, .num-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.stat-row { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 32px; }
.stat-row .stat { min-width: 120px; }
.stat .num { font-family: Georgia, serif; font-size: 2.1rem; color: var(--navy); font-weight: 700; }
.stat .label { color: var(--text-soft); font-size: 0.88rem; }
.hero .stat .num { color: var(--white); }
.hero .stat .label { color: #c9d4ec; }

/* Compact single-line credential strip (replaces the big stat blocks in the home hero) */
.cred-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}
.cred-strip .sep { color: var(--border); font-weight: 400; }
.cred-strip strong { color: var(--navy); }

/* Video cards */
.video-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

/* TikTok embed grid — TikTok's embed has its own minimum width, so give it
   room to breathe instead of forcing a fixed 4-up grid that it overflows. */
.tiktok-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  justify-items: center;
}
.tiktok-card {
  width: 100%;
  max-width: 340px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
}
.tiktok-card blockquote.tiktok-embed {
  margin: 0 !important;
  width: 100% !important;
}
.video-thumb {
  aspect-ratio: 9 / 16;
  background: linear-gradient(160deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--white);
}
.video-thumb .play {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.video-thumb .platform-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.video-card .video-body { padding: 16px 18px 20px; }
.video-card .video-body p { margin: 0; font-size: 0.9rem; color: var(--text-soft); }

.platform-strip { display: flex; gap: 14px; flex-wrap: wrap; }
.platform-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow);
}
.platform-btn:hover { text-decoration: none; box-shadow: var(--shadow-lg); }

/* Forms */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 18px;
  font-family: inherit;
  background: var(--bg);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--blue-light);
  outline-offset: 1px;
}
input[type=file] {
  width: 100%;
  padding: 10px 14px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--bg);
  font-size: 0.85rem;
  font-family: inherit;
}
.form-note {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: -8px;
}
select.tour-date-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 12px 40px 12px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  font-family: inherit;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23223a63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 7.5 10 12.5 15 7.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  margin-bottom: 18px;
  cursor: pointer;
}
select.tour-date-select:invalid { color: var(--text-soft); font-weight: 600; }
select.tour-date-select:focus {
  outline: 2px solid var(--blue-light);
  outline-offset: 1px;
}
.todo-flag {
  display: inline-block;
  background: #fff4d6;
  border: 1px solid #edc65a;
  color: #7a5c00;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

/* Badge / credential blocks */
.badge-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.badge {
  display: flex; align-items: center; gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}
.badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); }

/* Steps */
.steps { counter-reset: step; }
.step {
  display: flex; gap: 18px;
  margin-bottom: 24px;
}
.step .num {
  counter-increment: step;
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.step .num::before { content: counter(step); }

/* Table */
table.simple {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table.simple th, table.simple td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.92rem;
}
table.simple th {
  background: var(--blue-pale);
  color: var(--navy);
  font-family: Georgia, serif;
}
table.simple tr:last-child td { border-bottom: none; }

/* Calculator */
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 800px) { .calc-wrap { grid-template-columns: 1fr; } }
.calc-result {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
}
.calc-result .big {
  font-family: Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
}
.calc-result .breakdown div {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 0.92rem;
}
input[type=range] { width: 100%; accent-color: var(--blue-light); margin-bottom: 18px; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--navy), var(--blue));
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h3 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: #dbe4f7; margin: 0; }

/* Newsletter footer block */
.newsletter-block {
  background: var(--navy-2);
  color: var(--white);
  padding: 44px 0;
}
.newsletter-block h3 { color: var(--white); }
.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 520px;
}
.newsletter-form input[type=email] {
  flex: 1;
  min-width: 220px;
  margin-bottom: 0;
  background: var(--white);
}

/* Footer */
footer.site-footer {
  background: var(--navy);
  color: #b9c4dd;
  padding: 48px 0 20px;
  font-size: 0.88rem;
}
footer.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
footer.site-footer a { color: #b9c4dd; }
footer.site-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.footer-social a svg { display: block; flex-shrink: 0; }
.footer-social a:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.45);
  text-decoration: none;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.78rem;
  color: #8b98b8;
  line-height: 1.7;
}

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.small { font-size: 0.85rem; color: var(--text-soft); }
