/* ============================================
   FlowMatch - Enhanced CSS
   Modern, Professional, Impressive
   ============================================ */

:root {
  /* Colors - Upgraded Palette */
  --primary: #3d7bfd;
  --primary-light: #6b9eff;
  --primary-dark: #2563eb;
  --secondary: #22c1c3;
  --accent: #8b5cf6;
  
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-soft: #f1f5f9;
  --bg-subtle: #f8faff;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(61, 123, 253, 0.3);
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Typography */
  --font-primary: 'Assistant', 'Heebo', system-ui, -apple-system, sans-serif;
  --font-display: 'Heebo', 'Assistant', system-ui, sans-serif;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #f1f5f9 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  direction: rtl;
  line-height: 1.6;
  min-height: 100vh;
}

/* ============================================
   Loading Screen
   ============================================ */

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #3d7bfd 0%, #22c1c3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  text-align: center;
}

.loading-logo {
  position: relative;
  margin-bottom: 32px;
}

.logo-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

.logo-text {
  position: relative;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.loading-progress {
  height: 100%;
  background: white;
  border-radius: 999px;
  animation: loading 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

@keyframes loading {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Layout
   ============================================ */

.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

/* ============================================
   Header
   ============================================ */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid var(--border-light);
  gap: 24px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo svg {
  display: block;
  filter: drop-shadow(0 2px 8px rgba(61, 123, 253, 0.3));
  transition: transform var(--transition-base);
}

.brand-logo:hover svg {
  transform: scale(1.05);
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.top-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-btn {
  display: flex;
  align-items: center;
  padding: 8px 20px;
  background: transparent;
  border: none;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-btn:hover {
  color: var(--primary);
}

.nav-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-fast);
}

.nav-btn:hover::after {
  width: 80%;
}

.nav-btn-secondary,
.nav-btn-demo {
  background: transparent;
}

/* External Link Buttons */
.nav-btn-external {
  text-decoration: none;
  position: relative;
}

.nav-btn-external .external-icon {
  opacity: 0;
  transition: all 0.2s;
  margin-inline-start: 4px;
}

.nav-btn-external:hover .external-icon {
  opacity: 0.7;
}

/* ============================================
   Views
   ============================================ */

.main-content {
  animation: fadeIn 0.6s ease;
  padding-top: 80px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(61, 123, 253, 0.1), rgba(34, 193, 195, 0.1));
  border: 1px solid rgba(61, 123, 253, 0.2);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  width: fit-content;
  animation: slideInRight 0.8s ease 0.2s both;
}

.badge-icon {
  font-size: 18px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0;
  animation: slideInRight 0.8s ease 0.3s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  animation: slideInRight 0.8s ease 0.4s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: slideInRight 0.8s ease 0.5s both;
}

.cta-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 32px;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  min-height: 90px;
  text-decoration: none;
}

.cta-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.cta-secondary {
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--border-light);
}

.cta-secondary:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-icon {
  font-size: 32px;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: right;
}

.btn-text strong {
  font-size: 16px;
}

.btn-text small {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.9;
}

.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
  border-right: 4px solid var(--accent);
  border-radius: var(--radius-md);
  animation: slideInRight 0.8s ease 0.6s both;
}

.note-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.hero-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.hero-note strong {
  color: var(--text-primary);
}

.hero-note em {
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
}

.hero-visual {
  animation: fadeInUp 0.8s ease 0.4s both;
}

.visual-card {
  padding: 24px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.card-icon {
  font-size: 32px;
}

.card-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
}

.step-content strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-content p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   Value Cards
   ============================================ */

.value-cards {
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  color: var(--text-primary);
  margin: 0 0 32px;
}

.platform-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.platform-card {
  padding: 32px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 2px solid transparent;
  transition: all var(--transition-base);
  animation: fadeInUp 0.8s ease both;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.platform-match {
  border-color: rgba(61, 123, 253, 0.3);
  background: linear-gradient(135deg, white, rgba(61, 123, 253, 0.02));
}

.platform-insurance {
  border-color: rgba(34, 193, 195, 0.3);
  background: linear-gradient(135deg, white, rgba(34, 193, 195, 0.02));
  animation-delay: 0.2s;
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.platform-icon {
  font-size: 40px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(61, 123, 253, 0.1), rgba(34, 193, 195, 0.1));
  border-radius: var(--radius-lg);
}

.platform-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.platform-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.platform-badge {
  margin-right: auto;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.platform-badge-secondary {
  background: linear-gradient(135deg, var(--text-secondary), var(--text-muted));
}

.platform-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.platform-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.platform-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.platform-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  align-self: flex-start;
}

.platform-cta:hover {
  transform: translateX(-4px);
  box-shadow: var(--shadow-lg);
}

.platform-cta-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cta-arrow {
  transition: transform var(--transition-fast);
}

.platform-cta:hover .cta-arrow {
  transform: translateX(-4px);
}

.platform-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
}

.connector-line {
  width: 2px;
  height: 80px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 999px;
}

.connector-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.connector-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================
   Features Grid
   ============================================ */

.features-section {
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 24px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  animation: fadeInUp 0.8s ease both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.feature-card-highlight {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(236, 72, 153, 0.05));
  border-color: rgba(139, 92, 246, 0.3);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(61, 123, 253, 0.1), rgba(34, 193, 195, 0.1));
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.feature-emoji {
  font-size: 28px;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  margin-bottom: 48px;
  padding: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: fadeInUp 0.8s ease;
}

.cta-content h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: white;
}

.cta-content p {
  margin: 0 0 32px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .cta-primary {
  background: white;
  color: var(--primary);
}

.cta-section .cta-secondary {
  background: transparent;
  border-color: white;
  color: white;
}

/* ============================================
   Flow Screens
   ============================================ */

.flow-header {
  margin-bottom: 32px;
}

.flow-header-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  font-size: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.back-btn:hover {
  background: var(--bg-soft);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateX(4px);
}

.flow-header h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
}

.flow-header p {
  margin: 0;
  font-size: 16px;
  color: var(--text-secondary);
}

.flow-progress {
  display: flex;
  align-items: center;
  gap: 16px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-soft);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.progress-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.flow-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: flex-start;
}

.stepper {
  position: sticky;
  top: 100px;
  padding: 24px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.stepper-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.stepper-item:last-child {
  margin-bottom: 0;
}

.stepper-item:hover {
  background: var(--bg-soft);
}

.stepper-item.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.stepper-item .step-number {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
}

.stepper-item:not(.active) .step-number {
  background: var(--bg-soft);
  color: var(--text-muted);
}

.step-label {
  font-size: 14px;
  font-weight: 600;
}

.stepper-item:not(.active) .step-label {
  color: var(--text-secondary);
}

.flow-form {
  padding: 32px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.step-panel h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.step-hint {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--text-muted);
}

/* Form Elements */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.field-required {
  color: var(--error);
}

.field-optional {
  font-weight: 400;
  color: var(--text-muted);
}

.form-input {
  padding: 12px 16px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 15px;
  color: var(--text-primary);
  background: white;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(61, 123, 253, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.field-error {
  font-size: 13px;
  color: var(--error);
  display: none;
}

.field-error.visible {
  display: block;
}

.field-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Chips */

.preferences-section {
  margin-bottom: 24px;
}

.preferences-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip:hover {
  border-color: var(--primary);
  background: rgba(61, 123, 253, 0.05);
}

.chip.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-md);
}

.chip-icon {
  font-size: 16px;
}

/* Upload Area */

.upload-area {
  margin-bottom: 24px;
}

.upload-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.upload-zone {
  padding: 40px 24px;
  background: var(--bg-soft);
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.upload-zone:hover {
  background: rgba(61, 123, 253, 0.05);
  border-color: var(--primary);
}

.upload-icon {
  color: var(--primary);
  margin-bottom: 12px;
}

.upload-text {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.upload-hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.uploaded-files {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uploaded-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-icon {
  font-size: 24px;
}

.file-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.file-remove {
  padding: 6px 12px;
  background: transparent;
  border: none;
  color: var(--error);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.file-remove:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Info Banner */

.info-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(59, 130, 246, 0.1);
  border-right: 4px solid var(--primary);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.banner-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.info-banner p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Step Actions */

.step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--border-medium);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(61, 123, 253, 0.05);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: var(--bg-soft);
  color: var(--text-primary);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-icon {
  font-size: 18px;
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(-4px);
}

/* Results Panel */

.results-panel {
  display: none;
}

.results-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-light);
}

.results-header h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}

.results-header p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

.results-filters {
  display: flex;
  gap: 8px;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--primary);
  background: rgba(61, 123, 253, 0.05);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.filter-count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

/* Result Cards */

.result-card {
  position: relative;
  padding: 24px;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  animation: fadeInUp 0.6s ease both;
}

.result-card:nth-child(1) { animation-delay: 0.1s; }
.result-card:nth-child(2) { animation-delay: 0.2s; }
.result-card:nth-child(3) { animation-delay: 0.3s; }

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.result-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.result-badge-good {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.badge-icon {
  font-size: 14px;
}

.result-header {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.therapist-avatar {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
}

.therapist-info {
  flex: 1;
}

.therapist-info h4 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.therapist-title {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.therapist-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-stars {
  font-size: 14px;
}

.rating-text {
  font-size: 13px;
  color: var(--text-muted);
}

.match-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.score-circle {
  position: relative;
  width: 60px;
  height: 60px;
}

.score-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.score-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-body {
  margin-bottom: 20px;
}

.specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.specialty-tag {
  padding: 6px 12px;
  background: rgba(61, 123, 253, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
}

.therapist-bio {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.therapist-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}

.detail-icon {
  font-size: 16px;
}

.detail-highlight {
  color: var(--success);
  font-weight: 600;
}

.match-reasons {
  padding: 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  font-size: 14px;
}

.match-reasons strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.match-reasons ul {
  margin: 0;
  padding-right: 20px;
  color: var(--text-secondary);
}

.match-reasons li {
  margin-bottom: 4px;
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-book,
.btn-details,
.btn-save {
  flex: 1;
  min-width: 140px;
}

/* Next Steps */

.next-steps {
  padding: 32px;
  background: linear-gradient(135deg, rgba(61, 123, 253, 0.05), rgba(34, 193, 195, 0.05));
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
}

.next-steps-header {
  text-align: center;
  margin-bottom: 24px;
}

.next-steps-header h4 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.next-steps-header p {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
}

.next-steps-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.next-step-card {
  padding: 24px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.next-step-card .step-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.next-step-card h5 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.next-step-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.results-actions {
  text-align: center;
}

.feedback-box {
  display: none;
  padding: 20px;
  background: rgba(16, 185, 129, 0.1);
  border-right: 4px solid var(--success);
  border-radius: var(--radius-md);
  margin-top: 16px;
}

.feedback-box.visible {
  display: flex;
  gap: 16px;
  animation: fadeIn 0.4s ease;
}

.feedback-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.feedback-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  color: var(--text-primary);
}

.feedback-box p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Insurance Module */

.insurance-intro {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
  border-right: 4px solid var(--accent);
  border-radius: var(--radius-xl);
  margin-bottom: 32px;
}

.intro-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.intro-content h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.intro-content p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.insurance-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.insurance-card {
  padding: 32px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.insurance-card .card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-light);
}

.insurance-card .card-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(61, 123, 253, 0.1), rgba(34, 193, 195, 0.1));
  border-radius: var(--radius-lg);
  font-size: 32px;
}

.insurance-card .card-header h3 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.insurance-card .card-header p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.card-desc {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.consent-box {
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--border-medium);
  border-radius: 4px;
  background: white;
  transition: all var(--transition-fast);
  position: relative;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.checkbox-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.upload-status {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.analysis-results {
  display: none;
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  animation: fadeIn 0.4s ease;
}

.analysis-results.visible {
  display: block;
}

.results-header .results-icon {
  font-size: 24px;
  margin-left: 8px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.result-item {
  padding: 16px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.result-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.result-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.result-value.highlight {
  color: var(--primary);
}

.requirements-box {
  padding: 16px;
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.requirements-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-primary);
}

.requirements-box ul {
  margin: 0;
  padding-right: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(251, 191, 36, 0.1);
  border-right: 4px solid var(--warning);
  border-radius: var(--radius-md);
}

.disclaimer-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.disclaimer p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.simple-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-success {
  display: none;
  padding: 24px;
  background: rgba(16, 185, 129, 0.1);
  border-right: 4px solid var(--success);
  border-radius: var(--radius-lg);
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.form-success.visible {
  display: block;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.form-success h3,
.form-success h4 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.form-success p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Demo Center */

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.demo-card {
  padding: 24px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  animation: fadeInUp 0.6s ease both;
}

.demo-card:nth-child(1) { animation-delay: 0.1s; }
.demo-card:nth-child(2) { animation-delay: 0.2s; }
.demo-card:nth-child(3) { animation-delay: 0.3s; }
.demo-card:nth-child(4) { animation-delay: 0.4s; }

.demo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.demo-icon {
  font-size: 32px;
}

.demo-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.demo-preview {
  margin-bottom: 16px;
  padding: 20px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.preview-content {
  font-size: 13px;
}

.preview-therapist {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.preview-avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  font-weight: 700;
}

.preview-therapist h4 {
  margin: 0 0 2px;
  font-size: 16px;
}

.preview-therapist p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag {
  padding: 4px 10px;
  background: rgba(61, 123, 253, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.preview-details {
  margin-bottom: 12px;
  padding: 8px;
  background: white;
  border-radius: 6px;
}

.preview-details p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.preview-buttons {
  display: flex;
  gap: 8px;
}

.preview-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.preview-btn-primary {
  background: var(--primary);
  color: white;
}

.preview-btn {
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.dashboard-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.badge {
  padding: 4px 10px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

.child-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 8px;
  margin-bottom: 8px;
}

.child-icon {
  font-size: 24px;
}

.child-card strong {
  display: block;
  margin-bottom: 2px;
}

.child-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.insurance-status {
  padding: 12px;
  background: white;
  border-radius: 8px;
  text-align: center;
}

.insurance-status p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.form-row:last-child {
  border-bottom: none;
}

.documents-check {
  padding: 12px;
  background: white;
  border-radius: 8px;
  margin: 12px 0;
}

.documents-check p {
  margin: 0;
  font-size: 13px;
  color: var(--success);
  font-weight: 600;
}

.status-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: white;
  border-radius: 8px;
}

.status-icon {
  font-size: 20px;
}

.status-box p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.stat {
  padding: 12px;
  background: white;
  border-radius: 8px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.calendar-preview {
  padding: 12px;
  background: white;
  border-radius: 8px;
}

.calendar-preview p {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.appointment {
  padding: 8px;
  background: rgba(61, 123, 253, 0.05);
  border-right: 3px solid var(--primary);
  border-radius: 4px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.demo-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Footer */

.footer {
  margin-top: 48px;
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-note {
  text-align: left;
}

.footer-note p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-note strong {
  color: var(--text-primary);
}

/* Toast Notifications */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border-right: 4px solid var(--primary);
  animation: slideInLeft 0.4s ease;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.toast-message {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.toast-close {
  padding: 4px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.toast-close:hover {
  color: var(--text-primary);
}

.toast.toast-success {
  border-right-color: var(--success);
}

.toast.toast-error {
  border-right-color: var(--error);
}

.toast.toast-warning {
  border-right-color: var(--warning);
}

/* Responsive Design */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }
  
  .platform-cards {
    grid-template-columns: 1fr;
  }
  
  .platform-connector {
    flex-direction: row;
    padding: 16px 0;
  }
  
  .connector-line {
    width: 80px;
    height: 2px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .flow-layout {
    grid-template-columns: 1fr;
  }
  
  .stepper {
    position: static;
    display: flex;
    overflow-x: auto;
    padding: 16px;
  }
  
  .stepper-item {
    flex-shrink: 0;
    margin-bottom: 0;
    margin-left: 8px;
  }
  
  .insurance-layout {
    grid-template-columns: 1fr;
  }
  
  .demo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-shell {
    padding: 12px;
  }
  
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 16px;
  }
  
  .top-nav {
    width: 100%;
    justify-content: space-between;
  }
  
  .nav-btn {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .nav-btn .nav-icon {
    font-size: 18px;
  }
  
  .nav-btn span:not(.nav-icon) {
    display: none;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .cta-btn {
    width: 100%;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-section {
    padding: 32px 24px;
  }
  
  .cta-content h2 {
    font-size: 32px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .result-header {
    flex-direction: column;
  }
  
  .match-score {
    align-self: flex-start;
  }
  
  .result-actions {
    flex-direction: column;
  }
  
  .btn-book,
  .btn-details,
  .btn-save {
    width: 100%;
  }
  
  .next-steps-cards {
    grid-template-columns: 1fr;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .toast-container {
    right: 12px;
    left: 12px;
    bottom: 12px;
    max-width: none;
  }
}

/* Print Styles */

@media print {
  .top-bar,
  .footer,
  .btn,
  .step-actions {
    display: none !important;
  }
  
  .view {
    display: block !important;
  }
  
  .result-card {
    page-break-inside: avoid;
  }
}

/* Accessibility */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Styles */

*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline-color: var(--primary);
}

/* High Contrast Mode Support */

@media (prefers-contrast: high) {
  :root {
    --border-light: #000000;
    --text-muted: #000000;
  }
}

/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   Workload Indicator (Therapist Step 3)
   ============================================ */

.workload-selector {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.workload-option {
  flex: 1;
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.workload-option input[type="radio"] {
  display: none;
}

.workload-indicator {
  font-size: 20px;
  line-height: 1;
}

.workload-text {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 14px;
}

.workload-option:hover {
  border-color: var(--primary);
  background: var(--bg-soft);
  transform: translateY(-2px);
}

.workload-option input[type="radio"]:checked + .workload-indicator,
.workload-option:has(input[type="radio"]:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 4px 12px rgba(61, 123, 253, 0.2);
}

.workload-option:has(input[type="radio"]:checked) .workload-text {
  color: var(--primary);
  font-weight: 700;
}

/* Specific colors for workload states */
.workload-available:has(input[type="radio"]:checked) {
  border-color: #10b981;
  background: #d1fae5;
}

.workload-available:has(input[type="radio"]:checked) .workload-text {
  color: #065f46;
}

.workload-moderate:has(input[type="radio"]:checked) {
  border-color: #f59e0b;
  background: #fef3c7;
}

.workload-moderate:has(input[type="radio"]:checked) .workload-text {
  color: #92400e;
}

.workload-busy:has(input[type="radio"]:checked) {
  border-color: #ef4444;
  background: #fee2e2;
}

.workload-busy:has(input[type="radio"]:checked) .workload-text {
  color: #991b1b;
}

/* Success Info Section */
.success-info {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 20px 0;
  border-right: 4px solid var(--primary);
}

.success-info p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.6;
}

.success-info strong {
  color: var(--primary);
  font-weight: 700;
}

/* ============================================
   Dynamic Specializations System (Therapist Step 2)
   ============================================ */

#specializations-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.specialization-block {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  transition: all var(--transition-base);
}

.specialization-block:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.specialization-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.specialization-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
}

.remove-specialization-btn {
  background: transparent;
  border: none;
  color: var(--error);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  font-size: 20px;
  line-height: 1;
}

.remove-specialization-btn:hover {
  background: #fee2e2;
  transform: scale(1.1);
}

.main-field-selector {
  margin-bottom: 16px;
}

.main-field-selector label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 15px;
}

.main-field-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.main-field-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.main-field-chip:hover {
  border-color: var(--primary);
  background: var(--bg-soft);
  transform: translateY(-2px);
}

.main-field-chip.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(61, 123, 253, 0.3);
}

.main-field-chip.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.sub-fields-container {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: none;
}

.sub-fields-container.visible {
  display: block;
  animation: slideDown 0.3s ease;
}

.sub-fields-container label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 14px;
}

.sub-field-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sub-field-chip {
  padding: 8px 16px;
  background: var(--bg-soft);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sub-field-chip:hover {
  background: var(--primary-light);
  color: white;
  transform: translateY(-1px);
}

.sub-field-chip.active {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
  box-shadow: 0 2px 8px rgba(34, 193, 195, 0.3);
}

.add-specialization-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 2px dashed var(--border-medium);
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  margin-bottom: 24px;
}

.add-specialization-btn:hover {
  background: var(--bg-soft);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.add-specialization-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-icon {
  font-size: 20px;
  line-height: 1;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border-medium);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Weekly Schedule Manager
   ============================================ */

.chip-special {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  font-weight: 700;
  border: none;
}

.chip-special:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(61, 123, 253, 0.4);
}

.schedule-manager-container {
  background: var(--bg-card);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
  animation: slideDown 0.3s ease;
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.schedule-header h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.btn-close-schedule {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-close-schedule:hover {
  background: var(--bg-soft);
  color: var(--error);
  transform: scale(1.1);
}

.schedule-hint {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.weekly-schedule {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.day-column {
  background: white;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  transition: all var(--transition-fast);
}

.day-column:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.day-header {
  text-align: center;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
}

.time-slots {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.time-slot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.time-slot:hover {
  background: var(--primary-light);
  color: white;
}

.time-slot.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary-dark);
  font-weight: 600;
}

.time-slot input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

.save-schedule-btn {
  width: 100%;
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 1200px) {
  .weekly-schedule {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .weekly-schedule {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .weekly-schedule {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Organizations Section (Past/Current)
   ============================================ */

.orgs-section {
  background: var(--bg-soft);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.sub-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 15px;
}

.org-details {
  margin-top: 12px;
  font-size: 14px;
}

/* ============================================
   Modal System
   ============================================ */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.modal-large {
  max-width: 900px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 2px solid var(--border-light);
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  color: var(--text-primary);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
}

.modal-close:hover {
  background: var(--bg-soft);
  color: var(--error);
  transform: scale(1.1);
}

.modal-body {
  padding: 24px;
}

.modal-hint {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Booking Calendar
   ============================================ */

.booking-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.booking-day {
  background: white;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 8px;
}

.booking-day-header {
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
  color: var(--text-primary);
}

.booking-slots {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.booking-slot {
  padding: 8px;
  background: var(--bg-soft);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.booking-slot:hover {
  background: var(--primary-light);
  color: white;
  transform: translateY(-2px);
}

.booking-slot.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary-dark);
  font-weight: 700;
}

.booking-slot.unavailable {
  background: #f1f1f1;
  color: #999;
  cursor: not-allowed;
  opacity: 0.5;
}

.booking-slot.unavailable:hover {
  transform: none;
  background: #f1f1f1;
  color: #999;
}

.booking-summary {
  background: var(--bg-soft);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 20px;
}

.booking-summary h4 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--primary);
}

.booking-summary p {
  margin: 8px 0;
  font-size: 15px;
}

.btn-confirm-booking {
  width: 100%;
  margin-top: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .booking-calendar {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .booking-calendar {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   Therapist Full Details
   ============================================ */

.therapist-details-full {
  max-width: 800px;
}

.details-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.details-section:last-child {
  border-bottom: none;
}

.details-section h4 {
  color: var(--primary);
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 700;
}

.therapist-title {
  color: var(--text-secondary);
  font-size: 14px;
  font-style: italic;
}

.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--secondary);
  color: white;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
}

.details-section ul {
  list-style: none;
  padding: 0;
}

.details-section ul li {
  padding: 8px 0;
  padding-right: 20px;
  position: relative;
}

.details-section ul li:before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--success);
  font-weight: 700;
}

.price-note {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 8px;
}

/* Modal Footer */
.modal-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--border-light);
  display: flex;
  justify-content: center;
}

/* Booking Success Message */
.booking-success-message {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  font-size: 72px;
  margin-bottom: 20px;
  animation: bounceIn 0.6s ease;
}

.booking-success-message h3 {
  color: var(--success);
  font-size: 28px;
  margin-bottom: 16px;
}

.success-text {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.success-details {
  background: var(--bg-soft);
  border: 2px solid var(--success);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.8;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* ============================================
   Modal Footer & Success States
   ============================================ */

.modal-footer {
  padding: 20px 24px;
  border-top: 2px solid var(--border-light);
  display: flex;
  justify-content: center;
  gap: 12px;
}

.booking-success-message {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: bounceIn 0.6s ease;
}

.booking-success-message h3 {
  color: var(--success);
  font-size: 24px;
  margin-bottom: 16px;
}

.success-text {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.success-details {
  background: var(--bg-soft);
  border: 2px solid var(--success-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.8;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.success-actions .btn {
  width: 100%;
  justify-content: center;
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============================================
   Duration Selector
   ============================================ */

.duration-selector {
  margin: 20px 0;
  padding: 16px;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
}

.duration-selector label {
  display: block;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: 15px;
}

.duration-options {
  display: flex;
  gap: 12px;
}

.duration-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--bg-soft);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.duration-option:hover {
  border-color: var(--primary);
  background: var(--bg-card);
}

.duration-option:has(input:checked) {
  background: var(--primary);
  color: white;
  border-color: var(--primary-dark);
  font-weight: 700;
}

.duration-option input[type="radio"] {
  margin: 0;
}

/* ============================================
   Demo Daily Screens Section
   ============================================ */

.demo-daily-section {
  margin-top: 80px;
  padding: 60px 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--radius-xl);
}

.demo-daily-header {
  text-align: center;
  margin-bottom: 48px;
}

.demo-daily-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.demo-daily-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ============================================
   Phone Mocks Container
   ============================================ */

.demo-phones-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 800px;
  margin: 0 auto 60px;
}

.demo-phone-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-align: center;
}

/* ============================================
   Phone Mock Design
   ============================================ */

.phone-mock {
  width: 340px;
  max-width: 100%;
  background: #1a1a1a;
  border-radius: 32px;
  padding: 12px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 8px #2a2a2a,
    0 0 0 12px #1a1a1a;
  position: relative;
}

.phone-mock::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 20px;
  background: #1a1a1a;
  border-radius: 0 0 12px 12px;
  z-index: 10;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  background: #1a1a1a;
  border-radius: 20px 20px 0 0;
  position: relative;
  z-index: 5;
}

.phone-time {
  flex: 1;
}

.phone-icons {
  display: flex;
  gap: 6px;
  font-size: 14px;
}

.phone-content {
  background: white;
  border-radius: 0 0 20px 20px;
  padding: 16px;
  min-height: 500px;
  max-height: 600px;
  overflow-y: auto;
}

/* ============================================
   Notification Cards
   ============================================ */

.notification-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.notification-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.notif-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.notif-content {
  flex: 1;
}

.notif-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.4;
}

.notif-time,
.notif-detail {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.5;
}

.notif-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.notif-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-light);
  background: white;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.notif-btn:hover {
  background: var(--bg-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.notif-btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.notif-btn-primary:hover {
  background: var(--primary-dark);
}

/* Notification Card Variants */
.notification-primary {
  border-right: 4px solid var(--primary);
  background: linear-gradient(to left, rgba(61, 123, 253, 0.03), white);
}

.notification-success {
  border-right: 4px solid var(--success);
  background: linear-gradient(to left, rgba(16, 185, 129, 0.03), white);
}

.notification-warning {
  border-right: 4px solid var(--warning);
  background: linear-gradient(to left, rgba(245, 158, 11, 0.03), white);
}

.notification-info {
  border-right: 4px solid var(--secondary);
  background: linear-gradient(to left, rgba(34, 193, 195, 0.03), white);
}

.notification-feedback {
  border-right: 4px solid #f59e0b;
  background: linear-gradient(to left, rgba(245, 158, 11, 0.03), white);
}

/* ============================================
   Demo Capabilities
   ============================================ */

.demo-capabilities {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.demo-capabilities h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-align: center;
}

.capabilities-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.capabilities-list li {
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.capabilities-list li:last-child {
  border-bottom: none;
}

.badge-dev {
  display: inline-block;
  padding: 4px 10px;
  background: var(--warning-light);
  color: var(--warning);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-right: 8px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  .demo-phones-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .phone-mock {
    width: 100%;
    max-width: 360px;
  }

  .demo-daily-section {
    padding: 40px 16px;
  }

  .demo-daily-header h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .phone-content {
    min-height: 400px;
    max-height: 500px;
  }

  .notification-card {
    padding: 12px;
  }

  .notif-icon {
    font-size: 24px;
  }

  .notif-title {
    font-size: 14px;
  }
}

/* ============================================
   דמו Badge
   ============================================ */

.demo-badge {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-left: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.phone-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ============================================
   Contact Section (Visual Mock)
   ============================================ */

.contact-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 0 24px;
}

.contact-intro {
  text-align: center;
  margin-bottom: 40px;
}

.contact-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-intro h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.contact-intro p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-form-mock {
  background: white;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.form-field-mock {
  margin-bottom: 24px;
}

.form-field-mock label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.input-mock {
  width: 100%;
  height: 44px;
  background: #f8f9fa;
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 0 16px;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
  cursor: not-allowed;
}

.select-mock {
  justify-content: space-between;
}

.textarea-mock {
  height: 120px;
  padding: 12px 16px;
}

.btn-mock {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.btn-primary-mock {
  background: linear-gradient(135deg, #ccc, #999);
  color: white;
}

.mock-hint {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
}

.contact-note {
  margin-top: 24px;
  padding: 16px;
  background: var(--bg-soft);
  border-right: 4px solid var(--primary);
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.contact-note strong {
  color: var(--text-primary);
}

.contact-note a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-note a:hover {
  text-decoration: underline;
}

/* Task 2: Inline demo badge for headers */
.demo-badge-inline {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(61, 123, 253, 0.1);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-right: 8px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}

/* Task 2: Navigation icons */
.nav-icon {
  width: 18px;
  height: 18px;
  margin-left: 6px;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.nav-btn:hover .nav-icon {
  opacity: 1;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Task 4: Flow Diagram */
.flow-diagram-container {
  max-width: 1000px;
  margin: 60px auto 80px;
  padding: 40px 20px;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.flow-diagram {
  width: 100%;
  height: auto;
  display: block;
}

/* Flow Boxes */
.flow-box {
  fill: #f8f9fa;
  stroke: #3d7bfd;
  stroke-width: 2;
}

.therapist-box {
  stroke: #22c1c3;
}

.treatment-box {
  fill: #e3f2fd;
  stroke: #1976d2;
  stroke-width: 2.5;
}

.optional-box {
  fill: #fff8e1;
  stroke: #f59e0b;
  stroke-width: 2;
  stroke-dasharray: 5,5;
}

.flow-box-small {
  fill: #fafafa;
  stroke: #9e9e9e;
  stroke-width: 1.5;
}

/* Match Circle */
.match-circle {
  fill: linear-gradient(135deg, #3d7bfd, #22c1c3);
  fill: #3d7bfd;
  stroke: #22c1c3;
  stroke-width: 4;
  filter: drop-shadow(0 4px 12px rgba(61, 123, 253, 0.3));
}

/* Text Styles */
.flow-text {
  fill: #212529;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  text-anchor: middle;
}

.flow-text-bold {
  fill: #1976d2;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 700;
  text-anchor: middle;
}

.flow-text-small {
  fill: #f59e0b;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
}

.flow-text-xs {
  fill: #666;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  text-anchor: middle;
}

.match-text-main {
  fill: white;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-anchor: middle;
}

.match-text-sub {
  fill: white;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 600;
  text-anchor: middle;
}

.flow-note {
  fill: #666;
  font-family: var(--font-primary);
  font-size: 12px;
  font-style: italic;
  text-anchor: start;
}

/* Arrows */
.flow-arrow {
  fill: none;
  stroke: #666;
  stroke-width: 2;
}

.flow-arrow-head {
  fill: #666;
}

.flow-arrow-dashed {
  fill: none;
  stroke: #999;
  stroke-width: 1.5;
  stroke-dasharray: 4,4;
}

.flow-arrow-thin {
  fill: none;
  stroke: #999;
  stroke-width: 1.5;
}

.flow-arrow-head-thin {
  fill: #999;
}

/* Caption */
.diagram-caption {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .flow-diagram-container {
    padding: 20px 10px;
  }
  
  .flow-text {
    font-size: 10px;
  }
  
  .match-text-main {
    font-size: 16px;
  }
}

/* Task 6: Contact Details Block */
.contact-details-block {
  margin-top: 40px;
  padding: 32px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.contact-details-block h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-align: center;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.contact-method:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(61, 123, 253, 0.1);
  transform: translateY(-2px);
}

.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-method-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-value:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-details-block {
    padding: 20px;
  }
  
  .contact-method {
    padding: 12px;
  }
}
