/* ============================================================
   MLW - HOW IT WORKS (Full-Width + Brand + Legibility)
   Works with: page-how-it-works.php
   Fixes:
   - Removes Astra container padding/max-width (white bars)
   - Fixes 100vw "one-side margin" bug (centered full-bleed)
   - Improves legibility (hero title + headings)
   - Adds brand color accents + proper buttons
   ============================================================ */

/* ---- Stop any horizontal overflow ---- */
html, body { overflow-x: hidden !important; }

/* ============================================================
   ASTRA OVERRIDES (same approach that fixed City + Coming Soon)
   Only apply on this template.
   ============================================================ */
body.page-template-page-how-it-works,
body.page-template-page-how-it-works .site,
body.page-template-page-how-it-works .site-content,
body.page-template-page-how-it-works #content,
body.page-template-page-how-it-works #primary,
body.page-template-page-how-it-works .ast-container,
body.page-template-page-how-it-works .ast-container-fluid,
body.page-template-page-how-it-works .entry-content {
  max-width: none !important;
  width: 100% !important;
}

/* Remove Astra padding that creates the “white bars” */
body.page-template-page-how-it-works .ast-container,
body.page-template-page-how-it-works .ast-container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.page-template-page-how-it-works .site-content,
body.page-template-page-how-it-works .entry-content {
  margin: 0 !important;
  padding: 0 !important;
}

/* HARD GUARANTEE: no white background anywhere on this template */
body.page-template-page-how-it-works,
body.page-template-page-how-it-works .site,
body.page-template-page-how-it-works .site-content {
  background: #0b1220 !important;
}

/* Prevent horizontal scroll + prevent white peeking during 100vw breakout */
body.page-template-page-how-it-works .site {
  overflow-x: hidden !important;
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.mlw-how-page {
  background: #0b1220;
  color: #f9fafb;
}

.mlw-how-page * { box-sizing: border-box; }

.mlw-how-page a { color: inherit; text-decoration: none; }

/* ============================================================
   BUTTONS (included here so page never depends on other CSS)
   ============================================================ */
.mlw-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 18px;
  border-radius:999px;
  font-weight:700;
  border:1px solid transparent;
  transition:transform .12s ease, filter .12s ease, border-color .12s ease, background .12s ease;
  user-select:none;
  cursor:pointer;
}

.mlw-btn--primary{
  background: linear-gradient(120deg, rgba(76,201,240,1), rgba(255,138,92,1));
  color:#0b1220;
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.mlw-btn--ghost{
  background: rgba(15,23,42,0.35);
  color:#f9fafb;
  border-color: rgba(148,163,184,0.45);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.mlw-btn:hover{ transform: translateY(-1px); filter: brightness(1.04); }
.mlw-btn:active{ transform: translateY(1px); }

/* ============================================================
   HERO (Full bleed, readable title, brand glow)
   ============================================================ */
.mlw-how-hero{
  position: relative;
  padding: 88px 20px;

  /* ✅ Full-bleed centered technique (fixes one-sided margin) */
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;

  background:
    radial-gradient(circle at 12% 18%, rgba(76,201,240,0.22), transparent 55%),
    radial-gradient(circle at 88% 40%, rgba(255,138,92,0.22), transparent 55%),
    linear-gradient(180deg, rgba(11,18,32,0.86), rgba(11,18,32,0.98));
}

.mlw-how-hero__overlay{
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(circle at 30% 30%, rgba(0,0,0,0.10), transparent 55%),
    linear-gradient(90deg, rgba(11,18,32,0.86), rgba(11,18,32,0.55));
}

.mlw-how-hero__inner{
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

/* Pill */
.mlw-how-hero__pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;

  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(10px);

  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Title */
.mlw-how-hero__title{
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.04;
  margin: 0 0 14px;
  font-weight: 900;
  letter-spacing: -0.03em;

  color: rgba(249,250,251,0.97);
  text-shadow:
    0 14px 46px rgba(0,0,0,0.55),
    0 2px 0 rgba(0,0,0,0.20);
}

/* Sub */
.mlw-how-hero__sub{
  max-width: 72ch;
  opacity: 0.92;
  line-height: 1.65;
  margin: 0 0 18px;
  color: rgba(226,232,240,0.92);
  text-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

/* Buttons container */
.mlw-how-hero__actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* ============================================================
   SECTION
   ============================================================ */
.mlw-how-section{
  padding: 60px 20px;
  background: #0b1220;
}

.mlw-how-section__inner{
  max-width: 1120px;
  margin: 0 auto;
}

/* Heading with brand underline */
.mlw-how-section h2{
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(249,250,251,0.96);
  position: relative;
}

.mlw-how-section h2::after{
  content: "";
  display: block;
  width: 140px;
  height: 3px;
  border-radius: 999px;
  margin-top: 10px;
  background: linear-gradient(120deg, rgba(76,201,240,0.95), rgba(255,138,92,0.95));
  opacity: 0.9;
}

/* ============================================================
   STEPS
   ============================================================ */
.mlw-how-steps{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mlw-how-step{
  padding: 20px;
  border-radius: 18px;
  background: rgba(15,23,42,0.45);
  border: 1px solid rgba(148,163,184,0.18);
  box-shadow: 0 14px 40px rgba(0,0,0,0.18);
}

.mlw-how-step h3{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: rgba(249,250,251,0.96);
}

.mlw-how-step p{
  opacity: 0.86;
  line-height: 1.6;
  margin: 0;
  color: rgba(226,232,240,0.88);
}

/* Number badge */
.mlw-how-step__num{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 900;
  color: #0b1220;

  background: linear-gradient(120deg, rgba(76,201,240,1), rgba(255,138,92,1));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  margin-bottom: 12px;
}

/* ============================================================
   CALLOUT
   ============================================================ */
.mlw-how-callout{
  margin-top: 22px;
  padding: 22px;
  border-radius: 18px;

  background:
    radial-gradient(circle at 10% 10%, rgba(76,201,240,0.12), transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(255,138,92,0.12), transparent 55%),
    rgba(11,18,32,0.55);

  border: 1px solid rgba(148,163,184,0.22);
}

.mlw-how-callout h3{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 900;
  color: rgba(249,250,251,0.96);
}

.mlw-how-callout p{
  margin: 0;
  line-height: 1.65;
  color: rgba(226,232,240,0.90);
  opacity: 0.95;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px){
  .mlw-how-hero { padding: 64px 16px; }
  .mlw-how-steps{ grid-template-columns: 1fr; }
}

@media (max-width: 540px){
  .mlw-how-hero__title{ font-size: 42px; }
}
/* ============================================================
   MLW HOW IT WORKS — Moody pill + Form styling overrides
   Paste at END of How-It-Works CSS file
   ============================================================ */

/* ---- 1) Replace “bombastic” gradients with moody pill CTAs ---- */
body.page-template-page-how-it-works .mlw-btn--primary{
  background: rgba(255,255,255,0.06) !important;
  background-image: none !important;
  color: rgba(255,255,255,0.94) !important;

  border: 1px solid rgba(255,255,255,0.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 18px 45px rgba(0,0,0,0.28) !important;

  backdrop-filter: blur(10px);
}

body.page-template-page-how-it-works .mlw-btn--primary:hover{
  background: rgba(255,255,255,0.085) !important;
  border-color: rgba(255,255,255,0.26) !important;
  filter: brightness(1.06);
}

body.page-template-page-how-it-works .mlw-btn--ghost{
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(148,163,184,0.30) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 16px 40px rgba(0,0,0,0.22) !important;
}

/* ---- 2) Tone down heading underline gradient (keep subtle glow) ---- */
body.page-template-page-how-it-works .mlw-how-section h2::after{
  background: linear-gradient(
    90deg,
    rgba(76,201,240,0.55),
    rgba(255,138,92,0.30)
  ) !important;
  height: 2px !important;
  opacity: 0.65 !important;
  filter: blur(0.2px);
}

/* ---- 3) Step number badges (1/2/3): remove gradient, keep “premium” ---- */
body.page-template-page-how-it-works .mlw-how-step__num{
  background: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 14px 40px rgba(0,0,0,0.35) !important;

  backdrop-filter: blur(10px);
}

/* Optional: tiny ambient ring so it’s not “flat” */
body.page-template-page-how-it-works .mlw-how-step__num{
  position: relative;
}
body.page-template-page-how-it-works .mlw-how-step__num::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 25% 20%, rgba(76,201,240,0.22), transparent 55%),
    radial-gradient(circle at 85% 70%, rgba(255,138,92,0.14), transparent 60%);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

/* ---- 4) Make the cards a bit richer (your screenshot was “pale”) ---- */
body.page-template-page-how-it-works .mlw-how-step,
body.page-template-page-how-it-works .mlw-how-callout{
  background:
    radial-gradient(circle at 12% 18%, rgba(76,201,240,0.10), transparent 55%),
    radial-gradient(circle at 88% 40%, rgba(255,138,92,0.08), transparent 55%),
    linear-gradient(140deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    rgba(12,18,34,0.42) !important;

  border: 1px solid rgba(148,163,184,0.20) !important;

  box-shadow:
    0 28px 90px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.14) !important;

  backdrop-filter: blur(18px);
}

/* ============================================================
   WPForms on How It Works — match your MLW “mlw-form” styling
   IMPORTANT: wrap shortcode in <div class="mlw-form">...</div>
   ============================================================ */

body.page-template-page-how-it-works .mlw-form .wpforms-container{
  max-width: 880px;
  margin: 26px auto 0;
}

body.page-template-page-how-it-works .mlw-form .wpforms-form{
  padding: 24px;
  border-radius: 28px;

  background:
    radial-gradient(1200px 400px at 15% 0%, rgba(76,201,240,.18), transparent 55%),
    radial-gradient(900px 340px at 85% 15%, rgba(255,138,92,.12), transparent 55%),
    linear-gradient(140deg, rgba(255,255,255,.12), rgba(255,255,255,.03)),
    rgba(12,18,34,.42);

  border: 1px solid rgba(148,163,184,.22);
  backdrop-filter: blur(18px);

  box-shadow:
    0 35px 110px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.16);
}

/* Labels */
body.page-template-page-how-it-works .mlw-form .wpforms-field-label,
body.page-template-page-how-it-works .mlw-form .wpforms-field-description,
body.page-template-page-how-it-works .mlw-form .wpforms-field-label-inline{
  color: rgba(255,255,255,.92) !important;
}

/* Inputs */
body.page-template-page-how-it-works .mlw-form input[type="text"],
body.page-template-page-how-it-works .mlw-form input[type="email"],
body.page-template-page-how-it-works .mlw-form input[type="tel"],
body.page-template-page-how-it-works .mlw-form input[type="url"],
body.page-template-page-how-it-works .mlw-form select,
body.page-template-page-how-it-works .mlw-form textarea{
  width: 100% !important;
  padding: 12px 14px !important;
  min-height: 44px !important;
  border-radius: 18px !important;

  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    rgba(10,16,28,.45) !important;

  color: rgba(255,255,255,.94) !important;
  border: 1px solid rgba(148,163,184,.22) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 18px 60px rgba(0,0,0,.20) !important;
}

body.page-template-page-how-it-works .mlw-form input::placeholder,
body.page-template-page-how-it-works .mlw-form textarea::placeholder{
  color: rgba(255,255,255,.65) !important;
  opacity: 1 !important;
}

/* Checkbox text MUST be white */
body.page-template-page-how-it-works .mlw-form .wpforms-field-checkbox li label,
body.page-template-page-how-it-works .mlw-form .wpforms-field-checkbox label{
  color: rgba(255,255,255,.92) !important;
}

/* Checkbox visibility */
body.page-template-page-how-it-works .mlw-form input[type="checkbox"],
body.page-template-page-how-it-works .mlw-form input[type="radio"]{
  accent-color: rgba(76,201,240,1);
}

/* Submit button: match moody pill (NO gradient) */
body.page-template-page-how-it-works .mlw-form button[type="submit"]{
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 999px !important;
  padding: 12px 18px !important;
  font-weight: 900 !important;

  background: rgba(255,255,255,0.06) !important;
  background-image: none !important;
  color: rgba(255,255,255,0.94) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 18px 45px rgba(0,0,0,0.28) !important;

  backdrop-filter: blur(10px);
}

body.page-template-page-how-it-works .mlw-form button[type="submit"]:hover{
  background: rgba(255,255,255,0.085) !important;
  border-color: rgba(255,255,255,0.26) !important;
  filter: brightness(1.06);
  transform: translateY(-1px);
}