/* =========================================================
   CLAIRVO RETARGETING LANDING PAGE
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Open+Sans:wght@400;500;600&display=swap');

/* ---------- Base type ---------- */
.clairvo-rt h1,
.clairvo-rt h2,
.clairvo-rt h3 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  margin-top: 0;
}

.clairvo-rt,
.clairvo-rt p,
.clairvo-rt li,
.clairvo-rt a,
.clairvo-rt div {
  font-family: "Open Sans", Arial, sans-serif;
}

/* ---------- Page cleanup ---------- */
/*
 * .clairvo-rt-page .entry-header,
.clairvo-rt-page .page-title {
  display: none !important;
}
*/

.clairvo-rt-page .entry-content > * {
  margin-top: 0 !important;
}

/* ---------- Section shell ---------- */
.clairvo-rt {
  padding: 72px 0;
  position: relative;
  box-sizing: border-box;
}

.clairvo-rt *,
.clairvo-rt *::before,
.clairvo-rt *::after {
  box-sizing: border-box;
}

.clairvo-rt .rt-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Background variants ---------- */
.clairvo-rt.rt-light { background: #f7f8fa; }
.clairvo-rt.rt-dark  { background: #12223A; color: #fff; }

/* ---------- Eyebrow ---------- */
.rt-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  font-family: "Open Sans", Arial, sans-serif;
}

.rt-eyebrow.rt-eyebrow-dark {
  color: #00cccc;
  border-color: rgba(0,204,204,.25);
  background: rgba(255,255,255,.04);
}

/* ---------- Section layout helpers ---------- */
.rt-section-intro {
  max-width: 760px;
  margin: 0 auto 28px 0;
}

.rt-section-intro.rt-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.rt-section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

/* ---------- Headings ---------- */
.clairvo-rt h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 14px 0 12px;
  color: #12223A;
}

.clairvo-rt h3 {
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: #12223A;
}

.clairvo-rt.rt-dark h2,
.clairvo-rt.rt-dark h3 { color: #fff; }

.rt-lead {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #4b5563;
  max-width: 760px;
  margin: 0;
}

.rt-dark-lead {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #cbd5e1;
  max-width: 760px;
  margin: 0;
}

/* =========================================================
   HERO
   ========================================================= */
.clairvo-rt.rt-hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-top: 132px;
  padding-bottom: 64px;
  padding-left: 0;
  padding-right: 0;
  overflow: visible;
  background:
    radial-gradient(circle at 8% 0%, rgba(0,204,204,0.10), transparent 26%),
    linear-gradient(180deg, #eef8f8 0%, #f7fbfb 100%);
}

.clairvo-rt.rt-hero .rt-container {
  max-width: 1380px;
  padding-left: 28px;
  padding-right: 28px;
}

.rt-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.72fr);
  gap: 64px;
  align-items: start;
  overflow: visible;
}

.rt-hero-copy { max-width: 780px; }

.rt-hero-copy h1 {
  max-width: 16ch;
  width: 100%;
  font-size: clamp(3.1rem, 5vw, 5.4rem);
  line-height: .92;
  letter-spacing: -0.045em;
  margin: 20px 0 18px;
  color: #12223A;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
}

.rt-pill-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 860px;
  margin: 30px 0 16px;
  align-items: stretch;
}

.rt-pill {
  min-height: 92px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 20px 22px;
  color: #475467;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 30px rgba(15,23,42,.05);
}

.rt-microcopy {
  margin-top: 10px;
  color: #667085;
  font-size: .96rem;
}

/* ---------- Form card ---------- */
#sifw-widget {
  background: #fff;
  border-radius: 30px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(18,34,58,0.10);
  width: 100%;
  overflow: visible;
}

/* Field wrapper — this is what shows the border */
#sifw-widget .MuiFilledInput-root,
#sifw-widget .MuiOutlinedInput-root,
#sifw-widget .MuiInputBase-root {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

/* Remove MUI's built-in underline decorations */
#sifw-widget .MuiFilledInput-root::before,
#sifw-widget .MuiFilledInput-root::after {
  display: none;
}

/* The actual input element — transparent so wrapper border shows */
#sifw-widget .MuiFilledInput-input,
#sifw-widget .MuiInputBase-input {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
}

/* Remove borders from raw input/select tags inside the widget */
#sifw-widget .c-long-form-widget input,
#sifw-widget .c-long-form-widget select,
#sifw-widget .c-long-form-widget textarea {
  border: none;
  background: transparent;
}

/* Autofill fix */
#sifw-widget .c-long-form-widget input:-webkit-autofill,
#sifw-widget .c-long-form-widget input:-webkit-autofill:active,
#sifw-widget .c-long-form-widget input:-webkit-autofill:focus,
#sifw-widget .c-long-form-widget input:-webkit-autofill:hover {
  -webkit-box-shadow: inset 0 0 0 30px #fff !important;
  height: 14px;
}

/* Shrunk label text */
#sifw-widget .c-long-form-widget .input-wrapper .MuiInputLabel-root.MuiInputLabel-shrink+div .MuiFilledInput-input.MuiInputBase-input {
  color: #2a2f31;
  font-size: 18px;
  font-weight: 500;
  line-height: 18px;
  margin-left: -1px;
  margin-top: 14px;
  max-height: 14px;
}

/* =========================================================
   TRUST STRIP
   ========================================================= */
.clairvo-rt.rt-trust-strip {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 18px 0;
}

.rt-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.rt-trust-item {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #475467;
  font-size: .97rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  padding: 0 8px;
}

.rt-trust-item::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #00cccc;
  display: inline-block;
  flex: 0 0 auto;
}

/* =========================================================
   CARDS
   ========================================================= */
.rt-card-grid { display: grid; gap: 22px; }
.rt-card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rt-card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rt-card {
  height: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 8px 28px rgba(15,23,42,.05);
}

.rt-card p,
.rt-card li { color: #475467; line-height: 1.72; margin: 0; }
.rt-card ul { padding-left: 18px; margin: 0; }
.rt-card li + li { margin-top: 8px; }

.rt-card.rt-card-dark {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
  box-shadow: none;
}

.rt-card.rt-card-dark h3 { color: #cbd5e1; }
.rt-card.rt-card-dark li { color: #e2e8f0; }
.rt-card.rt-card-featured { background: #fff; border-color: rgba(0,204,204,.45); }
.rt-card.rt-card-featured h3 { color: #12223A; }

.rt-step {
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #00b8b8;
  margin-bottom: 14px;
  line-height: 1;
  font-family: "Open Sans", Arial, sans-serif;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.rt-btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.rt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 700;
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.1;
  font-size: 1rem;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  cursor: pointer;
  border: none;
}

.rt-btn:hover { transform: translateY(-1px); text-decoration: none !important; }
.rt-btn-primary { background: #12223A; color: #fff !important; }
.rt-btn-dark    { background: #12223A; color: #fff !important; }
.rt-btn-outline { background: #fff; color: #12223A !important; border: 1px solid rgba(0,204,204,.45); }
.rt-btn-outline-light { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,.22); }

/* =========================================================
   FAQ
   ========================================================= */
.rt-faq-wrap { max-width: 960px; }
.rt-faq-list { display: grid; gap: 14px; }

.rt-faq-item {
  background: #f7f8fa;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 22px 24px;
}

.rt-faq-item h3 { margin-bottom: 8px; }
.rt-faq-item p  { margin: 0; color: #475467; line-height: 1.7; }

/* =========================================================
   CTA BAND
   ========================================================= */
.rt-cta-band {
  background: #12223A;
  color: #fff;
  border-radius: 34px;
  padding: 40px 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 24px;
  align-items: center;
  box-shadow: 0 20px 60px rgba(18,34,58,.16);
}

.rt-cta-band h2 { color: #fff; }
.rt-cta-band p  { color: #cbd5e1; font-size: 1.08rem; line-height: 1.75; margin: 0; }
.rt-cta-band .rt-btn-row { justify-content: flex-end; }
.rt-cta-band .rt-btn-primary { background: #00cccc; color: #12223A !important; box-shadow: 0 10px 24px rgba(0,204,204,.18); }
.rt-cta-band .rt-btn-primary:hover { background: #14d9d9; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  .rt-hero-copy h1 { max-width: 13.2ch; font-size: clamp(2.8rem, 5.6vw, 4.75rem); }
}

@media (max-width: 1100px) {
  .clairvo-rt.rt-hero { padding-top: 72px; }

  .rt-hero-grid,
  .rt-cta-band { grid-template-columns: 1fr; gap: 32px; }

  /* Tablet and mobile: show the intake form before the hero copy. */
  .rt-hero-grid #sifw-widget { order: 1; }
  .rt-hero-grid .rt-hero-copy { order: 2; }

  .rt-card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .rt-card-grid-3,
  .rt-pill-row,
  .rt-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .rt-section-heading-row { align-items: flex-start; flex-direction: column; }
  .rt-trust-item { justify-content: flex-start; text-align: left; }
  .rt-cta-band .rt-btn-row { justify-content: flex-start; }
  .rt-hero-copy h1 { max-width: 13ch; font-size: clamp(2.8rem, 6vw, 4.7rem); }
}

@media (max-width: 767px) {
  .clairvo-rt { padding: 52px 0; }
  .clairvo-rt .rt-container { padding: 0 18px; }
  .clairvo-rt.rt-hero { padding-top: 88px; padding-bottom: 44px; }
  .clairvo-rt.rt-hero .rt-container { padding-left: 18px; padding-right: 18px; }

  .rt-hero-grid,
  .rt-cta-band,
  .rt-pill-row,
  .rt-trust-grid,
  .rt-card-grid-3,
  .rt-card-grid-4 { grid-template-columns: 1fr; }

  .rt-hero-copy h1 { max-width: none; font-size: clamp(2.4rem, 9vw, 3.8rem); line-height: .98; }
  .rt-pill, .rt-trust-item { min-height: auto; justify-content: flex-start; text-align: left; }
  .rt-btn-row { flex-direction: column; }
  .rt-btn { width: 100%; }
  .rt-card, .rt-faq-item { padding: 22px; }
  .rt-cta-band { padding: 28px 22px; border-radius: 26px; }
  .clairvo-rt.rt-hero .rt-eyebrow { margin-top: 18px; display: inline-flex; }
}