/* Clear Choice Services — site stylesheet */

:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #f8fafc;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --hero: #0f172a;
  --hero-soft: #1e293b;
  --max: 1200px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  text-align: center;
  gap: 8px;
}

.brand img {
  width: clamp(56px, 14vw, 84px);
  border-radius: 6px;
}

.brand-title {
  display: block;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  line-height: 1.1;
}

.brand-subtitle {
  display: block;
  font-size: clamp(12px, 2.5vw, 14px);
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  white-space: nowrap;
  max-width: 100%;
  padding: 0 8px 2px;
  scrollbar-width: thin;
}

.nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
}

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

/* ── Layout ── */

main { padding: 36px 0 64px; }

/* ── Slideshow ── */

.slideshow {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b1220;
  box-shadow: var(--shadow);
  max-width: 1000px;
  margin: 0 auto 40px auto;
  touch-action: pan-y;
  user-select: none;
}

.slides {
  position: relative;
  height: clamp(320px, 65vh, 680px);
  background: #0b1220;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b1220;
}

.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.62), rgba(0,0,0,0.12));
  font-size: 15px;
  font-weight: 500;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  color: #0f172a;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 22px;
  z-index: 2;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}

.slide-btn:hover { background: #fff; }
.slide-btn.prev { left: 14px; }
.slide-btn.next { right: 14px; }

.slide-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15,23,42,0.32);
  backdrop-filter: blur(6px);
}

.slide-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  padding: 0;
}

.slide-dots button.active { background: #fff; transform: scale(1.15); }

/* ── Hero ── */

.hero {
  background: linear-gradient(135deg, var(--hero), var(--hero-soft));
  color: #fff;
  padding: 64px 24px;
  text-align: center;
  border-radius: 0 0 14px 14px;
  margin-bottom: 48px;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero h1 span { color: #60a5fa; }

.hero p {
  margin: 0 auto;
  max-width: 680px;
  font-size: clamp(17px, 2vw, 20px);
  color: #dbeafe;
  font-weight: 500;
}

.cta-row {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Buttons ── */

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover { background: var(--blue-dark); }

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.24);
}

/* ── Sections ── */

.section { margin-bottom: 54px; }

.section-center {
  text-align: center;
  padding: 0 20px;
}

.section-center .quote {
  font-size: 22px;
  color: #1e293b;
  font-weight: 600;
  margin-bottom: 8px;
}

.section-center .sub {
  color: var(--muted);
  font-size: 16px;
}

.section-title {
  text-align: center;
  font-size: 30px;
  margin: 0 0 26px;
  color: #0f172a;
}

/* ── Service cards ── */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(15,23,42,0.03);
}

.card .icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  color: #1e293b;
}

.card p { margin: 0; color: #475569; }

/* ── Offer banner ── */

.offer {
  background: #eff6ff;
  border: 2px dashed #3b82f6;
  border-radius: 14px;
  padding: 30px 24px;
  text-align: center;
}

.offer h3 {
  margin: 0;
  font-size: 26px;
  color: #1e40af;
}

.offer p {
  margin: 10px 0 0;
  font-size: 18px;
  color: #1e3a8a;
}

/* ── Testimonial ── */

.testimonial {
  text-align: center;
  padding: 0 20px;
}

.stars {
  font-size: 24px;
  color: #fbbf24;
  margin-bottom: 10px;
}

.testimonial blockquote {
  margin: 0 auto 14px;
  max-width: 760px;
  font-size: 18px;
  color: #334155;
  font-style: italic;
}

.testimonial .author {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

/* ── Contact / Form ── */

.contact-intro {
  text-align: center;
  margin-bottom: 26px;
}

.contact-intro h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.contact-intro p {
  margin: 0;
  color: var(--muted);
}

.form-shell {
  width: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.form-shell iframe {
  width: 100%;
  height: 3800px;
  border: 0;
  display: block;
}

/* ── Terms ── */

.terms {
  background: var(--panel);
  border-top: 4px solid #cbd5e1;
  padding: 36px 20px;
  color: var(--muted);
  font-size: 14px;
  border-radius: 14px;
}

.terms h2 {
  text-align: center;
  color: #334155;
  margin: 0 0 24px;
}

.terms .lead {
  text-align: center;
  margin-bottom: 24px;
}

.terms details {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}

.terms summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 700;
}

.terms .terms-body { margin-top: 16px; color: #475569; }

/* ── Footer ── */

.site-footer {
  text-align: center;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #94a3b8;
  font-size: 14px;
}

.site-footer p { margin: 0 0 10px; }

/* ── Form availability states ── */

.form-status-checking {
  text-align: center;
  color: var(--muted);
  padding: 28px 0;
  font-size: 15px;
}

.form-fallback-box {
  text-align: center;
  padding: 36px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.form-fallback-box p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
}

/* ── Multi-step form shell ── */

.form-ms {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ── Progress bar ── */

.step-progress {
  padding: 20px 28px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.step-progress-track {
  height: 6px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}

.step-progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 99px;
  transition: width 0.35s ease;
  width: 20%;
}

.step-progress-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* ── Individual steps ── */

.form-step {
  display: none;
  padding: 28px 28px 10px;
}

.form-step.active { display: block; }

.step-title {
  margin: 0 0 20px;
  font-size: 20px;
  color: #1e293b;
}

.step-subtitle {
  margin: -12px 0 20px;
  font-size: 14px;
  color: var(--muted);
}

/* ── Privacy box ── */

.privacy-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 13px;
  color: #475569;
  margin-bottom: 20px;
  line-height: 1.65;
}

.privacy-box strong { color: #334155; }

/* ── Form fields ── */

.form-field {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.form-label .req { color: #dc2626; margin-left: 2px; }

.form-input {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-input.input-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.08);
}

/* ── Checkboxes & radios ── */

.check-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: #334155;
  cursor: pointer;
  line-height: 1.45;
}

.check-item input[type=checkbox],
.check-item input[type=radio] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
  cursor: pointer;
}

/* ── Other text input (shown when "Other" radio selected) ── */

.other-input-wrap {
  margin-top: 8px;
  margin-left: 27px;
}

.other-input-wrap input {
  width: 100%;
  max-width: 360px;
}

/* ── Validation errors ── */

.field-error,
.group-error,
.radio-error {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: #dc2626;
}

/* ── Step navigation ── */

.step-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 28px 24px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}

.step-nav .btn-secondary {
  background: var(--panel);
  color: #334155;
  border: 1px solid var(--line);
}

.step-nav .btn-secondary:hover { background: var(--line); }

/* ── Rate limit message ── */

.form-rate-limit-msg {
  margin: 0 28px 16px;
  padding: 12px 16px;
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: 8px;
  font-size: 14px;
  color: #713f12;
}

.form-rate-limit-msg a { color: #1d4ed8; }

/* ── Success state ── */

.form-success-box {
  text-align: center;
  padding: 56px 28px;
}

.form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 20px;
}

.form-success-box h3 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #0f172a;
}

.form-success-box p { color: var(--muted); margin: 0; }

/* ── Responsive ── */

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 54px 20px; }
  .slide-btn { width: 40px; height: 40px; }
}

@media (max-width: 640px) {
  main { padding-top: 26px; }
  .container { width: min(100% - 20px, var(--max)); }
  .slides { aspect-ratio: 4 / 5; max-height: none; }
  .slide img { object-fit: cover; }
  .slide-caption { font-size: 14px; padding: 12px 14px 48px; }
  .slide-dots { bottom: 10px; }
}
