/* ── SECTION WRAPPER ── */
.demo-sec {
  width: 100%;
  /* max-width: 1100px; */
}
.demo-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  /* border-radius: 24px; */
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(15, 23, 42, 0.18),
    0 8px 24px rgba(15, 23, 42, 0.08);
}

/* ═══════════════════════════════════════
   LEFT — Illustration panel
   ═══════════════════════════════════════ */
.demo-left {
  background: var(--blue);
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}



/* Top-right glow blob */
.demo-left-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 65%
  );
  z-index: 1;
  pointer-events: none;
}
.demo-left-glow2 {
  position: absolute;
  bottom: 120px;
  left: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(
    circle,
    rgba(20, 184, 166, 0.18) 0%,
    transparent 65%
  );
  z-index: 1;
  pointer-events: none;
}

/* Doctors SVG illustration */
.doctors-illustration {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
}

/* Bottom content overlay */
.demo-left-content {
  position: relative;
  z-index: 5;
  padding: 0 36px 40px;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.75) 0%,
    rgba(15, 23, 42, 0.4) 60%,
    transparent 100%
  );
  padding-top: 80px;
}
.demo-left-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}
.demo-left-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}
.demo-left-heading {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 20px;
}
.demo-left-heading em {
  font-style: normal;
  color: var(--teal);
}

/* Stats row */
.demo-stats {
  display: flex;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(10px);
}
.demo-stat {
  flex: 1;
  padding: 16px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.demo-stat:last-child {
  border-right: none;
}
.demo-stat-num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.demo-stat-num.teal {
  color: var(--teal);
}
.demo-stat-lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
  line-height: 1.4;
}

/* ═══════════════════════════════════════
   RIGHT — Form
   ═══════════════════════════════════════ */
.demo-right {
  background: var(--white);
  padding: 48px 44px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Header */
.demo-right-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 10px;
}
.demo-right-eyebrow::before {
  content: "";
  width: 16px;
  height: 1.5px;
  background: var(--blue);
}
.demo-right-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 5px;
}
.demo-right-sub {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Form fields */
.df-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.df-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.df-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.df-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.df-label .req {
  color: var(--blue);
  margin-left: 1px;
}
.df-label .opt {
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 4px;
  font-weight: 300;
}
.df-wrap {
  position: relative;
}
.df-wrap svg.ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  stroke: var(--muted);
  pointer-events: none;
}
.df-input,
.df-select {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: 13.5px;
  font-family: "DM Sans", sans-serif;
  color: var(--dark);
  padding: 0 14px 0 36px;
  outline: none;
  appearance: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.df-input::placeholder {
  color: var(--muted);
}
.df-input:focus,
.df-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--white);
}
.df-select {
  padding-right: 32px;
  cursor: pointer;
}
.df-select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  pointer-events: none;
}
.df-input.err,
.df-select.err {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

/* Phone row with flag */
.df-phone-row {
  display: flex;
  gap: 0;
}
.df-phone-prefix {
  height: 46px;
  padding: 0 12px 0 10px;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: 10px 0 0 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.df-phone-prefix span {
  font-size: 18px;
  line-height: 1;
}
.df-phone-row .df-input {
  border-radius: 0 10px 10px 0;
  padding-left: 14px;
  flex: 1;
}

/* Submit */
.df-submit {
  width: 100%;
  height: 50px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 500;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition:
    background 0.18s,
    transform 0.15s,
    box-shadow 0.18s;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.df-submit:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}
.df-submit:active {
  transform: translateY(0);
}
.df-submit svg {
  width: 17px;
  height: 17px;
}

/* Trust footer */
.df-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.df-footer-icons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.df-footer-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.df-footer-icon svg {
  width: 15px;
  height: 15px;
}
.df-footer-text {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.5;
}
.df-footer-text a {
  color: var(--blue);
  text-decoration: none;
}

/* Success */
.df-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0;
}
.df-success.show {
  display: flex;
}
.df-success-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.1);
  border: 1.5px solid rgba(20, 184, 166, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  animation: df-pop 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes df-pop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.df-success-ring svg {
  width: 30px;
  height: 30px;
  stroke: var(--teal);
  stroke-width: 1.8;
}
.df-success-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.df-success-sub {
  font-size: 13.5px;
  color: var(--slate);
  font-weight: 300;
  line-height: 1.7;
  max-width: 300px;
}

/* Responsive */
@media (max-width: 860px) {
  .demo-card {
    grid-template-columns: 1fr;
  }
  .demo-left {
    min-height: 340px;
  }
  .df-row {
    grid-template-columns: 1fr;
  }
  .demo-right {
    padding: 36px 28px;
  }
}


