/* -------------------------------------------------------------
   Global base styles set the futuristic healthcare canvas
-------------------------------------------------------------- */
:root {
  --bg: #f0f7ff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --cyan: #0ea5e9;
  --blue: #0284c7;
  --outline: rgba(14, 165, 233, 0.15);
  font-size: 16px;
}

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

body {
  margin: 0;
  font-family: 'Inter', 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

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

button {
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.page-gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 40% 30%, rgba(14, 165, 233, 0.05), transparent 55%),
    radial-gradient(circle at 70% 70%, #ffffff, transparent 60%),
    #f0f7ff;
  z-index: -2;
}

.hero {
  position: relative;
  padding: 2rem clamp(1rem, 5vw, 4rem) 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--blue);
  flex-shrink: 0;
  margin-left: -2rem;
  z-index: 101; /* Ensure logo stays above menu on mobile if needed */
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  padding: 0;
  z-index: 101;
  cursor: pointer;
  border: none;
}

.bar {
  width: 100%;
  height: 3px;
  background-color: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Nav Menu Container */
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.primary-btn {
  background: linear-gradient(120deg, #0ea5e9, #38bdf8);
  color: #ffffff;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 40px rgba(14, 165, 233, 0.25);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

/* Mobile Nav Styles */
@media (max-width: 900px) {
  .logo {
    margin-left: 0;
  }
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-left: 0;
    z-index: 100;
  }

  .nav-menu.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1rem;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .primary-btn, .ghost-btn {
    width: 100%;
    text-align: center;
  }

  /* Hamburger Animation */
  .hamburger.is-active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .hamburger.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.is-active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

.hero-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1rem;
}

.glow-text {
  color: var(--cyan);
  text-shadow: none; /* Removed glow for light theme */
  font-weight: 700;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.trust-logos .dots {
  display: flex;
  gap: 0.4rem;
}

.trust-logos .dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.2);
}

.hero-visual {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
}

.visual-3d-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  transform-style: preserve-3d;
  perspective: 1200px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.visual-dashboard {
  width: 100%;
  display: block;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transform: rotateY(-5deg) rotateX(5deg) scale(1.1);
  transition: transform 0.1s ease-out;
}

.visual-card {
  position: relative;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transform: rotateY(-5deg) rotateX(5deg);
  z-index: 2;
}

@media (max-width: 900px) {
  /* Removed specific positioning for visual-card as it's now stacked */
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 600;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
  position: relative;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 3rem;
}

.process {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
}

.workflow-visual {
  background: radial-gradient(circle at 50% -10%, rgba(14, 165, 233, 0.05), transparent 55%);
  padding-top: clamp(1rem, 3vw, 1.8rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.workflow-stage {
  position: relative;
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: clamp(1rem, 3vw, 1.8rem);
  min-height: 520px;
}

.workflow-visual .section-heading {
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
}

.wireframe-panel {
  flex: 1 1 280px;
  max-width: 340px;
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #ffffff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--blue);
  margin-bottom: 1.25rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.3);
}

.panel-body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
}

.mouse-cursor {
  position: absolute;
  width: 32px;
  height: 32px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.85);
  background: url('assets/mouse-pointer.svg') center/contain no-repeat;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
  transform-origin: top left;
}

.click-target {
  position: relative;
}

.login-card,
.dashboard-card,
.ohah-dashboard,
.referral-card {
  border: 1px dashed rgba(14, 165, 233, 0.3);
  border-radius: 18px;
  padding: 1.1rem;
  background: #f8fafc;
}

.field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.field:last-child {
  margin-bottom: 0;
}

.label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.typing-mask {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid var(--cyan);
  padding-right: 4px;
  width: 0;
}

.mask {
  letter-spacing: 0.3em;
}

.wire-btn {
  background: transparent;
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: var(--text);
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.dashboard-card .mini-label,
.referral-card .mini-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.discharge-card,
.patient-form {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: #ffffff;
}

.patient-form {
  margin-top: 1rem;
}

.card-line,
.field-line,
.list-line {
  height: 8px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
}

.card-line.short {
  width: 60%;
}

.field-line.medium,
.list-line.medium {
  width: 65%;
}

.field-line {
  width: 100%;
}

.list-line {
  width: 85%;
}

.status-pill {
  margin-top: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.3);
  font-size: 0.8rem;
  color: var(--cyan);
  background: rgba(14, 165, 233, 0.05);
  text-align: center;
}

.notification-badge {
  align-self: flex-start;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: var(--cyan);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: rgba(14, 165, 233, 0.05);
}

.ohah-dashboard {
  gap: 0.8rem;
}

.decision-card {
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 16px;
  padding: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: #ffffff;
}

.decision-card p {
  margin: 0;
  font-weight: 600;
  color: var(--blue);
}

.decision-card small {
  color: var(--muted);
}

.referral-card p {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.action-row {
  display: flex;
  gap: 0.75rem;
}

.accept-btn {
  border-color: rgba(46, 255, 195, 0.5);
  color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.decline-btn {
  border-color: rgba(255, 112, 112, 0.4);
  color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.workflow-connector {
  position: absolute;
  width: 320px;
  height: 220px;
  pointer-events: none;
  /* Darker drop shadow for visibility on white */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

#connector-one {
  left: 22%;
  top: -40px;
}

#connector-two {
  right: 20%;
  bottom: -50px;
}

.connector-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

@media (max-width: 1100px) {
  .workflow-stage {
    flex-direction: column;
    align-items: center;
  }
  .workflow-connector {
    position: static;
    width: 100%;
    height: 160px;
  }
}

.process-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  position: relative;
}

.process-line {
  position: absolute;
  top: -1rem;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.3), transparent);
}

.process-step {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  min-height: 220px;
  position: relative;
  padding-top: 2.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.step-dot {
  position: absolute;
  top: -20px;
  left: 1.6rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--blue);
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.4);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.process-step.is-active {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.1);
}

.process-step.is-active .step-dot,
.step-dot.is-active {
  background: var(--cyan);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(14, 165, 233, 0.4);
  border-color: var(--cyan);
}

.demo {
  display: flex;
  justify-content: center;
}

.demo-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  width: 100%;
  max-width: 1100px;
}

.demo-3d-container {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  perspective: 1200px;
}

.demo-dashboard {
  width: 100%;
  display: block;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.1s ease-out;
}

.demo-visual {
  position: relative;
  padding: 3rem;
  border-radius: 36px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.demo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.badge {
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  font-size: 0.85rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.5);
}

.demo-description ul {
  list-style: none;
  padding: 0;
}

.demo-description li {
  margin-bottom: 0.75rem;
  color: var(--muted);
  position: relative;
  padding-left: 1.5rem;
}

.demo-description li::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  left: 0;
  top: 0.6rem;
}

.ai-engine {
  background: radial-gradient(circle at 30% 20%, rgba(14, 165, 233, 0.05), transparent 50%);
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  align-items: center;
}

.ai-orb {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto;
}

.orb-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2), transparent 70%);
  filter: blur(35px);
}

.orb-core {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 30px rgba(14, 165, 233, 0.05);
  text-align: center;
}

.ai-counter {
  font-size: 3.5rem;
  color: var(--cyan);
  margin: 0.5rem 0;
  font-weight: 700;
}

.ai-insights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.insight-card {
  padding: 1.5rem;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.insight-card span {
  color: var(--muted);
}

.insight-card strong {
  font-size: 2rem;
  display: block;
  margin-top: 0.5rem;
  color: var(--cyan);
}

.ai-lottie lottie-player {
  width: 240px;
  height: 240px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.metric-card {
  padding: 1.75rem;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.metric-card strong {
  font-size: 3rem;
  display: block;
  margin: 0.4rem 0;
  color: var(--cyan);
}

.footer {
  padding: 3rem clamp(1rem, 5vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: #ffffff;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  flex: 1 1 auto;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-note {
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 12, 0.4);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 460px;
  width: 90%;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.modal-lead {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.modal-content label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.modal-content input {
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #f8fafc;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-size: 1rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal .primary-btn.full-width {
  width: 100%;
  text-align: center;
}

.form-feedback {
  min-height: 1.5rem;
  font-size: 0.9rem;
  color: var(--cyan);
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .nav {
    /* flex-direction: column; REMOVED to keep logo and hamburger in one row */
    /* align-items: flex-start; REMOVED */
    align-items: center;
  }
  .hero-visual {
    margin-top: 1.5rem;
  }
  .floating-card {
    position: relative;
    width: auto;
    margin-top: 1rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 1rem;
    overflow-x: hidden; /* Prevent scrollbar from negative margins if calc is slightly off */
  }
  /* Removed existing .nav-links, .nav-actions rules for mobile as they are now in .nav-menu */
  .hero-visual {
    padding: 0;
    margin: 2rem -1rem 0;
    width: calc(100% + 2rem);
  }
  .visual-dashboard, 
  .visual-card {
    width: 100%;
  }
}

/* -------------------------------------------------------------------------- */
/* NEW STYLES FROM WORKFLOW UPDATE (Retaining these but checking colors)      */
/* -------------------------------------------------------------------------- */
.discharge-form {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.6rem;
  background: #f1f5f9;
  border-radius: 8px;
  position: relative;
}

.form-field-incomplete {
  background: #fff1f2; /* Light red/pink tint */
  border: 1px solid rgba(255, 100, 100, 0.2);
}

.field-label {
  color: var(--muted);
  font-size: 0.8rem;
}

.typing-field {
  color: var(--text);
  font-size: 0.95rem;
  min-height: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  display: inline-block;
}

.typing-field::after {
  content: '|';
  color: var(--cyan);
  animation: blink 1s infinite;
  margin-left: 2px;
}

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

.ai-flag {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.7rem;
  color: #b45309; /* Darker orange */
  background: #fef3c7;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  opacity: 0;
  transform: scale(0.8);
}

.form-field-incomplete .ai-flag {
  /* opacity and transform handled by GSAP */
  animation: pulse-flag 2s infinite;
}

@keyframes pulse-flag {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.submit-discharge {
  margin-top: 0.5rem;
  background: var(--cyan);
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  width: 100%;
}

.ai-panel {
  /* Inherits from wireframe-panel */
}

.ai-validation-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.validation-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--blue);
  font-weight: 600;
}

.ai-icon-large {
  font-size: 1.5rem;
}

.validation-results {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.validation-item {
  display: flex;
  gap: 0.8rem;
  padding: 0.6rem;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #f8fafc;
}

.validation-error {
  background: #fef2f2;
  border-left: 3px solid #ef4444;
}

.validation-success {
  background: #f0fdf4;
  border-left: 3px solid #22c55e;
}

.validation-icon {
  font-size: 1.1rem;
}

.text-message-notification {
  margin-top: 1rem;
  background: #ffffff;
  border-radius: 12px;
  padding: 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.message-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.message-bubble {
  background: #eff6ff;
  padding: 0.8rem;
  border-radius: 12px;
  border-top-left-radius: 2px;
  font-size: 0.85rem;
  color: var(--text);
}

.message-time {
  display: block;
  text-align: right;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.readiness-panel {
  /* Inherits */
}

.readiness-card {
  background: #ffffff;
  padding: 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.readiness-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 1rem;
}

.readiness-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.readiness-date {
  text-align: center;
  padding: 0.8rem;
  background: #f0f9ff;
  border-radius: 12px;
  border: 1px solid rgba(14, 165, 233, 0.1);
}

.readiness-date strong {
  display: block;
  font-size: 1.2rem;
  color: var(--text);
}

.readiness-date small {
  color: var(--muted);
  font-size: 0.8rem;
}

.readiness-factors {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.factor-item {
  display: flex;
  justify-content: space-between;
}

.factor-value.positive { color: #16a34a; font-weight: 600; }
.factor-value.pending { color: #ca8a04; }
.factor-value.warning { color: #dc2626; font-weight: 600; }

.readiness-confidence {
  margin-top: 0.5rem;
}

.confidence-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  width: 0%;
}

.readiness-confidence span {
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
  text-align: right;
}

.insight-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
  line-height: 1.3;
}

.confidence-highlight {
  color: #16a34a; /* Green for success */
  font-weight: 600;
}

.mobile-connector-line {
  display: none;
  width: 2px;
  height: 60px;
  background: rgba(14, 165, 233, 0.3);
  position: relative;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .workflow-stage {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .wireframe-panel {
    width: 100%;
    max-width: 500px;
  }
  .workflow-connector {
    display: none;
  }
  .mobile-connector-line {
    display: block;
  }
}
@media (max-width: 600px) {
  .wireframe-panel {
    overflow: visible;
    height: auto;
    padding: 1rem;
  }
  
  .workflow-stage {
    padding: 0 1rem;
  }
  
  .field, .typing-field {
    font-size: 0.85rem;
  }
  
  .field {
    flex-wrap: wrap; /* Allow wrapping if really needed, though typing might break */
    gap: 0.25rem;
  }
  
  .label {
    flex-shrink: 0;
  }
}
