/* Qmed Meet — Modern Telehealth & Virtual Conference Design System */

:root {
  --qm-bg-deep: #060b18;
  --qm-bg-mid: #0b152c;
  --qm-surface: rgba(15, 25, 48, 0.78);
  --qm-surface-elevated: rgba(22, 35, 64, 0.88);
  --qm-surface-light: rgba(255, 255, 255, 0.05);
  --qm-border: rgba(148, 163, 184, 0.16);
  --qm-border-highlight: rgba(56, 189, 248, 0.38);
  --qm-primary: #0ea5e9;
  --qm-primary-dark: #0284c7;
  --qm-teal: #14b8a6;
  --qm-indigo: #6366f1;
  --qm-text: #f8fafc;
  --qm-text-secondary: #94a3b8;
  --qm-text-muted: #64748b;
  --qm-success: #10b981;
  --qm-danger: #ef4444;
  --qm-warning: #f59e0b;
  --qm-radius-xl: 24px;
  --qm-radius-lg: 16px;
  --qm-radius-md: 12px;
  --qm-shadow-xl: 0 25px 60px -15px rgba(0, 0, 0, 0.65), 0 0 40px -10px rgba(14, 165, 233, 0.15);
}

* {
  box-sizing: border-box;
}

body.qm-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--qm-bg-deep);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(20, 184, 166, 0.18) 0%, transparent 42%),
    radial-gradient(circle at 88% 15%, rgba(99, 102, 241, 0.20) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
    linear-gradient(160deg, #050914 0%, #0a1428 50%, #07192e 100%);
  color: var(--qm-text);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Subtle architectural grid overlay */
body.qm-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

/* Top Navigation */
.qm-navbar {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.qm-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
  color: var(--qm-text) !important;
}

.qm-brand-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(20, 184, 166, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
  flex-shrink: 0;
}

.qm-brand-logo-wrap img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
}

.qm-brand-text {
  display: flex;
  flex-direction: column;
}

.qm-brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.qm-brand-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #38bdf8;
}

.qm-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.qm-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #6ee7b7;
  font-size: 0.75rem;
  font-weight: 600;
}

.qm-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: qm-pulse 2s infinite;
}

@keyframes qm-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.65; }
}

.qm-nav-link {
  color: var(--qm-text-secondary) !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.qm-nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06);
}

.qm-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
  transition: all 0.2s ease;
}

.qm-nav-btn:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

.qm-nav-btn-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.qm-nav-btn-primary:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}

/* Main Hero Container */
.qm-main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 28px 48px;
}

.qm-hero-grid {
  width: 100%;
  max-width: 1220px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
}

/* Left Showcase Column */
.qm-hero-pitch {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.qm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.qm-hero-title {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0;
}

.qm-gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #2dd4bf 55%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.qm-hero-desc {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--qm-text-secondary);
  margin: 0;
  max-width: 560px;
}

/* Interactive Video Consultation Stage Preview */
.qm-stage-card {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(22, 36, 68, 0.82) 0%, rgba(11, 20, 40, 0.92) 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 18px;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.qm-stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.75rem;
}

.qm-stage-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.qm-stage-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--qm-text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
}

.qm-stage-screen {
  position: relative;
  height: 220px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 35%, rgba(14, 165, 233, 0.22), transparent 65%),
    linear-gradient(180deg, #0f1d3a 0%, #091224 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qm-avatar-ring {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(20, 184, 166, 0.25));
  border: 2px solid rgba(56, 189, 248, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 12px rgba(14, 165, 233, 0.06), 0 0 30px rgba(14, 165, 233, 0.3);
  position: relative;
}

.qm-avatar-ring i {
  font-size: 2.3rem;
  color: #38bdf8;
}

.qm-speaker-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(6, 11, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.76rem;
  font-weight: 600;
  color: #f1f5f9;
  backdrop-filter: blur(8px);
}

.qm-pip-window {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 96px;
  height: 66px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.qm-pip-window i {
  font-size: 1.2rem;
  color: #2dd4bf;
}

.qm-pip-window span {
  font-size: 0.62rem;
  color: #cbd5e1;
  font-weight: 600;
}

.qm-telemetry-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(6, 11, 24, 0.72);
  border: 1px solid rgba(20, 184, 166, 0.3);
  color: #5eead4;
  font-size: 0.7rem;
  font-weight: 600;
}

.qm-stage-controls {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.qm-ctrl-dot {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  font-size: 0.74rem;
}

.qm-ctrl-dot.qm-ctrl-end {
  background: rgba(239, 68, 68, 0.85);
  border-color: rgba(239, 68, 68, 1);
  color: #ffffff;
}

/* Feature Bento Grid */
.qm-feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.qm-feature-item {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.qm-feature-item:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.qm-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.14);
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
}

.qm-feature-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #f1f5f9;
}

.qm-feature-sub {
  font-size: 0.74rem;
  color: var(--qm-text-secondary);
  line-height: 1.4;
}

/* Right Action Card (Glassmorphic Form Card) */
.qm-card {
  position: relative;
  border-radius: var(--qm-radius-xl);
  background: var(--qm-surface);
  border: 1px solid var(--qm-border);
  box-shadow: var(--qm-shadow-xl);
  padding: 36px 34px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
}

.qm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #2dd4bf, transparent);
}

.qm-card-single {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.qm-card-header {
  text-align: center;
  margin-bottom: 26px;
}

.qm-card-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(20, 184, 166, 0.18));
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.22);
  overflow: hidden;
}

.qm-card-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
}

.qm-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.qm-card-subtitle {
  font-size: 0.88rem;
  color: var(--qm-text-secondary);
  margin: 0;
}

/* Segmented Tabs */
.qm-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(6, 11, 24, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
  margin-bottom: 24px;
  list-style: none;
}

.qm-tabs .nav-item {
  width: 100%;
  margin: 0;
}

.qm-tabs .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px !important;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--qm-text-secondary) !important;
  background: transparent;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.qm-tabs .nav-link:hover {
  color: #ffffff !important;
}

.qm-tabs .nav-link.active {
  background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
}

/* Form Controls */
.qm-form-group {
  margin-bottom: 18px;
}

.qm-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.qm-label-hint {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--qm-text-muted);
}

.qm-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.qm-input-icon {
  position: absolute;
  left: 15px;
  color: var(--qm-text-muted);
  font-size: 0.92rem;
  pointer-events: none;
  transition: color 0.2s ease;
}

.qm-input {
  width: 100%;
  height: 48px;
  padding: 10px 16px 10px 42px;
  border-radius: 12px;
  background: rgba(6, 11, 24, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}

.qm-input.qm-input-with-actions {
  padding-right: 104px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.qm-input::placeholder {
  color: #64748b;
}

.qm-input:focus {
  border-color: #38bdf8;
  background: rgba(6, 11, 24, 0.88);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.qm-input-wrap:focus-within .qm-input-icon {
  color: #38bdf8;
}

.qm-input-actions {
  position: absolute;
  right: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.qm-icon-btn {
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s ease;
}

.qm-icon-btn:hover {
  background: rgba(14, 165, 233, 0.22);
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
}

/* Optional Checkbox Toggle */
.qm-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(6, 11, 24, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.16);
  margin-bottom: 16px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.qm-checkbox-row:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(6, 11, 24, 0.65);
}

.qm-checkbox-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #0ea5e9;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

.qm-checkbox-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qm-checkbox-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.25;
}

.qm-checkbox-desc {
  font-size: 0.72rem;
  color: var(--qm-text-secondary);
  line-height: 1.3;
}

/* Primary Submit Button */
.qm-submit-btn {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.45);
  transition: all 0.2s ease;
  margin-top: 6px;
}

.qm-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -5px rgba(14, 165, 233, 0.6);
  filter: brightness(1.05);
}

.qm-submit-btn:active {
  transform: translateY(0);
}

/* Alerts */
.qm-alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.qm-alert p {
  margin: 0;
}

.qm-alert-success {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.qm-alert-danger {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.qm-alert-warning {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

.qm-alert .close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.75;
  cursor: pointer;
  padding: 0;
}

/* Card Footer Links */
.qm-card-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--qm-text-secondary);
}

.qm-footer-link {
  color: #38bdf8 !important;
  font-weight: 600;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.qm-footer-link:hover {
  color: #7dd3fc !important;
  text-decoration: underline !important;
}

.qm-divider-dot {
  color: var(--qm-text-muted);
}

/* Page Footer */
.qm-page-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 18px 24px 26px;
  font-size: 0.78rem;
  color: var(--qm-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.qm-page-footer a {
  color: var(--qm-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.qm-page-footer a:hover {
  color: #38bdf8;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
  .qm-hero-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    gap: 32px;
  }
  .qm-hero-pitch {
    order: 2;
    text-align: center;
    align-items: center;
  }
  .qm-eyebrow {
    align-self: center;
  }
  .qm-stage-card {
    width: 100%;
  }
  .qm-feature-row {
    width: 100%;
    text-align: left;
  }
  .qm-card {
    order: 1;
  }
}

@media (max-width: 576px) {
  .qm-navbar {
    padding: 16px 18px;
  }
  .qm-status-pill {
    display: none;
  }
  .qm-main {
    padding: 12px 16px 36px;
  }
  .qm-card {
    padding: 26px 20px;
    border-radius: 20px;
  }
  .qm-feature-row {
    grid-template-columns: 1fr;
  }
}
