/* Global page styles (shared) */
:root{
  --ink:#1b1b1f;
  --muted:#6b6f76;
  --line:#e7e7ee;
  --bg:#ffffff;
  --soft:#f6f6fb;

  --brand:#7a1b7d;
  --brand2:#c0198d;
  --brand3:#2a55b3;
  --shadow: 0 10px 25px rgba(0,0,0,.08);
  --radius: 12px;
  --container: 1180px;
}

html, body {
  margin:0;
  padding:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
}

h1,h2,h3,h4,h5,h6 { font-family: inherit !important; margin:0; }
p{ margin:0; }
a{color:inherit; text-decoration:none}
.container{max-width:var(--container); margin:0 auto; padding:0 18px;}

.page-wrap{background:#fff;}
.section{padding:44px 0;}
.h2{font-size:24px; margin:0 0 8px;}
.p{color:var(--muted); margin:0;}

.section-head{margin-bottom:14px;}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 16px;
  border-radius:10px;
  font-weight:800;
  font-size:14px;
  border:1px solid transparent;
  cursor:pointer;
  transition:all .15s ease;
}

.btn-primary{background:var(--brand); color:#fff;}
.btn-primary:hover{filter:brightness(.96);}
.btn-outline{border-color:var(--line); background:#fff;}

.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 8px 20px rgba(0,0,0,.05);
}

/* ------------------------------------------
   HERO SLIDER (Responsive)
------------------------------------------ */
.hero{
  position:relative;
  height:420px;
  overflow:hidden;
  background:#111;
}

.hero-slide{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  display:flex;
  align-items:center;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.12));
}

.hero-content{
  position:relative;
  z-index:2;
  color:#fff;
  max-width:680px;
  padding:0 18px;
}

.hero-title{
  font-size:34px;
  font-weight:900;
  margin:0 0 8px;
  line-height:1.1;
}

.hero-sub{
  opacity:.92;
  margin:0 0 16px;
  line-height:1.35;
  font-size:16px;
}

.hero-dots{
  position:absolute;
  left:0; right:0; bottom:18px;
  display:flex;
  gap:8px;
  justify-content:center;
  z-index:3;
}

.dotBtn{
  width:9px; height:9px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.6);
  background:transparent;
  cursor:pointer;
  opacity:.9;
}

.dotBtn.is-active{
  background:#fff;
  border-color:#fff;
}

/* ------------------------------------------
   FEATURE BLOCKS (Image + Text)
------------------------------------------ */
.grid-2{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:28px;
  align-items:center;
}

.feature-img{
  height:260px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#eee center/cover no-repeat;
}

.feature-box{
  padding:18px;
}

.kicker{
  color:#8a8f97;
  font-size:13px;
  margin-bottom:10px;
}

.feature-title{
  font-weight:900;
  font-size:18px;
  margin:0 0 6px;
}

.feature-text{
  color:var(--muted);
  margin:0 0 12px;
  line-height:1.5;
}

/* ------------------------------------------
   ICON TILES
------------------------------------------ */
.tiles{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:18px;
  margin-top:22px;
}

.tile{
  padding:22px;
  display:flex;
  align-items:center;
  gap:14px;
}

.ico{
  width:54px; height:54px;
  border-radius:14px;
  background:rgba(192,25,141,.08);
  display:grid;
  place-items:center;
  border:1px solid rgba(192,25,141,.2);
  flex:0 0 auto;
}

.tile small{
  display:block;
  color:var(--muted);
  margin-top:4px;
  line-height:1.35;
}

.tile b{
  display:block;
  line-height:1.25;
}

/* ------------------------------------------
   WHY WORK WITH US
------------------------------------------ */
.why-title{
  font-weight:900;
  text-align:center;
  margin:0 0 18px;
}

.why-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:16px;
}

.why-card{
  padding:18px;
  text-align:center;
}

.why-card .ico{
  margin:0 auto 10px;
}

.why-card .label{
  font-weight:900;
}

.why-card .desc{
  color:var(--muted);
  font-size:13px;
  margin:6px 0 0;
  line-height:1.35;
}

/* ------------------------------------------
   FORM BAND
------------------------------------------ */
.form-band{
  margin-top:34px;
  background:linear-gradient(90deg, var(--brand2), var(--brand3));
  padding:48px 0;
}

.form-shell{
  max-width:820px;
  margin:0 auto;
  background:#fff;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.35);
  box-shadow:0 18px 40px rgba(0,0,0,.18);
  padding:22px;
}

.form-shell h3{
  margin:0 0 14px;
  font-size:18px;
}

.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.input, .select, .textarea{
  width:100%;
  padding:12px 12px;
  border-radius:10px;
  border:1px solid var(--line);
  outline:none;
  font:inherit;
}

.input:focus, .select:focus, .textarea:focus{
  border-color: rgba(122,27,125,.45);
  box-shadow: 0 0 0 4px rgba(122,27,125,.12);
}

.textarea{
  min-height:90px;
  resize:vertical;
  grid-column:1/-1;
}

.form-meta{
  font-size:12px;
  color:var(--muted);
  margin-top:10px;
  line-height:1.35;
}

.form-actions{
  margin-top:14px;
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

/* ------------------------------------------
   RESPONSIVE BREAKPOINTS
------------------------------------------ */
@media (max-width: 980px){
  .section{padding:40px 0;}

  .hero{height:360px;}
  .hero-content{max-width:560px;}

  .grid-2{grid-template-columns:1fr;}
  .feature-img{height:220px;}

  /* tablet keep 2 tiles */
  .tiles{grid-template-columns: repeat(2, 1fr);}

  .why-grid{grid-template-columns: repeat(2, 1fr);}
}

@media (max-width: 520px){
  .section{padding:34px 0;}

  .hero{height:320px;}
  .hero-overlay{
    background:linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.22));
  }
  .hero-content{padding:0 14px;}
  .hero-title{font-size:24px;}
  .hero-sub{font-size:14px;}

  .feature-img{height:200px;}
  .feature-box{padding:14px;}

  /* phone = 1 column tiles */
  .tiles{grid-template-columns:1fr;}
  .tile{padding:16px;}

  .form-grid{grid-template-columns:1fr;}

  .why-grid{grid-template-columns:1fr;}
  .why-card{padding:16px;}
}

/* Desktop: reverse order for the 2nd feature block */
.grid-reverse{
  grid-template-columns: .8fr 1.2fr;
}

@media (max-width: 980px){
  .grid-reverse{
    grid-template-columns: 1fr; /* stack */
  }
}

/* ✅ Prevent overflow everywhere */
*, *::before, *::after { box-sizing: border-box; }

/* ✅ Form band / card safety */
.form-band { overflow-x: hidden; }
.form-shell { width: min(920px, 100%); overflow: hidden; }

/* ✅ Inputs never exceed their grid cell */
.form-grid > * { min-width: 0; } /* important for grid overflow */
.input, .select, .textarea {
  max-width: 100%;
  width: 100%;
  display: block;
}

/* ✅ Textarea: keep inside */
.textarea { overflow: auto; }

/* ✅ Mobile: remove any accidental extra padding causing overflow */
@media (max-width: 520px){
  .form-shell { padding: 16px; }
  .form-grid { gap: 10px; }
}

/* ✅ dropdown base */
.dd-panel{
  position:absolute; left:0; top:46px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
  opacity:0; transform:translateY(6px); pointer-events:none;
  transition:all .18s ease;
  overflow:visible; /* IMPORTANT for flyouts */
}

/* hover open */
.has-dd:hover .dd-panel{opacity:1; transform:translateY(0); pointer-events:auto;}

/* link styling */
.dd-link{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 14px;
  border-radius:0; /* screenshot has flat rows */
  color:#2c2f36;
  font-size:18px;
  line-height:1.15;
}
.dd-link:hover{background:#f5f6f8;}
.dd-link.is-active{color:#1f4fbf; text-decoration:underline;}
.dd-link .arrow{opacity:.65}

/* ✅ Decisioning flyout layout (like screenshot) */
.dd-panel.dd-fly{
  width:360px;
  border-radius:4px;
}

.dd-panel.dd-fly .dd-main{
  padding:10px 0;
}

.dd-panel.dd-fly .dd-link{
  padding:12px 16px;
  font-size:15px;
}

/* right-side flyout */
.dd-flyout-wrap{
  position:absolute;
  left:100%;
  margin-left:12px;
  top:0;
  width:340px;
}

.dd-flyout{
  display:none;
  background:#fff;
  border:1px solid var(--line);
  border-radius:4px;
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
  padding:10px 0;
  min-height:120px;
}

.dd-flyout.is-show{display:block;}

.dd-flyout .dd-link{
  padding:12px 16px;
  font-size:15px;
}

/* OPTIONAL: 3rd level flyout (if you use) */
.dd-flyout-l3{
  position:absolute;
  left:100%;
  margin-left:12px;
  top:0;
  width:340px;
}

.dd-link.is-parent{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 16px;
}

.dd-text-link{
  color:#2c2f36;
  text-decoration:none;
  font-size:15px;
  flex:1;
}

.dd-text-link:hover{
  text-decoration:underline;
}

.dd-arrow{
  border:0;
  background:none;
  cursor:pointer;
  font-size:18px;
  padding-left:10px;
  opacity:.6;
}

.dd-arrow:hover{
  opacity:1;
}