/*--------------------------------------------------------------
# Demo Page — Premium Book a Demo
# Prefix: dm-
--------------------------------------------------------------*/

/* ── Keyframes ── */
@keyframes dmFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dmFadeLeft {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes dmBlobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(24px, -18px) scale(1.04); }
  70%       { transform: translate(-16px, 12px) scale(0.97); }
}
@keyframes dmFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
@keyframes dmPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,184,169,0.28); }
  50%       { box-shadow: 0 0 0 8px rgba(0,184,169,0); }
}
@keyframes dmSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes dmCheckIn {
  from { transform: scale(0) rotate(-45deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

/*--------------------------------------------------------------
# Hero Section (.dm-hero)
--------------------------------------------------------------*/
.dm-hero {
  position: relative;
  overflow: hidden;
  padding: 148px 0 96px;
  background: #F8FAFC;
}

/* Layered background */
.dm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 20%, rgba(15,76,129,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 55% 50% at 85% 75%, rgba(0,184,169,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 0%, rgba(37,99,235,0.04) 0%, transparent 55%);
  pointer-events: none;
}

/* Dot grid */
.dm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(15,76,129,0.055) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  opacity: 0.6;
}

.dm-hero .container { position: relative; z-index: 2; }

/* ── Blobs ── */
.dm-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  animation: dmBlobDrift ease-in-out infinite;
}
.dm-blob-1 {
  width: 520px; height: 520px;
  background: rgba(15,76,129,0.09);
  top: -160px; left: -100px;
  animation-duration: 20s;
}
.dm-blob-2 {
  width: 380px; height: 380px;
  background: rgba(0,184,169,0.08);
  bottom: -80px; right: 5%;
  animation-duration: 26s;
  animation-delay: -8s;
}
.dm-blob-3 {
  width: 240px; height: 240px;
  background: rgba(37,99,235,0.06);
  top: 40%; left: 45%;
  animation-duration: 32s;
  animation-delay: -14s;
}

/* ── Left copy ── */
.dm-hero-copy {
  padding-right: 32px;
  animation: dmFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.1s;
}

.dm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00B8A9;
  background: rgba(0,184,169,0.09);
  border: 1px solid rgba(0,184,169,0.24);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  animation: dmFadeUp 0.6s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.15s;
}
.dm-eyebrow i { font-size: 0.78rem; }

.dm-hero-copy h1 {
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 800;
  color: #0F172A;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  animation: dmFadeUp 0.65s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.2s;
}

.dm-hl {
  background: linear-gradient(135deg, #0F4C81 0%, #00B8A9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dm-hero-copy p {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 32px;
  animation: dmFadeUp 0.65s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.27s;
}

/* ── CTA row ── */
.dm-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  animation: dmFadeUp 0.65s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.33s;
}

.dm-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  background: linear-gradient(135deg, #0F4C81 0%, #00B8A9 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(15,76,129,0.30);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.25s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.dm-btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: inherit;
}
.dm-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(15,76,129,0.40);
  color: #fff;
}
.dm-btn-primary:hover::after { opacity: 1; }
.dm-btn-primary i { font-size: 0.9rem; }


/* ── Trust badges ── */
.dm-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: dmFadeUp 0.65s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.40s;
}

.dm-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  background: #fff;
  border: 1px solid #E2E8F0;
  padding: 6px 14px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(15,23,42,0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.dm-trust-badge:hover {
  border-color: rgba(0,184,169,0.35);
  box-shadow: 0 4px 12px rgba(0,184,169,0.10);
  transform: translateY(-2px);
}
.dm-trust-badge i { font-size: 0.78rem; color: #00B8A9; }

/*--------------------------------------------------------------
# Hero Visual — Dashboard Illustration (.dm-visual)
--------------------------------------------------------------*/
.dm-visual {
  position: relative;
  padding: 24px 32px 24px 24px;
  animation: dmFadeLeft 0.75s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.2s;
}

/* Main dashboard card */
.dm-dashboard {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(15,23,42,0.10), 0 4px 16px rgba(15,23,42,0.06);
  overflow: hidden;
  position: relative;
  animation: dmFloat 6s ease-in-out infinite;
}

/* Dashboard top bar */
.dm-dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #0a1e38 0%, #0F4C81 60%, #0a6e6e 100%);
}
.dm-dash-dots {
  display: flex;
  gap: 5px;
}
.dm-dash-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
.dm-dash-dots span:nth-child(1) { background: #FF5F57; }
.dm-dash-dots span:nth-child(2) { background: #FEBC2E; }
.dm-dash-dots span:nth-child(3) { background: #28C840; }
.dm-dash-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.80);
  letter-spacing: 0.04em;
}
.dm-dash-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #5EEAD4;
}
.dm-dash-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5EEAD4;
  animation: dmPulse 2s ease-in-out infinite;
}

/* Dashboard body */
.dm-dash-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Stat row */
.dm-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.dm-dash-stat {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 10px 8px;
  text-align: center;
  transition: border-color 0.2s ease;
}
.dm-dash-stat:hover { border-color: rgba(0,184,169,0.30); }
.dm-dash-stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  font-size: 0.8rem;
}
.dm-dash-stat-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 2px;
  font-family: var(--heading-font);
}
.dm-dash-stat-lbl {
  font-size: 0.62rem;
  font-weight: 500;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Chart area */
.dm-dash-chart {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 14px 10px;
}
.dm-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.dm-chart-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0F172A;
}
.dm-chart-badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.22);
  padding: 2px 8px;
  border-radius: 50px;
}
.dm-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 52px;
}
.dm-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #0F4C81, rgba(15,76,129,0.3));
  transition: opacity 0.2s ease;
  min-width: 0;
}
.dm-bar:hover { opacity: 0.8; }
.dm-bar.dm-bar-teal {
  background: linear-gradient(180deg, #00B8A9, rgba(0,184,169,0.3));
}
.dm-bar.dm-bar-accent {
  background: linear-gradient(180deg, #2563EB, rgba(37,99,235,0.3));
}

/* Appointment list */
.dm-dash-appts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dm-appt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.dm-appt-row:hover {
  background: #fff;
  border-color: rgba(15,76,129,0.18);
}
.dm-appt-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.dm-appt-info { flex: 1; min-width: 0; }
.dm-appt-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dm-appt-dept {
  font-size: 0.62rem;
  color: #94A3B8;
  font-weight: 400;
}
.dm-appt-time {
  font-size: 0.65rem;
  font-weight: 600;
  color: #64748B;
  white-space: nowrap;
}
.dm-appt-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dm-appt-status.confirmed { background: #10B981; }
.dm-appt-status.pending   { background: #F59E0B; }
.dm-appt-status.new       { background: #2563EB; }

/* ── Floating cards ── */
.dm-float-card {
  position: absolute;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 8px 28px rgba(15,23,42,0.10);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  z-index: 3;
}

/* Cloud sync card — top left */
.dm-float-cloud {
  top: -18px;
  left: -24px;
  animation: dmFloat 5s ease-in-out infinite;
  animation-delay: -1s;
}
.dm-float-cloud-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0F4C81, #00B8A9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dm-float-cloud-icon i { font-size: 0.9rem; color: #fff; }
.dm-float-cloud-text strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.2;
}
.dm-float-cloud-text span {
  font-size: 0.62rem;
  color: #10B981;
  font-weight: 600;
}

/* Revenue card — bottom right */
.dm-float-revenue {
  bottom: -16px;
  right: -20px;
  animation: dmFloat 7s ease-in-out infinite;
  animation-delay: -3s;
}
.dm-float-rev-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(16,185,129,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dm-float-rev-icon i { font-size: 0.9rem; color: #10B981; }
.dm-float-rev-text strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.2;
}
.dm-float-rev-text span {
  font-size: 0.62rem;
  color: #94A3B8;
  font-weight: 400;
}

/* EMR card — right middle */
.dm-float-emr {
  top: 38%;
  right: -28px;
  animation: dmFloat 8s ease-in-out infinite;
  animation-delay: -5s;
}
.dm-float-emr-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(37,99,235,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dm-float-emr-icon i { font-size: 0.9rem; color: #2563EB; }
.dm-float-emr-text strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.2;
}
.dm-float-emr-text span {
  font-size: 0.62rem;
  color: #94A3B8;
  font-weight: 400;
}

/*--------------------------------------------------------------
# Form Card (inside hero right column)
--------------------------------------------------------------*/
.dm-form-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 24px 64px rgba(15,23,42,0.10), 0 4px 16px rgba(15,23,42,0.06);
  animation: dmFadeLeft 0.75s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.2s;
}

.dm-form-header {
  margin-bottom: 22px;
}
.dm-form-header h2 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.dm-form-header p {
  font-size: 0.85rem;
  color: #64748B;
  margin: 0;
}

.dm-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.dm-field-group {
  margin-bottom: 14px;
}
.dm-field-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}
.dm-field-group input,
.dm-field-group select {
  width: 100%;
  padding: 10px 13px;
  font-size: 0.875rem;
  font-family: var(--default-font);
  color: #0F172A;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.dm-field-group input:focus,
.dm-field-group select:focus {
  border-color: #0F4C81;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15,76,129,0.10);
}
.dm-field-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
  cursor: pointer;
}

.dm-field-error {
  display: block;
  font-size: 0.72rem;
  color: #DC2626;
  margin-top: 3px;
}

.dm-field-check .dm-check-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.8rem;
  color: #64748B;
  cursor: pointer;
  user-select: none;
}
.dm-field-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1.5px solid #CBD5E1;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.dm-field-check input[type="checkbox"]:checked {
  background: #0F4C81;
  border-color: #0F4C81;
}
.dm-field-check input[type="checkbox"]::after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.dm-field-check input[type="checkbox"]:checked::after {
  display: block;
}
.dm-field-check a {
  color: #0F4C81;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dm-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  border-radius: 12px;
  transition: opacity 0.2s ease;
}

.dm-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.dm-form-feedback {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
}

.dm-form-feedback--error {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 1199px) {
  .dm-hero { padding: 130px 0 80px; }
  .dm-hero-copy { padding-right: 16px; }
  .dm-float-emr { right: -12px; }
}

@media (max-width: 991px) {
  .dm-hero { padding: 100px 0 40px; }
  .dm-hero-copy { padding-right: 0; margin-bottom: 32px; }
  .dm-hero-copy h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
  .dm-float-cloud { left: -8px; }
  .dm-float-revenue { right: -8px; }
  .dm-float-emr { display: none; }
}

@media (max-width: 767px) {
  .dm-hero { padding: 100px 0 32px; }
  .dm-eyebrow { margin-top: 8px; margin-bottom: 16px; }
  .dm-hero-copy { margin-bottom: 24px; }
  .dm-hero-copy h1 { font-size: clamp(1.9rem, 6vw, 2.4rem); }
  .dm-hero-copy p { font-size: 0.975rem; margin-bottom: 20px; }
  .dm-cta-row { flex-direction: column; align-items: stretch; }
  .dm-btn-primary { justify-content: center; }
  .dm-float-cloud, .dm-float-revenue { display: none; }
}

@media (max-width: 575px) {
  .dm-hero { padding: 96px 0 24px; }
  .dm-eyebrow { margin-top: 10px; }
  .dm-hero-copy { margin-bottom: 20px; }
  .dm-trust-row { gap: 6px; }
  .dm-trust-badge { font-size: 0.70rem; padding: 5px 11px; }
  .dm-form-card { padding: 20px 16px; }
  .dm-field-row { grid-template-columns: 1fr; }
  .dm-field-group { margin-bottom: 10px; }
}
