/* Lead Centers | Request a demo page
   Loads after responsive.css and carries its own media queries at the bottom. */

/* --- Demo hero: navy panel left, floating form card right ---------------- */
.demo {
  position: relative;
  padding: 78px 0 92px;
  overflow: hidden;
  background:
    radial-gradient(820px 460px at 88% 8%, rgba(69, 166, 224, .30) 0%, rgba(69, 166, 224, 0) 62%),
    radial-gradient(620px 420px at 2% 92%, rgba(69, 166, 224, .16) 0%, rgba(69, 166, 224, 0) 60%),
    linear-gradient(152deg, #0a2149 0%, #143a75 46%, #1a5490 100%);
}

/* faint grid, fading out toward the bottom */
.demo::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, .35) 55%, transparent 92%);
  -webkit-mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, .35) 55%, transparent 92%);
  pointer-events: none;
}

/* soft light bloom behind the form card */
.demo::after {
  content: "";
  position: absolute;
  top: -12%; right: -6%;
  width: 720px; height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
}

.demo > .wrap { position: relative; z-index: 1; }

.demo__grid {
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  gap: 64px;
  align-items: start;
}

/* Left column ------------------------------------------------------------- */
.demo__pitch { padding-top: 8px; }

.demo h1 {
  font-size: clamp(33px, 4.3vw, 52px);
  letter-spacing: -.036em;
  line-height: 1.06;
  color: #fff;
}
.demo h1 .accent {
  background: linear-gradient(108deg, var(--sky) 6%, #a8dcff 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.demo__sub {
  margin-top: 20px;
  font-size: 17.5px;
  color: rgba(255, 255, 255, .76);
  line-height: 1.68;
  max-width: 500px;
}

/* Value points */
.demo__points { display: grid; gap: 6px; margin-top: 34px; }

.dpoint {
  display: grid; grid-template-columns: 40px 1fr; gap: 15px;
  align-items: center;
  padding: 11px 16px 11px 12px;
  border-radius: var(--r-md);
  transition: background .2s ease;
}
.dpoint:hover { background: rgba(255, 255, 255, .06); }

.dpoint__ic {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .11);
  border: 1px solid rgba(255, 255, 255, .16);
  color: var(--sky);
}
.dpoint b { font-size: 15.5px; color: #fff; font-weight: 620; letter-spacing: -.012em; }

/* --- Form card ----------------------------------------------------------- */
.fcard {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: var(--r-xl);
  box-shadow:
    0 2px 6px rgba(6, 22, 48, .16),
    0 18px 40px rgba(6, 22, 48, .26),
    0 48px 90px rgba(6, 22, 48, .22);
  overflow: hidden;
}

.fcard__head {
  padding: 26px 30px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.fcard__head h2 { font-size: 21px; letter-spacing: -.025em; color: var(--ink); }
.fcard__head p { font-size: 13.5px; color: var(--muted); margin-top: 7px; }

.fcard__body { padding: 26px 30px 30px; }

/* Fields */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field__label {
  display: block;
  font-size: 12.5px; font-weight: 660; color: var(--ink);
  margin-bottom: 7px;
}
.field__label .req { color: #c0392b; margin-left: 2px; }
.field__label .opt { color: var(--muted-2); font-weight: 500; margin-left: 4px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { min-height: 92px; resize: vertical; line-height: 1.55; }

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6478' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 15px;
  padding-right: 38px;
  cursor: pointer;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.field.is-error input,
.field.is-error select,
.field.is-error textarea { border-color: #d14343; background: #fdf6f6; }
.field.is-error input:focus,
.field.is-error select:focus { box-shadow: 0 0 0 3px #fbe6e6; }

.field__err { display: none; font-size: 12px; color: #c0392b; margin-top: 6px; font-weight: 560; }
.field.is-error .field__err { display: block; }

/* Consent */
.consent {
  display: grid; grid-template-columns: 18px 1fr; gap: 11px;
  align-items: start; margin: 6px 0 20px;
  font-size: 12.5px; color: var(--muted); line-height: 1.55;
}
.consent input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand); cursor: pointer; }
.consent a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.consent.is-error { color: #c0392b; }

.fcard__foot { margin-top: 14px; font-size: 12px; color: var(--muted-2); text-align: center; }
.fcard__foot svg { display: inline-block; vertical-align: -2px; margin-right: 5px; color: var(--green); }

/* Success state */
.fdone { display: none; padding: 56px 34px; text-align: center; }
.fdone.is-on { display: block; }
.fcard.is-done .fcard__body,
.fcard.is-done .fcard__head { display: none; }

.fdone__ic {
  width: 64px; height: 64px; margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center;
}
.fdone h2 { font-size: 22px; margin-bottom: 10px; }
.fdone p { font-size: 15px; color: var(--muted); line-height: 1.6; max-width: 380px; margin: 0 auto; }
.fdone .btn { margin-top: 26px; }

/* --- What happens next --------------------------------------------------- */
.dsteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.dstep { position: relative; }
.dstep__n {
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-size: 16.5px; font-weight: 760;
  box-shadow: 0 6px 16px rgba(26, 86, 168, .3);
  margin-bottom: 18px;
}
.dstep h3 { font-size: 17px; margin-bottom: 8px; }
.dstep p { font-size: 14.5px; color: var(--muted); }
.dstep::after {
  content: "";
  position: absolute; top: 21px; left: 58px; right: -26px;
  height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 7px, transparent 7px 14px);
}
.dstep:last-child::after { display: none; }

/* --- FAQ ----------------------------------------------------------------- */
.faq { display: grid; gap: 14px; max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--brand-border); box-shadow: var(--shadow-md); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 15.5px;
  font-weight: 650;
  color: var(--ink);
  display: flex; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  margin-left: auto;
  width: 11px; height: 11px;
  border-right: 2px solid var(--muted-2);
  border-bottom: 2px solid var(--muted-2);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details[open] summary { color: var(--brand-dark); }
.faq p { padding: 0 24px 22px; font-size: 14.5px; color: var(--muted); line-height: 1.65; }

/* --- Closing CTA --------------------------------------------------------- */
.dcta { text-align: center; }
.dcta h2 { font-size: clamp(24px, 3vw, 32px); }
.dcta p { margin-top: 14px; font-size: 16px; color: var(--muted); }
.dcta .btn { margin-top: 26px; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .demo__grid { grid-template-columns: 1fr; gap: 46px; }
  .demo__sub { max-width: none; }
  .demo { padding-bottom: 74px; }
}

@media (max-width: 760px) {
  .demo { padding: 46px 0 56px; }
  .frow { grid-template-columns: 1fr; gap: 0; }
  .fcard__head { padding: 22px; }
  .fcard__body { padding: 22px; }
  .dpoint { padding: 12px 10px; gap: 14px; }
  .dsteps { grid-template-columns: 1fr; }
  .dstep::after { display: none; }
}

/* Submit error message */
.form-error:empty { display: none; }
.form-error {
  margin-bottom: 14px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  background: #fdf2f2;
  border: 1px solid #f3c9c9;
  color: #a03030;
  font-size: 13px;
  line-height: 1.5;
}

/* --- Small phones ---------------------------------------------------------- */
@media (max-width: 600px) {
  .fcard__head { padding: 20px 18px; }
  .fcard__body { padding: 18px; }
  .fcard__head h2 { font-size: 19px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .dpoint b { font-size: 14.5px; }
  .faq summary { padding: 17px 18px; font-size: 14.5px; }
  .faq p { padding: 0 18px 18px; font-size: 14px; }
}

@media (max-width: 400px) {
  .demo__points { margin-top: 26px; }
  .dpoint { padding: 9px 8px; grid-template-columns: 36px 1fr; gap: 12px; }
  .dpoint__ic { width: 36px; height: 36px; border-radius: 10px; }
  .dpoint__ic svg { width: 17px; height: 17px; }
  .fdone__ic { width: 54px; height: 54px; }
}
