/*
Theme Name: PathToHope Telepsychiatry
Theme URI: https://pathtohopewellnessbh.com
Author: PathToHope Team
Author URI: https://pathtohopewellnessbh.com
Description: Custom WordPress theme for PathToHope Wellness and Behavioral Health - Online psychiatry services in Texas
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pathtohope
*/

/* ============================================
   CSS VARIABLES & DESIGN SYSTEM
   ============================================ */
:root {
  /* Primary Colors */
  --primary: #4A6FA5;
  --primary-dark: #3A5A8C;
  --primary-light: #6B8FC7;
  
  /* Accent Colors */
  --secondary: #F4A261;
  --accent: #2A9D8F;
  --success: #48BB78;
  --warning: #ED8936;
  --danger: #E53E3E;
  
  /* Text Colors */
  --text-primary: #2D3748;
  --text-secondary: #718096;
  --text-light: #A0AEC0;
  
  /* Background Colors */
  --bg-white: #FFFFFF;
  --bg-light: #F7FAFC;
  --bg-gray: #EDF2F7;
  --border: #E2E8F0;
  
  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Font Sizes */
  --h1-size: clamp(2rem, 5vw, 3.5rem);
  --h2-size: clamp(1.5rem, 4vw, 2.5rem);
  --h3-size: clamp(1.25rem, 3vw, 1.75rem);
  --body-size: 1.125rem;
  --small-size: 0.875rem;
  
  /* Line Height */
  --line-height: 1.6;
  
  /* Spacing (8px base) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  
  /* Chatbot Colors */
  --chatbot-primary: #4A6FA5;
  --chatbot-primary-dark: #3A5A8C;
  --chatbot-bg: #ffffff;
  --chatbot-text: #2D3748;
  --chatbot-bot-bg: #F7FAFC;
  --chatbot-user-bg: #4A6FA5;
  --chatbot-border: #E2E8F0;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--line-height);
  color: var(--text-primary);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }

p {
  margin-bottom: var(--space-3);
  color: var(--text-secondary);
}

.lead {
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.7;
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container-narrow {
  max-width: 800px;
}

.section {
  padding: var(--space-6) 0;
}

.section-light {
  background-color: var(--bg-light);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) 0;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.site-logo span {
  color: var(--secondary);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-4);
}

.main-nav a {
  color: var(--text-primary);
  font-weight: 500;
  padding: var(--space-1) 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.phone-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 6px rgba(74, 111, 165, 0.2);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(74, 111, 165, 0.3);
  color: white;
}

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

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--bg-light) 0%, #E8F0F8 100%);
  padding: var(--space-7) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(74, 111, 165, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: var(--radius-full);
  font-size: var(--small-size);
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.badge::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

.hero h1 {
  margin-bottom: var(--space-3);
}

.hero h1 .highlight {
  color: var(--primary);
}

.hero-subheadline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.social-proof {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--small-size);
  color: var(--text-secondary);
}

.stars {
  color: #F4A261;
  letter-spacing: 2px;
}

.divider {
  color: var(--border);
}

/* ============================================
   TRUST SIGNALS BAR
   ============================================ */
.trust-signals {
  background: white;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}

.trust-signals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.trust-signal {
  text-align: center;
  padding: var(--space-3);
}

.trust-signal .icon {
  font-size: 2rem;
  margin-bottom: var(--space-2);
}

.trust-signal .label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.trust-signal .sublabel {
  font-size: var(--small-size);
  color: var(--text-secondary);
}

/* ============================================
   CONDITIONS SECTION
   ============================================ */
.conditions-section {
  padding: var(--space-6) 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-5);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.condition-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

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

.condition-card .icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-2);
}

.condition-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.condition-card p {
  font-size: var(--small-size);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.condition-card .link-text {
  color: var(--primary);
  font-weight: 600;
  font-size: var(--small-size);
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process-section {
  background: var(--bg-light);
  padding: var(--space-6) 0;
}

.process-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: var(--space-3);
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 auto var(--space-2);
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-1);
}

.step p {
  font-size: var(--small-size);
  color: var(--text-secondary);
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
}

/* ============================================
   PROVIDER SECTION
   ============================================ */
.provider-section {
  padding: var(--space-6) 0;
}

.provider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}

.provider-content h2 {
  margin-bottom: var(--space-3);
}

.credentials-list {
  list-style: none;
  margin: var(--space-3) 0;
}

.credentials-list li {
  padding: var(--space-1) 0;
  color: var(--text-secondary);
}

.credentials-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  margin-right: var(--space-1);
}

.provider-image {
  position: relative;
}

.provider-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.verified-badge {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--small-size);
  font-weight: 600;
  color: var(--success);
  box-shadow: var(--shadow-md);
}

/* ============================================
   INSURANCE SECTION
   ============================================ */
.insurance-section {
  background: var(--bg-light);
  padding: var(--space-6) 0;
}

.insurance-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.insurance-logo {
  height: 40px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.insurance-logo:hover {
  opacity: 1;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  max-width: 700px;
  margin: 0 auto var(--space-4);
}

.price-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  position: relative;
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.badge-popular {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--small-size);
  font-weight: 600;
}

.price-header {
  text-align: center;
  margin-bottom: var(--space-3);
}

.price-header h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-1);
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.insurance-note {
  font-size: var(--small-size);
  color: var(--text-secondary);
}

.price-card ul {
  list-style: none;
}

.price-card li {
  padding: var(--space-1) 0;
  font-size: var(--small-size);
  color: var(--text-secondary);
}

.price-card li::before {
  content: '✓';
  color: var(--success);
  margin-right: var(--space-1);
}

.insurance-cta {
  text-align: center;
}

/* ============================================
   LOCATIONS SECTION
   ============================================ */
.locations-section {
  padding: var(--space-6) 0;
}

.cities-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.city-link {
  padding: var(--space-1) var(--space-3);
  background: var(--bg-light);
  border-radius: var(--radius-full);
  font-size: var(--small-size);
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s;
}

.city-link:hover {
  background: var(--primary);
  color: white;
}

.city-link.view-all {
  background: var(--primary);
  color: white;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  background: var(--bg-light);
  padding: var(--space-6) 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2);
  overflow: hidden;
}

.faq-question {
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.2s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-4);
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 var(--space-4) var(--space-3);
  max-height: 500px;
}

.faq-answer p {
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: var(--space-6) 0;
  text-align: center;
  color: white;
}

.final-cta h2 {
  color: white;
  margin-bottom: var(--space-2);
}

.final-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-4);
}

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

.final-cta .btn-primary:hover {
  background: var(--bg-light);
  color: var(--primary-dark);
}

.micro-copy {
  font-size: var(--small-size);
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-3);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--text-primary);
  color: white;
  padding: var(--space-6) 0 var(--space-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.footer-brand .site-logo {
  color: white;
  margin-bottom: var(--space-2);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--small-size);
}

.footer-column h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: var(--space-3);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: var(--space-1);
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--small-size);
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--small-size);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: var(--space-3);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--small-size);
}

/* ============================================
   CONDITION PAGE TEMPLATE
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--bg-light) 0%, #E8F0F8 100%);
  padding: var(--space-6) 0;
}

.page-header h1 {
  margin-bottom: var(--space-2);
}

.breadcrumb {
  display: flex;
  gap: var(--space-1);
  font-size: var(--small-size);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.breadcrumb a {
  color: var(--primary);
}

.condition-content {
  padding: var(--space-6) 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-5);
}

.main-content h2 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
}

.main-content h2:first-child {
  margin-top: 0;
}

.main-content h3 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.main-content ul {
  margin-bottom: var(--space-3);
  padding-left: var(--space-4);
}

.main-content li {
  margin-bottom: var(--space-1);
  color: var(--text-secondary);
}

.info-box {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  padding: var(--space-3);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-3) 0;
}

.info-box.important {
  background: #FFF5E6;
  border-left-color: var(--warning);
}

.medication-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-3) 0;
}

.medication-table th,
.medication-table td {
  padding: var(--space-2);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.medication-table th {
  background: var(--bg-light);
  font-weight: 600;
}

.city-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin: var(--space-3) 0;
}

.city-columns h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
}

.city-columns ul {
  list-style: none;
  padding: 0;
}

.city-columns li {
  padding: var(--space-1) 0;
  font-size: var(--small-size);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}

.sidebar-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
}

.sidebar-cta {
  background: var(--primary);
  color: white;
  text-align: center;
}

.sidebar-cta h3 {
  color: white;
}

.sidebar-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--small-size);
}

.sidebar-cta .btn {
  background: white;
  color: var(--primary);
  margin-top: var(--space-2);
}

/* ============================================
   CHATBOT STYLES
   ============================================ */
.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: var(--font-body);
}

.chatbot-window {
  width: 380px;
  height: 600px;
  background: var(--chatbot-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--chatbot-border);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
}

.chatbot-container.active .chatbot-window {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chatbot-header {
  background: var(--chatbot-primary);
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.header-title {
  font-weight: 600;
  font-size: 16px;
}

.minimize-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s;
}

.minimize-btn:hover {
  background: rgba(255,255,255,0.3);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #F7FAFC;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  max-width: 85%;
  animation: slideIn 0.3s ease;
}

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

.message.bot {
  align-self: flex-start;
}

.message.user {
  align-self: flex-end;
  margin-left: auto;
}

.message-content {
  background: white;
  padding: 14px 18px;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  line-height: 1.5;
  color: var(--chatbot-text);
}

.message.user .message-content {
  background: var(--chatbot-primary);
  color: white;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 4px;
}

.message-content p {
  margin: 0 0 8px 0;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-replies button {
  background: white;
  border: 1.5px solid var(--chatbot-primary);
  color: var(--chatbot-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-replies button:hover {
  background: var(--chatbot-primary);
  color: white;
  transform: translateY(-1px);
}

.chatbot-input {
  padding: 16px 20px;
  background: white;
  border-top: 1px solid var(--chatbot-border);
  display: flex;
  gap: 10px;
}

#chat-input {
  flex: 1;
  border: 1.5px solid var(--chatbot-border);
  border-radius: 24px;
  padding: 10px 18px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

#chat-input:focus {
  border-color: var(--chatbot-primary);
}

#chat-input:disabled {
  background: #F7FAFC;
  cursor: not-allowed;
}

#send-btn {
  background: var(--chatbot-primary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

#send-btn:hover:not(:disabled) {
  background: var(--chatbot-primary-dark);
  transform: scale(1.05);
}

#send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chatbot-footer {
  padding: 8px 20px;
  background: white;
  text-align: center;
  border-top: 1px solid var(--chatbot-border);
}

.chatbot-footer small {
  color: #718096;
  font-size: 12px;
}

.chatbot-launcher {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--chatbot-primary);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(74, 111, 165, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  z-index: 1;
}

.chatbot-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 111, 165, 0.4);
}

.chatbot-container.active .chatbot-launcher {
  display: none;
}

/* Calendar Widget */
.calendar-widget {
  background: white;
  border: 2px solid var(--chatbot-primary);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
  text-align: center;
}

.calendar-widget h4 {
  margin: 0 0 12px 0;
  color: var(--chatbot-primary);
}

.time-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.time-slot {
  padding: 8px;
  border: 1px solid var(--chatbot-border);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.book-btn {
  background: var(--chatbot-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: white;
  border-radius: 18px;
  width: fit-content;
  margin-bottom: 8px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: #CBD5E0;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

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

/* Custom scrollbar */
.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: #CBD5E0;
  border-radius: 3px;
}

/* Crisis Alert */
.crisis-alert {
  background: #FED7D7;
  border: 1px solid #FC8181;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.crisis-alert h4 {
  color: #C53030;
  margin-bottom: 8px;
}

.crisis-alert p {
  color: #742A2A;
  font-size: 14px;
  margin-bottom: 12px;
}

.crisis-alert a {
  color: #C53030;
  font-weight: 600;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
  .conditions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .trust-signals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    margin-top: var(--space-4);
  }
}

@media (max-width: 768px) {
  .hero-ctas {
    flex-direction: column;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }
  
  .conditions-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-signals-grid {
    grid-template-columns: 1fr;
  }
  
  .process-steps {
    flex-direction: column;
  }
  
  .step-arrow {
    transform: rotate(90deg);
  }
  
  .provider-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-cards {
    grid-template-columns: 1fr;
  }
  
  .city-columns {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .main-nav {
    display: none;
  }
  
  .chatbot-container {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }
  
  .chatbot-window {
    width: 100%;
    height: calc(100vh - 100px);
    position: fixed;
    bottom: 80px;
    right: 0;
    left: 0;
    margin: 0 auto;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

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