/* RESET & BASE
--------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0B0B0D;
  --bg-darker: #1A1A1D;
  --bg-card-dark: #111113;
  --bg-card-light: #FFFFFF;
  --bg-section-alt: #F5F5F7;

  --text-main: #07070C;
  --text-light: #FFFFFF;
  --text-muted: #A0A0A0;

  --accent: #F7931E;
  --accent-soft: rgba(247, 147, 30, 0.12);
  --accent-bright: #FFA439;
  --accent-light: #FFB457;

  --border-subtle: #232326;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.16);
  --shadow-strong: 0 18px 60px rgba(0, 0, 0, 0.3);

  --bg-surface: #1A1A1D;
  --bg-panel: #111113;
  --text-soft: #F2F2F2;
  --placeholder: #7A7A7A;
  --focus-amber: rgba(247, 147, 30, 0.25);
}

html, body {
  scroll-behavior: smooth;
}

body {
  font-family: 'Sora', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #F2F2F3;
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.5;
}

/* TYPOGRAPHY */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
}

p {
  font-size: 0.98rem;
}

/* NAV
--------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  background: rgba(17, 17, 19, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: none; /* ← remove the line at the very top */
  transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}

.nav.dark {
  background: rgba(11, 11, 13, 0.96);
  /* no border here either */
}

.nav.scrolled {
  padding: 10px 5%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid #232326; /* ← border only after scrolling */
}


.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--accent);
  cursor: pointer;
}

.logo img {
  height: 40px;
  display: block;
}

.footer-logo {
  font-size: 1.3rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  color: rgba(242, 242, 242, 0.82);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent);
}

/* BUTTONS
--------------------------------------------- */
.cta,
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.nav-btn.primary,
.cta.primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  border-color: var(--accent);
  color: #0B0B0D;
  box-shadow: 0 12px 35px rgba(247, 147, 30, 0.4), 0 0 0 1px rgba(255, 180, 87, 0.32);
}

.nav-btn.primary:hover,
.cta.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 46px rgba(247, 147, 30, 0.48);
}

.cta.ghost,
.nav-btn.ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: #232326;
}

.cta.ghost:hover,
.nav-btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(247, 147, 30, 0.08);
  box-shadow: 0 12px 32px rgba(247, 147, 30, 0.18);
}

.cta.full {
  width: 100%;
}

/* HERO
--------------------------------------------- */
.hero {
  margin-top: 0;
  padding: 120px 5% 100px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 180, 87, 0.14) 0, transparent 34%),
    radial-gradient(circle at 82% 0%, rgba(247, 147, 30, 0.1) 0, transparent 38%),
    linear-gradient(180deg, #1A1A1D 0%, #0B0B0D 60%, #0B0B0D 100%);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 10% 0%, rgba(247, 147, 30, 0.22) 0, transparent 50%),
    radial-gradient(circle at 80% 0%, rgba(255, 180, 87, 0.14) 0, transparent 55%);
  opacity: 0.8;
}

.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(26, 26, 29, 0.75);
  border: 1px solid #232326;
  color: rgba(242, 242, 242, 0.85);
}

.pill-soft {
  background: rgba(247, 147, 30, 0.14);
  border-color: rgba(247, 147, 30, 0.32);
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  margin-bottom: 20px;
}

.highlight {
  color: var(--accent);
}

.subtitle {
  margin-top: 6px;
  font-size: 1rem;
  color: rgba(242, 242, 242, 0.82);
  max-width: 650px;
}

.hero-cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-microcopy {
  margin-top: 18px;
  font-size: 0.9rem;
  color: rgba(242, 242, 242, 0.7);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.hero-proof-row {
  margin-top: 30px;
}

.mini-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(242, 242, 242, 0.58);
  margin-bottom: 8px;
}

.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(35, 35, 38, 0.85);
  font-size: 0.8rem;
  color: rgba(242, 242, 242, 0.85);
}

/* SECTIONS
--------------------------------------------- */
.section {
  padding: 80px 5%;
  max-width: 1180px;
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-section-alt);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  margin: 16px auto 0;
}

/* CARD GRID
--------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* Center the 4th card when it wraps on a new row */
@media (min-width: 900px) {
  /* "Why builders use CserX" */
  .section.section-alt .card-grid .card:nth-child(4) {
    grid-column: 2;
  }

  /* "What you can generate with CserX" */
  #use-cases .card-grid .card:nth-child(4) {
    grid-column: 2;
  }
}

.card {
  background: var(--bg-card-light);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card.visible {
  transform: translateY(0);
  opacity: 1;
}

.card:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
  border-color: rgba(247, 147, 30, 0.33);
}

.card-number {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.94rem;
  color: #3E3E44;
}

/* EXAMPLE BLOCK
--------------------------------------------- */
.example-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.example-text {
  transform: translateY(18px);
  opacity: 0;
  transition: all 0.35s ease;
}

.example-text.visible {
  transform: translateY(0);
  opacity: 1;
}

.feature-list {
  list-style: none;
  margin-top: 18px;
}

.feature-list li {
  padding-left: 1.3em;
  position: relative;
  font-size: 0.95rem;
  color: #3E3E44;
  margin-bottom: 6px;
}

.feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.example-card {
  background: #111113;
  border-radius: 18px;
  box-shadow: var(--shadow-strong);
  border: 1px solid #232326;
  overflow: hidden;
  transform: translateY(18px);
  opacity: 0;
  transition: all 0.35s ease;
}

.example-card.visible {
  transform: translateY(0);
  opacity: 1;
}

.example-header {
  padding: 10px 14px;
  display: flex;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid #232326;
  background: radial-gradient(circle at top left, rgba(247, 147, 30, 0.16) 0, transparent 55%);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dot.red { background: #FF5F57; }
.dot.yellow { background: #FEBB2E; }
.dot.green { background: #27C53B; }

.example-body {
  padding: 18px 18px 10px;
  color: var(--text-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
}

.example-code {
  white-space: pre-wrap;
}

.example-footnote {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0 18px 16px;
}

/* PRICING
--------------------------------------------- */
.pricing-section {
  padding: 80px 5% 90px;
  background: #F0F0F4;
}

.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  max-width: 780px;
  margin: 0 auto;
}

.price-card {
  width: 320px;
  background: #FFFFFF;
  border-radius: 22px;
  padding: 28px 24px 26px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.price-card.visible {
  transform: translateY(0);
  opacity: 1;
}

.price-card:hover {
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
  border-color: rgba(247, 147, 30, 0.4);
}

.price-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  margin: 6px 0 2px;
}

.price-list {
  list-style: none;
  margin: 14px 0 16px;
  font-size: 0.9rem;
  color: #3E3E44;
}

.price-list li {
  margin-bottom: 4px;
}

.badge {
  position: absolute;
  top: -14px;
  right: 20px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #1B1306;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(247, 147, 30, 0.5);
}

.price-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #232326;
  color: #232326;
  background: #F2F2F2;
  transition: all 0.2s ease;
}

.price-btn:hover {
  background: #232326;
  color: #F2F2F2;
  border-color: #232326;
}

.price-btn.primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  border-color: var(--accent);
  color: #0B0B0D;
  box-shadow: 0 12px 32px rgba(247, 147, 30, 0.24);
}

.price-btn.primary:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  border-color: var(--accent);
  color: #0B0B0D;
  box-shadow: 0 14px 38px rgba(247, 147, 30, 0.3);
}

/* FAQ
--------------------------------------------- */
.faq-section {
  padding-bottom: 90px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.faq-item {
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 18px 18px 16px;
  background: #FFFFFF;
  transform: translateY(18px);
  opacity: 0;
  transition: all 0.35s ease;
}

.faq-item.visible {
  transform: translateY(0);
  opacity: 1;
}

.faq-item h3 {
  font-size: 0.98rem;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.92rem;
  color: #3E3E44;
}

/* FOOTER
--------------------------------------------- */
.footer {
  padding: 26px 5% 22px;
  background: #0B0B0D;
  color: rgba(242, 242, 242, 0.8);
  border-top: 1px solid #232326;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  font-size: 0.85rem;
  color: rgba(242, 242, 242, 0.65);
  margin-top: 4px;
}

.footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
}

.footer-right a {
  color: rgba(242, 242, 242, 0.75);
  text-decoration: none;
}

.footer-right a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  font-size: 0.78rem;
  color: rgba(242, 242, 242, 0.55);
}

/* FORM PAGE
--------------------------------------------- */
.dark-bg {
  background:
    radial-gradient(circle at 20% 40%, rgba(255, 180, 87, 0.16), transparent 60%),
    linear-gradient(180deg, #1A1A1D 0%, #0B0B0D 55%, #0B0B0D 100%);
  min-height: 100vh;
  color: var(--text-light);
}

.form-page-wrapper {
  padding: 110px 3% 56px;
  max-width: 1080px;
  margin: 0 auto;
}

.form-card {
  background:
    radial-gradient(circle at 0 0, rgba(255, 180, 87, 0.16) 0, transparent 45%),
    linear-gradient(145deg, rgba(17, 17, 19, 0.96), rgba(26, 26, 29, 0.96));
  border-radius: 24px;
  padding: 26px 26px 28px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.6), 0 10px 36px rgba(247, 147, 30, 0.16);
  border: 1px solid #24242a;
  max-width: 860px;
  margin: 0 auto;
}

/* Form header / steps */
.form-header {
  margin-bottom: 24px;
}

.step-labels {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.step-label span:last-child {
  letter-spacing: 0.02em;
}

.step-label.active {
  color: #ffffff;
}

.step-circle {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: 1px solid #3a3a40;
  background: rgba(15, 15, 19, 0.9);
  color: var(--text-muted);
}

.step-label.active .step-circle {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(255, 164, 57, 0.22), rgba(247, 147, 30, 0.16));
  color: #F7931E;
  box-shadow: 0 0 0 1px rgba(247, 147, 30, 0.25);
}

.step-progress {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #1c1c20;
  overflow: hidden;
}

.step-progress-bar {
  height: 100%;
  width: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, #F7931E, #FFB457);
  transition: width 0.28s ease;
}

/* Step visibility */
.form-step {
  display: none;
}

.form-step.active-step {
  display: block;
}

/* Titles / copy */
.form-title {
  font-size: 1.9rem;
  margin-bottom: 6px;
  color: var(--text-soft);
}

.form-subtitle {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 640px;
}

/* Trigger grid – flex so last row centers */
.trigger-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.trigger-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2c2c2e;
  color: #f2f2f2;
  font-size: 0.95rem;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  min-height: 70px;
  flex: 1 1 260px;
  max-width: 320px;
  backdrop-filter: blur(4px);
}

.trigger-card:hover {
  background: rgba(255, 180, 87, 0.12);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(247, 147, 30, 0.2);
  transform: translateY(-2px);
}

.trigger-card.selected {
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(247, 147, 30, 0.25), 0 0 0 1px rgba(247, 147, 30, 0.25);
  background: rgba(255, 180, 87, 0.18);
}

.trigger-icon {
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.trigger-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trigger-title {
  font-size: 0.98rem;
  color: #ffffff;
}

.trigger-desc {
  font-size: 0.86rem;
  color: #a8a8b3;
}

/* Fields */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 6px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: 0.92rem;
  color: #f5f5f7;
  font-weight: 500;
}

.req {
  color: var(--accent-light);
  margin-left: 2px;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

input,
textarea,
select {
  margin-top: 2px;
  background: var(--bg-surface);
  border-radius: 12px;
  border: 1px solid #232326;
  padding: 10px 11px;
  color: var(--text-soft);
  font-size: 0.94rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(247, 147, 30, 0.85);
  box-shadow: 0 0 0 1px rgba(247, 147, 30, 0.45), 0 0 0 8px rgba(247, 147, 30, 0.08);
  background: #111114;
}

/* Actions */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.form-actions .cta {
  flex: 1 1 180px;
}

.form-disclaimer {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.step-actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* HELP WIDGET (global on form page)
--------------------------------------------- */
#helpWidget {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  pointer-events: auto;
}

#helpToggleBtn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffb457, #f7931e);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 8px 18px rgba(247, 147, 30, 0.35),
    0 0 22px rgba(255, 180, 87, 0.35);
  backdrop-filter: blur(3px);
  transition: all 0.2s ease;
}

#helpToggleBtn:hover {
  transform: scale(1.12);
  box-shadow:
    0 10px 30px rgba(247, 147, 30, 0.4),
    0 0 30px rgba(255, 180, 87, 0.45);
}

#helpModal {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 320px;
  background: linear-gradient(135deg, #1A1A1D, #0B0B0D);
  color: var(--text-soft);
  border: 1px solid #232326;
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
  z-index: 10000;
  animation: fadeIn 0.3s ease;
  font-size: 0.92rem;
  line-height: 1.6;
  max-height: 80vh;
  overflow-y: auto;
}

#helpModal.hidden {
  display: none;
}

.help-content h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: var(--accent);
}

.help-content h4 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.help-content ul {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.help-content ul li {
  margin-bottom: 6px;
  list-style: disc;
  margin-left: 1.3em;
}

#helpCloseBtn {
  margin-top: 6px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ANIMATIONS ON SCROLL
--------------------------------------------- */
[data-animate],
.card,
.price-card,
.faq-item,
.example-text,
.example-card {
  opacity: 0;
  transform: translateY(18px);
}

.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE
--------------------------------------------- */
@media (max-width: 900px) {
  .nav-right {
    gap: 10px;
  }

  .nav-link {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 110px 6% 70px;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-inner {
    text-align: left;
  }

  .example-layout {
    grid-template-columns: 1fr;
  }

  .pricing-section {
    padding-inline: 6%;
  }

  .form-card {
    padding-inline: 20px;
    padding-top: 22px;
  }

  .form-page-wrapper {
    padding-inline: 6%;
  }

  .form-title {
    font-size: 1.6rem;
  }

  .trigger-card {
    max-width: 100%;
  }

  .logo img {
    height: 32px;
  }
}

@media (max-width: 520px) {
  .nav {
    padding-inline: 6%;
  }

  .hero {
    padding-inline: 6%;
  }

  .section {
    padding-inline: 6%;
  }

  .hero-badge-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-card {
    border-radius: 18px;
  }

  .form-page-wrapper {
    padding-inline: 6%;
    padding-top: 96px;
  }

  .step-labels {
    flex-direction: row;
    justify-content: space-between;
  }

  .step-label span:last-child {
    font-size: 0.82rem;
  }

  #helpWidget {
    bottom: 20px;
    right: 20px;
  }
}

/* ============================================================
   C S E R X   –   P R E M I U M   W H I T E   F O R M   T H E M E
   ============================================================ */

/* ---------------------- PAGE BACKGROUND ---------------------- */

.dark-bg {
  background: #ffffff !important;   /* pure premium white */
  min-height: 100vh;
  color: var(--text-main);
}

/* ---------------------- FORM WRAPPER ------------------------- */

.form-page-wrapper {
  padding: 120px 5% 80px;
  max-width: 900px;
  margin: 0 auto;
}

/* ---------------------- MAIN FORM CARD ----------------------- */

.form-card {
  background: #ffffff; /* clean white card */
  border-radius: 22px;
  padding: 34px 38px 40px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.03);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* ---------------------- STEP HEADER -------------------------- */

.form-header {
  margin-bottom: 28px;
}

.step-labels {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8c8c8c;
  font-size: 0.9rem;
  font-weight: 500;
}

.step-label.active {
  color: #000000;
}

.step-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #d3d3d3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background: #ffffff;
}

.step-label.active .step-circle {
  border-color: var(--accent);
  background: var(--accent-light);
  color: #fff;
}

.step-progress {
  height: 4px;
  width: 100%;
  border-radius: 999px;
  background: #e8e8e8;
}

.step-progress-bar {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #ffa439, #f7931e);
  border-radius: 999px;
  transition: width 0.25s ease;
}

/* ---------------------- TITLES ------------------------------- */

.form-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}

.form-subtitle {
  color: #6f6f6f;
  font-size: 0.95rem;
  margin-bottom: 20px;
  max-width: 560px;
}

/* ---------------------- TRIGGER CARDS ------------------------ */

.trigger-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.trigger-card {
  background: #fafafa;
  border-radius: 16px;
  border: 1px solid #e3e3e3;
  padding: 16px 20px;
  min-height: 80px;
  flex: 1 1 230px;
  max-width: 260px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  transition: all 0.18s ease;
  cursor: pointer;
}

.trigger-card:hover {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(247, 147, 30, 0.18);
  transform: translateY(-2px);
}

.trigger-card.selected {
  border-color: var(--accent);
  background: #fff9f1;
  box-shadow:
    0 12px 30px rgba(247, 147, 30, 0.25),
    0 0 0 1px rgba(247, 147, 30, 0.2);
}

.trigger-icon {
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trigger-title {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
}

.trigger-desc {
  color: #777;
  font-size: 0.85rem;
}

/* ---------------------- FORM FIELDS -------------------------- */

.field-group label {
  color: #222;
  font-weight: 600;
  font-size: 0.95rem;
}

.field-hint {
  color: #8b8b8b;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

input,
textarea,
select {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  padding: 12px 12px;
  font-size: 0.95rem;
  color: #333;
  border-radius: 14px;
  transition: all 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(247, 147, 30, 0.22);
}

/* ---------------------- BUTTONS ------------------------------ */

.form-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.cta.primary {
  width: 100%;
  background: linear-gradient(135deg, #ffa439, #f7931e);
  border: none;
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;

  transition: all 0.18s ease;
}

.cta.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(247, 147, 30, 0.35);
}

.cta.ghost {
  width: 100%;
  border: 1px solid #d3d3d3;
  color: #333;
  background: #fff;
}

.cta.ghost:hover {
  border-color: #999;
}

/* ---------------------- HELP WIDGET -------------------------- */

#helpWidget {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
}

#helpToggleBtn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffa439, #f7931e);
  color: #111;
  border: none;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 30px rgba(247, 147, 30, 0.3);
  transition: all 0.2s ease;
}

#helpToggleBtn:hover {
  transform: scale(1.12);
  box-shadow: 0 16px 40px rgba(247, 147, 30, 0.38);
}

#helpModal {
  position: fixed;
  bottom: 90px;
  right: 32px;
  width: 320px;

  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e5e5;
  padding: 18px 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.12);

  color: #222;
}

#helpModal.hidden {
  display: none;
}

#helpCloseBtn {
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: #fff;
  cursor: pointer;
}

/* ---------------------- MOBILE ------------------------------- */

@media (max-width: 540px) {
  .form-card {
    padding: 28px 22px;
  }
  #helpWidget {
    right: 18px;
    bottom: 18px;
  }
  #helpModal {
    right: 12px;
    bottom: 80px;
    width: 92%;
  }
}

/* FINAL OVERRIDES – FORCE WHITE FORM FIELDS */
input,
textarea,
select {
  background: #ffffff !important;
  color: #222 !important;
  border: 1px solid #dcdcdc !important;
}

input::placeholder,
textarea::placeholder {
  color: #a0a0a0 !important;
}

/* OPEN DROPDOWN LIST */
select option {
  background: #ffffff !important;
  color: #222 !important;
}

/* FOCUS STATE */
input:focus,
textarea:focus,
select:focus {
  background: #ffffff !important;
  color: #111 !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(247,147,30,0.22) !important;
}

/* ============================================================
   C S E R X – START SETUP PAGE WITH PLAN CARDS (Style C)
   ============================================================ */

.start-bg {
  background: #f6f6f9;
  min-height: 100vh;
}

.start-wrapper {
  max-width: 960px;
  margin: 130px auto 80px;
  padding: 0 20px;
}

.start-card {
  background: #ffffff;
  border-radius: 26px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 32px 32px 34px;
}

.start-card-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.start-pill-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(247, 147, 30, 0.08);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
}

.start-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}

.start-subtitle {
  font-size: 0.95rem;
  color: #686868;
  margin-bottom: 24px;
}

/* Plan cards grid */
.start-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.plan-card {
  position: relative;
  text-align: left;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e4e4e7;
  padding: 18px 18px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease,
    background 0.2s ease;
}

.plan-card:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.plan-card.selected {
  border-color: var(--accent);
  box-shadow:
    0 16px 48px rgba(247, 147, 30, 0.28),
    0 0 0 1px rgba(247, 147, 30, 0.25);
  background: #fff9f1;
}

.plan-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}

.plan-period {
  font-size: 0.85rem;
  color: #8a8a8a;
}

.plan-points {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: #555;
}

.plan-points li + li {
  margin-top: 3px;
}

.plan-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffa439, #f7931e);
  color: #1a1206;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(247, 147, 30, 0.35);
}

/* Selected copy + button */
.start-selected-copy {
  font-size: 0.9rem;
  color: #666;
  margin-top: 4px;
  margin-bottom: 18px;
}

#selected-plan-label {
  font-weight: 700;
  color: var(--accent);
}

.start-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #ffa439, #f7931e);
  box-shadow:
    0 12px 36px rgba(247, 147, 30, 0.3),
    0 0 0 1px rgba(247, 147, 30, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.start-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 46px rgba(247, 147, 30, 0.36),
    0 0 0 1px rgba(247, 147, 30, 0.3);
}

.start-footnote {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #8a8a8a;
}

/* Responsive */
@media (max-width: 720px) {
  .start-wrapper {
    margin-top: 120px;
  }

  .start-card {
    padding: 28px 22px 32px;
  }

  .start-plan-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   C S E R X – CHECKOUT PAGE (Review & pay)
   ============================================================ */

.checkout-bg {
  background: #f6f6f9;
  min-height: 100vh;
}

.checkout-wrapper {
  max-width: 800px;
  margin: 130px auto 80px;
  padding: 0 20px;
}

.checkout-card {
  background: #ffffff;
  border-radius: 26px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 32px 32px 34px;
}

.checkout-header {
  text-align: center;
  margin-bottom: 24px;
}

.checkout-step {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9a9a9a;
  margin-bottom: 6px;
}

.checkout-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}

.checkout-subtitle {
  font-size: 0.95rem;
  color: #6d6d6d;
}

/* Plan card inside checkout */
.checkout-plan-card {
  margin-top: 20px;
  margin-bottom: 24px;
  border-radius: 20px;
  border: 1px solid #e4e4e7;
  padding: 18px 20px 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.02);
  background: #ffffff;
}

.checkout-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.checkout-plan-name {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
}

.checkout-plan-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff5e8;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
}

.checkout-plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.checkout-plan-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.checkout-plan-period {
  font-size: 0.9rem;
  color: #8a8a8a;
}

.checkout-plan-note {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

.checkout-plan-includes {
  margin-top: 4px;
}

.checkout-includes-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.checkout-includes-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.86rem;
  color: #555;
}

.checkout-includes-list li + li {
  margin-top: 3px;
}

/* Footer / button */
.checkout-footer {
  text-align: center;
}

.checkout-pay-btn {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;

  background: linear-gradient(135deg, #ffa439, #f7931e);
  box-shadow:
    0 12px 36px rgba(247, 147, 30, 0.3),
    0 0 0 1px rgba(247, 147, 30, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.checkout-pay-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 46px rgba(247, 147, 30, 0.36),
    0 0 0 1px rgba(247, 147, 30, 0.3);
}

.checkout-secure-copy {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #8a8a8a;
}

/* Responsive */
@media (max-width: 540px) {
  .checkout-wrapper {
    margin-top: 120px;
  }

  .checkout-card {
    padding: 26px 18px 30px;
  }

  .checkout-plan-card {
    padding-inline: 16px;
  }
}


/* ---------- Checkout: change plan modal ---------- */

.plan-modal.hidden {
  display: none;
}

.plan-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.plan-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(4px);
}

.plan-modal-dialog {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 24px 22px 22px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.plan-modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #111;
}

.plan-modal-subtitle {
  font-size: 0.9rem;
  color: #6d6d6d;
  margin-bottom: 16px;
}

.plan-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: #f3f3f5;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.plan-modal-close:hover {
  background: #e6e6ea;
}

/* Grid of options */

.plan-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.plan-option-card {
  position: relative;
  background: #fafafa;
  border-radius: 18px;
  border: 1px solid #e2e2e6;
  padding: 14px 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.15s ease, background 0.2s ease;
}

.plan-option-card:hover {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(247, 147, 30, 0.24);
  transform: translateY(-1px);
}

.plan-option-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 2px;
}

.plan-option-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.plan-option-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}

.plan-option-period {
  font-size: 0.8rem;
  color: #8a8a8a;
}

.plan-option-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.8rem;
  color: #555;
}

.plan-option-list li + li {
  margin-top: 3px;
}

.plan-option-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffa439, #f7931e);
  color: #1a1206;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(247, 147, 30, 0.3);
}

/* Checkout footer link */

.checkout-change-plan {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 12px;
}

.checkout-change-plan button {
  border: none;
  background: none;
  padding: 0;
  margin-left: 4px;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.checkout-change-plan button:hover {
  text-decoration: underline;
}

@media (max-width: 540px) {
  .plan-modal-dialog {
    max-width: 94%;
    padding-inline: 18px;
  }

  .plan-modal-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------
   SUCCESS & CANCEL PAGES
   ------------------------------------------------------ */

.success-card,
.cancel-card {
  text-align: center;
}

.success-icon,
.cancel-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  border-radius: 50%;
  font-size: 40px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon {
  background: rgba(34, 197, 94, 0.1);
  color: rgb(22, 163, 74);
}

.cancel-icon {
  background: rgba(239, 68, 68, 0.1);
  color: rgb(220, 38, 38);
}

.success-title,
.cancel-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}

.success-message,
.cancel-message {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 24px;
}

.success-buttons a,
.cancel-buttons a {
  margin-top: 6px;
}

/* Improve spacing on mobile */
@media (max-width: 540px) {
  .success-title,
  .cancel-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 600px) {

  .form-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .form-actions .cta {
    flex: none !important;
    width: 100% !important;
    padding: 14px 18px !important;
    min-height: 54px !important;

    border-radius: 16px !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    box-shadow: none !important;
    transform: none !important;
  }

  .form-actions .cta::before {
    content: none !important;
  }

  /* Primary (orange) button */
  #submitBtn.cta.primary.full {
    background: linear-gradient(135deg, #ffa439, #f7931e) !important;
    color: #fff !important;
    border: none !important;
  }

  /* Secondary (white) button */
  #backBtn.cta.ghost.full {
    background: #fff !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
  }
}

/* Overlay */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 999;
}

/* Modal container */
.legal-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 1000;
  display: none;
  overflow-y: auto;
}

/* Close button */
.close-modal {
  float: right;
  cursor: pointer;
  font-size: 28px;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 60px;
  padding: 20px;
  color: #666;
  font-size: 14px;
}

.footer a {
  margin: 0 10px;
  cursor: pointer;
}

/* --- PREMIUM MODAL OVERLAY --- */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* Show overlay */
#modal-overlay.active {
  opacity: 1;
}


.legal-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  background: #ffffff;
  padding: 28px 28px 36px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  display: none;
  z-index: 1000;
  overflow-y: auto;
  transition: all 0.25s ease;
  opacity: 0;
}

.legal-modal.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* --- CONTENT STYLE --- */
.legal-content h2 {
  font-size: 26px;
  margin-bottom: 6px;
  font-weight: 700;
}

.legal-content p {
  line-height: 1.55;
  font-size: 15px;
  color: #333;
}

.legal-content h3 {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 600;
}

/* Close button */
.close-modal {
  float: right;
  cursor: pointer;
  font-size: 28px;
  font-weight: bold;
  color: #444;
  transition: 0.25s ease;
}

.close-modal:hover {
  color: #ff4b4b;
  transform: scale(1.1);
}

/* Make scrollbars pretty */
.legal-modal::-webkit-scrollbar {
  width: 8px;
}

.legal-modal::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

#modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* CONTACT
--------------------------------------------- */
.contact-section {
  padding: 80px 5% 90px;
  background: #F0F0F4; /* same as pricing section */
}

.contact-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 56px;
}

.contact-copy h2 {
  font-size: 1.9rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.contact-copy p {
  max-width: 420px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #3E3E44;
}

/* Card */
.contact-form {
  flex: 0 0 380px;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 24px 24px 26px;
  border: 1px solid #E3E3EC;
  box-shadow: 0 20px 55px rgba(11, 11, 13, 0.08);
  color: var(--text-main);
}

/* Fields */
.contact-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.contact-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #3E3E44;
}

.contact-form input,
.contact-form textarea {
  background: #F7F7FB;
  border-radius: 12px;
  border: 1px solid #D6D6E2;
  padding: 11px 14px;
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #A2A2B3;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(247, 147, 30, 0.25);
}

/* Button uses existing .cta styles, just stretch it */
.contact-form .cta.full {
  width: 100%;
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-inner {
    flex-direction: column;
    gap: 32px;
  }

  .contact-form {
    flex: 1 1 auto;
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .contact-section {
    padding: 64px 5% 72px;
  }

  .contact-copy h2 {
    font-size: 1.6rem;
  }
}

/* ================
   FIXED SIDE NAV
================= */
.side-nav {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  background: #FFFFFF;
  padding: 16px 18px;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid #ECECF2;
}

.side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2D2D35;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.side-nav a:hover {
  background: #F2F2F8;
  color: var(--accent);
}

.side-nav a.active {
  background: #F7F0E8;
  color: var(--accent);
}

/* Hide on mobile */
@media (max-width: 900px) {
  .side-nav {
    display: none;
  }
}

/* =====================================
   SIDE NAVIGATION - PROPERLY CENTERED
====================================== */

.side-nav-wrapper {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 999;
  display: flex;
  align-items: center; /* centers button and card to each other */
}

/* Toggle button */
.side-nav-toggle {
  width: 36px;
  height: 56px;
  background: #ffffff;
  border: 1px solid #ECECF2;
  border-right: none;
  border-radius: 10px 0 0 10px;
  box-shadow: -4px 0 16px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 1001;
  transition: background 0.25s ease;
  
  /* Remove any transform from button */
  transform: translateY(-50%);
}

.side-nav-toggle:hover {
  background: #F9F9FB;
}

.side-nav-toggle .arrow {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

/* Navigation card */
.side-nav {
  background: #ffffff;
  padding: 18px 20px;
  border-radius: 18px 0 0 18px;
  box-shadow: -8px 0 28px rgba(0,0,0,0.12);
  border: 1px solid #ECECF2;
  border-right: none;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.4s ease;
  transform: translateY(-50%) translateX(0);
  opacity: 1;
}

/* When CLOSED - hide the nav card */
.side-nav-wrapper.closed .side-nav {
  transform: translateY(-50%) translateX(100%);
  opacity: 0;
  pointer-events: none;
}

/* Nav links */
.side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2D2D35;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  display: block;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.side-nav a:hover {
  background: #F2F2F8;
  color: var(--accent);
}

.side-nav a.active {
  background: #FFF5E8;
  color: var(--accent);
}

/* Hide on mobile */
@media (max-width: 900px) {
  .side-nav-wrapper {
    display: none;
  }
}
