:root {
    /* 🎨 BRAND COLORS */
    --stem-color-ash: #ECE8E0;
    --stem-color-vanilla: #FFFCF4;
    --stem-color-chocolate: #291E1C;
    --stem-color-espresso: #40312E;
    --stem-color-driftwood: #847971;
    --stem-color-sandstone: #C5BEB6;

    --stem-color-sky: #CCDFFF; 
    --stem-color-ocean: #2F3C50; 
    --stem-color-deepsea: #04192A;
    --stem-color-green: #4CAF50; /* Standard green for success operations */
    --stem-color-dark-green: #45a049; /* Darker green for hover states */

    --stem-color-surface: var(--stem-color-vanilla);
    --stem-color-background: var(--stem-color-sandstone);
    --stem-color-border: var(--stem-color-sandstone);
    --stem-color-white: var(--stem-color-vanilla);
    --stem-color-success: var(--stem-color-green);
    --stem-color-warning: var(--stem-color-ocean);
}

body {
  background-color: var(--stem-color-sandstone); /* bg-white */
}

.agreement-card {
  max-width: 48rem; /* max-w-3xl */
  margin-left: auto; /* mx-auto */
  margin-right: auto; /* mx-auto */
  padding: 1.5rem; /* p-6 */
  background-color: var(--stem-color-vanilla); /* bg-white */
  border-radius: 0.5rem; /* rounded-lg */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* simplified shadow-xl */

}

.agreement-card a {
  background-color: transparent;
  border: none;
}

@media (min-width: 768px) { /* md breakpoint */
  .agreement-card {
    padding: 2.5rem; /* md:p-10 */
    margin-top: 3rem; /* md:my-12 */
    margin-bottom: 3rem; /* md:my-12 */
  }
}

/* Header */
.agreement-header {
  margin-bottom: 2rem; /* mb-8 */
}

.agreement-header h1 {
  text-transform: uppercase;
  font-size: 1.5rem; /* text-3xl */
  font-weight: 700; /* font-bold */
  color: var(--stem-color-chocolate); /* text-[--stem-color-chocolate] */
  margin-bottom: 1rem; /* mb-4 */
}

@media (min-width: 768px) { /* md breakpoint */
  .agreement-header h1 {
    font-size: 2rem; /* md:text-4xl */
  }
}

.agreement-header p {
  font-size: 1.125rem; /* text-lg */
  color: var(--stem-color-espresso); /* text-[--stem-color-espresso] */
}

/* Table of Contents */
.agreement-toc {
  background-color: var(--stem-color-ash); /* bg-[--stem-color-ash] */
  padding: 1.5rem; /* p-6 */
  border-radius: 0.5rem; /* rounded-lg */
  margin-bottom: 2.5rem; /* mb-10 */
  border: 1px solid var(--stem-color-sandstone); /* border border-[--stem-color-sandstone] */
}

.agreement-toc h2 {
  font-size: 1.25rem; /* text-xl */
  font-weight: 600; /* font-semibold */
  margin-bottom: 1rem; /* mb-4 */
  color: var(--stem-color-chocolate); /* text-[--stem-color-chocolate] */
}

.agreement-toc ol {
  list-style-type: decimal; /* list-decimal */
  list-style-position: inside; /* list-inside */
  margin-bottom: 0.5rem; /* space-y-2 */
}

.agreement-toc a {
  color: var(--stem-color-ocean); /* text-[--stem-color-ocean] */
  font-weight: 500; /* font-medium */
}

.agreement-toc a:hover {
  color: var(--stem-color-deepsea); /* hover:text-[--stem-color-deepsea] */
  text-decoration: underline; /* hover:underline */
}

/* Main Content Sections */
.agreement-content-sections {
  margin-bottom: 2rem; /* space-y-8 (for direct children) */
}

.agreement-content-sections section {
  margin-bottom: 2rem; /* space-y-8 (for direct children) */
}

/* Section Headings (h2) */
.agreement-section-heading {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 600; /* font-semibold */
  margin-bottom: 0.75rem; /* mb-3 */
  padding-bottom: 0.5rem; /* pb-2 */
  border-bottom: 1px solid var(--stem-color-sandstone); /* border-b border-[--stem-color-sandstone] */
  color: var(--stem-color-chocolate); /* text-[--stem-color-chocolate] */
}

/* Paragraphs (p) */
.agreement-paragraph {
  margin-bottom: 1rem; /* mb-4 */
}

.agreement-list {
  list-style-type: disc; /* list-disc */
  list-style-position: outside; /* list-outside */
  margin-left: 1.5rem; /* ml-6 */
  margin-bottom: 0.5rem; /* space-y-2 */
}

.agreement-list-nested {
  list-style-type: none; /* list-none */
  margin-left: 1.5rem; /* ml-6 */
  margin-bottom: 0.25rem; /* space-y-1 */
  margin-top: 0.5rem; /* mt-2 */
}

/* Emergency Care Callout Box */
.emergency-callout {
  border-left: 4px solid #ef4444; /* border-l-4 border-red-500 */
  background-color: #fef2f2; /* bg-red-50 */
  padding: 1rem; /* p-4 */
  border-radius: 0.375rem; /* rounded-md */
  margin-top: 1rem; /* my-4 */
  margin-bottom: 1rem; /* my-4 */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
}

.emergency-callout p.title {
  font-weight: 600; /* font-semibold */
  color: #991b1b; /* text-red-800 */
  margin-bottom: 0.5rem; /* mb-2 */
}

.emergency-callout p {
  color: #b91c1c; /* text-red-700 */
}

.agreement-italic {
  font-style: italic; /* italic */
  color: var(--stem-color-driftwood); /* text-[--stem-color-driftwood] */
}

/* Acceptance Block */
.agreement-acceptance-block {
  padding: 1rem; /* p-4 */
  background-color: #f9fafb; /* bg-gray-50 */
  border: 1px solid var(--stem-color-sandstone); /* border border-[--stem-color-sandstone] */
  border-radius: 0.5rem; /* rounded-lg */
  font-style: italic; /* italic */
  color: var(--stem-color-driftwood); /* text-[--stem-color-driftwood] */
}
/* Date Selector Container */
.date-selector-component {
  width: 100%;
  margin-bottom: 20px;
}

.date-tabs-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

/* The Scrollable Area */
.date-tabs-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 4px 16px 4px; /* Padding bottom for shadow/focus visibility */
  width: 100%;
  
  /* Hide scrollbar for Chrome/Safari/Opera */
  -webkit-overflow-scrolling: touch;
}
.date-tabs-container::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.date-tabs-container {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.date-tab-scroll-btn {
  border: 0px;
  background: transparent;
  font-size: var(--stem-text-xl);
}

/* Individual Date Card */
.date-tab-card {
  flex: 0 0 auto; /* Don't shrink */
  width: 84px;
  height: 117px;
  background: #ffffff;
  border: 1px solid var(--stem-color-border);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--stem-color-driftwood);
}

.date-tab-card:hover {
  border-color: var(--stem-color-sandstone);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Active State (Dark Blue) */
.date-tab-card.active {
  background-color: #1e293b; /* Slate-800 matches screenshot */
  border-color: #1e293b;
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(30, 41, 59, 0.3);
}

/* Typography inside card */
.date-tab-day {
  font-size: var(--stem-text-md);
  font-weight: 400;
  text-transform: uppercase;
  opacity: 0.9;
  line-height: 2.0;
}
.date-tab-month {
  font-size: var(--stem-text-md);
  font-weight: 1000;
  line-height: 1;
}
.date-tab-num {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.5;
}

/* --- Layout Grid --- */
.completion-layout-grid {
  display: grid;
  grid-template-columns: 400px 1fr; /* Sidebar takes 1.2 parts, Main takes 2 parts */
  align-items: start;
  padding: 20px 0;
  border-top: 2px solid var(--stem-color-driftwood);
  margin-top: 40px;
}

/* --- Layout Grid --- */
.appointment-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* Sidebar takes 1.2 parts, Main takes 2 parts */
  gap: 40px;
  align-items: start;
  padding: 20px 0;
  border-top: 2px solid var(--stem-color-driftwood);
  margin-top: 40px;
}


/* Sidebar Styles */
.layout-sidebar {
  position: sticky; /* Keep steps visible while scrolling dates */
  top: 20px;
}

/* --- Vertical Flow Component --- */
.vertical-flow-container {
  padding: 40px; /* Add some padding to the right for spacing */
  max-width: 420px;
}

.flow-back-link {
  display: flex;
  align-items: center;
  color: var(--stem-color-driftwood);
  text-decoration: none;
  font-size: var(--stem-text-md);
  font-weight: 600;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.flow-steps-list {
  display: flex;
  flex-direction: column;
  gap: 24px; /* Space between steps */
  margin-bottom: 40px;
}

.flow-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--stem-text-lg); /* Large text as shown in screenshot */
  color: var(--stem-color-sandstone);
  transition: color 0.3s ease;
}

.flow-step-item.completed {
  color: var(--stem-color-sandstone);
}


/* Active Step Description (The heading below the back button) */
.flow-active-description {
  font-weight: 400;
  color: var(--stem-color-ocean);
  margin-bottom: 10px;
}
.flow-active-description p {
  font-size: var(--stem-text-md);
  color: var(--stem-color-driftwood);
  line-height: 1.5;
  max-width: 300px;
}
.appointments-layout-main {
  max-width: 800px;
  padding: 40px;
}
.completion-layout-main {
  display: flex;
  gap: 20px;
}

/* --- Mobile Responsiveness --- */
 @media (max-width: 768px) {
  .appointment-layout-grid {
    grid-template-columns: 1fr; /* Stack vertically */
    gap: 20px;
  }

  .layout-sidebar {
    position: static; /* Remove sticky on mobile */
    margin-bottom: 10px;
  }

  /* Compact the steps on mobile to save space */
  .flow-steps-list {
    gap: 15px;
    margin-bottom: 20px;
    overflow-x: auto;
  }
  
  .flow-steps-list .flow-step-item {
    display: none;
  }
  
  .flow-step-item {
    font-size: var(--stem-text-lg); /* Smaller text on mobile */
    white-space: nowrap;
  }
  
  .flow-active-description h1 {
    font-size: var(--stem-text-lg);
  }
  
  .flow-steps-list .flow-active-description,
  .flow-steps-list .appointment-details-sidebar {
    width: 100%;
  }

  .appointments-layout-main {
    max-width: 1200px;
    width: 100%;
    padding: 0 40px;
  }
  
  .completion-layout-grid {
    grid-template-columns: 1fr; /* Stack vertically */
    gap: 20px;
  }
  .completion-layout-main {
    max-width: 1200px;
    width: 100%;
    flex-direction: column;
    padding: 0 40px;
  }
}

/* Triage Flow Textarea Styling */
.triage-container textarea.input {
  resize: none;
  min-height: 200px; /* Ensure a visible height */
}
body {
  margin-top: 50px;
  font-family: sans-serif;
}

.main-nav {
  position: absolute;
  top: 100px;
  left: 100px;
}



table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin-bottom: 20px; /* Added margin to the bottom of tables */
  font-size: 0.9rem;
}

th, td {
  padding: 8px;
}



thead tr {
  background-color: var(--stem-color-ash); /* Applied background color to the entire header row */
}

hr {
  margin-top: 50px;
  margin-bottom: 50px;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 50px;
}

.quick-action-button {
  width: 175px;
}
input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

/* Override Duet Date Picker width constraint */
.duet-date__dialog-content {
  /* Was originally roughly 310px */
  max-width: 420px !important; 
  
  /* Optional: Ensure it doesn't overflow small mobile screens */
  width: 100%; 
}

/* Safety check for the table inside */
.duet-date__table {
  min-width: 100%;
}

.duet-date__input {
  background-color: var(--stem-color-ash);
}

:root {
  --duet-color-primary: var(--stem-color-ocean);
  --duet-color-button: #f5f5f5;
  /* --duet-color-surface: var(--stem-color-ash); */
  --duet-color-border: #ddd;
}
.empty-state-container {
  border: 2px dashed #f0f0f0;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  color: #757575;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.flash-message {
  position: relative;
  margin-bottom: 1rem;
}
.flash-container {
  position: absolute;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  z-index: 9999;
}
.flash-container-login {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  z-index: 9999;
}

.flash-message {
  padding: 15px;
  border-radius: 4px;
  color: #fff;
}

.flash-message.notice {
  background-color: var(--stem-color-ocean);
  color: var(--stem-color-sky);
}

.flash-message.success {
  background-color: var(--stem-color-ocean);
  color: var(--stem-color-sky);

}

.flash-message.alert {
  background-color: var(--stem-color-sky);
  color: var(--stem-text-primary);
}

.flash-message.error {
  background-color: var(--stem-color-sky);
  color: var(--stem-text-primary);
}

.close-flash {
  float: right;
  margin-left: 15px;
  cursor: pointer;
  font-weight: bold;
}
.mobile-nav {
  display: none;
}

.desktop-nav {
  display: block;
}

.nav-button {
  padding: 10px;
  margin: 5px 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--stem-color-chocolate);
  transition: background-color 0.3s ease;
}

.nav-button:hover {
  background-color: var(--stem-color-espresso);
}

.nav-button-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nav-button-icon {
  font-size: 32px;
  padding: 5px 0;
  color: var(--stem-color-vanilla);
}

.nav-button-label {
  font-size: 0.8rem;
  color: var(--stem-color-vanilla);
  margin-top: 5px;
}

.main-content {
  padding-bottom: 70px; /* Adjust based on footer height */
  margin-top: var(--stem-spacing-lg);
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .mobile-nav > div:first-child {
    position: sticky;
    top: 60px; /* Main header height */
    left: 0;
    right: 0;
    z-index: 1000;
  }

  .mobile-nav > div:last-of-type {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px; /* Added horizontal padding */
    border-top: 1px solid #eee;
  }

  .main-content {
    padding-top: 0;
    padding-bottom: 70px; /* Adjust based on footer height */
  }
}
.pharmacy-card {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: pointer;
  }
  
  .pharmacy-card.selected {
    border-color: var(--stem-color-ocean);
    background-color: #f0f8ff;
  }
  
  .pharmacy-name {
    font-weight: bold;
  }
  
  .pharmacy-vicinity {
    color: #666;
  }
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

/**
    * Stem Health Visual Design System CSS
    *
    * This stylesheet is based on the brand guidelines provided in the
    * "Stem Health Visual Design System 250919.pdf" document.
    * It establishes a foundation for typography, color, spacing, and
    * common UI components like cards and buttons.
    *
    * @version 2.0
    * @date October 7, 2025
    */

/* ==========================================================================
    1. ROOT VARIABLES
    ========================================================================== */

:root {
    /* 🎨 BRAND COLORS */
    --stem-color-ash: #ECE8E0;
    --stem-color-vanilla: #FFFCF4;
    --stem-color-chocolate: #291E1C;
    --stem-color-espresso: #40312E;
    --stem-color-driftwood: #847971;
    --stem-color-sandstone: #C5BEB6;

    --stem-color-sky: #CCDFFF; 
    --stem-color-ocean: #2F3C50; 
    --stem-color-deepsea: #04192A;
    --stem-color-green: #4CAF50; /* Standard green for success operations */
    --stem-color-dark-green: #45a049; /* Darker green for hover states */

    --stem-color-surface: var(--stem-color-vanilla);
    --stem-color-background: var(--stem-color-ash);
    --stem-color-border: var(--stem-color-ash);
    --stem-color-white: var(--stem-color-vanilla);
    --stem-color-success: var(--stem-color-green);
    --stem-color-warning: var(--stem-color-ocean);

    /* Text Colors */
    --stem-text-primary: var(--stem-color-chocolate);
    --stem-text-secondary: var(--stem-color-espresso);
    --stem-text-on-dark: var(--stem-color-white);

    --stem-color-header: var(--stem-color-deepsea);

    /* ✒️ TYPOGRAPHY */
    --stem-font-headline: 'Lato', Georgia, serif;
    --stem-font-body: 'Lato', system-ui, -apple-system, sans-serif;
    --stem-font-weight-regular: 400;
    --stem-font-weight-medium: 500;
    --stem-font-weight-bold: 700;

    /* 📐 SPACING & SIZING */
    --stem-spacing-xxs: 0.05rem;  /* 2px */
    --stem-spacing-xs: 0.2rem;  /* 4px */
    --stem-spacing-sm: 0.3rem;   /* 8px */
    --stem-spacing-md: 0.5rem;     /* 16px */
    --stem-spacing-lg: 0.7rem;   /* 24px */
    --stem-spacing-xl: 1.0rem;   /* 40px */
    --stem-spacing-xxl: 1.5rem;    /* 64px */


    /* Text Sizing */
    --stem-text-sm: 12px;
    --stem-text-md: 14px;
    --stem-text-lg: 20px;
    --stem-text-xl: 26px;

    /* Border Radius */
    --stem-radius-sm: 2px;
    --stem-radius-md: 5px;
    --stem-radius-lg: 10px;
    --stem-border-radius: var(--stem-radius-md); /* Generic alias */

    /* Shadows */
    --stem-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); /* Small shadow */
    --stem-shadow: 0 4px 12px rgba(62, 53, 51, 0.08);
    --stem-shadow-lg: 0 8px 24px rgba(62, 53, 51, 0.12);
}

/* ==========================================================================
    3. GLOBAL & RESET STYLES
    ========================================================================== */

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

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

body {
    margin: 0;
    font-family: var(--stem-font-body);
    font-weight: var(--stem-font-weight-regular);
    font-size: 12px;
    line-height: 1.6;
    color: var(--stem-text-primary);
    background-color: var(--stem-color-background);
    padding: 0;
    height: 100vh;
}

/* ==========================================================================
    4. TYPOGRAPHY
    ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--stem-font-headline);
    font-weight: var(--stem-font-weight-regular);
    line-height: 1.2;
    margin: var(--stem-spacing-sm) 0 var(--stem-spacing-md);
}
.stem-title
{
  font-family: var(--stem-font-headline);
  font-weight: var(--stem-font-weight-regular);
  line-height: 1.2;
  margin: var(--stem-spacing-sm) 0 var(--stem-spacing-md);
}

h1 { font-size: 3.5rem; letter-spacing: 0.1em; text-align: left; margin-bottom: var(--stem-spacing-xl); }
h2 { font-size: 20px; margin-bottom: var(--stem-spacing-sm); color: var(--stem-color-espresso); padding-bottom: var(--stem-spacing-xl); border-bottom: 1px solid var(--stem-color-ash); }
h3 { font-size: 18px; border-bottom: 1px solid var(--stem-color-ash); padding-bottom: var(--stem-spacing-xl); margin-bottom: var(--stem-spacing-lg); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; font-family: var(--stem-font-body); font-weight: var(--stem-font-weight-bold); text-transform: uppercase; letter-spacing: 0.05em; }

p { margin-top: 0; margin-bottom: var(--stem-spacing-md); max-width: 75ch; }
p.lead { font-size: 1.25rem; color: var(--stem-text-secondary); }
a { color: var(--stem-color-deepsea); text-decoration: none; transition: opacity 0.2s ease; }
a:hover { opacity: 0.8; text-decoration: underline; }
small { font-size: 0.875rem; color: var(--stem-text-secondary); }
blockquote {
    margin: var(--stem-spacing-lg) 0;
    padding-left: var(--stem-spacing-lg);
    border-left: 3px solid var(--stem-color-pearl);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--stem-text-secondary);
}
ul, ol { padding-left: var(--stem-spacing-lg); }

/* ==========================================================================
    5. COMPONENT STYLES
    ========================================================================== */

/* Card Component */
.stem-card {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--stem-color-border);
    border-radius: var(--stem-radius-lg);
    padding: var(--stem-spacing-lg);
    /* margin: var(--stem-spacing-lg); */
    /* width: 100%; */
}
.stem-card--dark {
    background-color: var(--stem-color-ocean);
    color: var(--stem-text-on-dark);
}
.stem-card--dark h4, .stem-card--dark p { color: var(--stem-text-on-dark); }
.stem-card--accent { border-top: 4px solid var(--stem-color-sandstone); }

/* Button Component */
.stem-btn {
    display: inline-flex; /* Use inline-flex to make the button shrink to fit its content */
    align-items: center; /* Vertically center content */
    justify-content: flex-start; /* Horizontally center content */
    min-height: 2.5rem; /* Ensure a consistent minimum height (e.g., 40px) */
    max-height: 2.5rem;
    font-family: var(--stem-font-body);
    font-weight: var(--stem-font-weight-medium);
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 0 var(--stem-spacing-lg); /* Adjust padding as height is now controlled by min-height */
    border-radius: var(--stem-radius-md);
    transition: all 0.2s ease-in-out; 
    text-decoration: none;
    line-height: 1; /* Normalize line height */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.stem-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* Space between icon and text */
}

.stem-btn iconify-icon {
  font-size: 1.2em; /* Adjust icon size relative to text */
}
.stem-btn--has-icon {
    padding-left: var(--stem-spacing-md);
}

.stem-btn span {
    opacity: 0.8;
}

.stem-btn .stem-btn__icon {
    margin-right: var(--stem-spacing-sm);
    opacity: 0.8;
}
.stem-btn:hover { 
    text-decoration: none; 
}
.stem-btn--primary {
    background-color: var(--stem-color-ocean);
    color: var(--stem-color-vanilla);
    border-color: var(--stem-color-ocean);
}
.stem-btn--primary:hover {
    background-color: var(--stem-color-espresso);
    border-color: var(--stem-text-primary);
    color: var(--stem-color-white);
}
.stem-btn--secondary {
    background-color: var(--stem-color-espresso);
    color: var(--stem-color-vanilla);
    border-color: var(--stem-color-espresso);
}
.stem-btn--secondary:hover { 
    background-color: var(--stem-color-ocean);
    border-color: var(--stem-color-border);
    color: var(--stem-color-white);
}
.stem-btn--header {
    background-color: var(--stem-color-ocean);
    color: var(--stem-text-on-dark);
    border-color: var(--stem-color-sky);
    opacity: 0.5;
}
.stem-btn--header:hover { 
    background-color: var(--stem-color-ocean);
    border-color: var(--stem-text-on-dark);
    opacity: 0.9;

}

.stem-btn--light {
    background-color: white;
    color: var(--stem-text-primary);
    border-color: var(--stem-color-ash);
}

.stem-btn--light:hover {
    border-color: var(--stem-color-sandstone);
    color: var(--stem-text-primary);
}

.stem-btn--success {
    background-color: var(--stem-color-success); /* This will be green */
    color: var(--stem-color-white);
    border-color: var(--stem-color-success);
}

.stem-btn--success:hover {
    background-color: var(--stem-color-dark-green);
    border-color: var(--stem-color-dark-green);
    color: var(--stem-color-white);
}

.stem-button-flex-item {
    flex: 1 0 150px; /* Ensure a base width and allow growth */
    text-align: center;
}

/* Status List Component */
.status-list { list-style: none; padding: 0; margin: 0; }
.status-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--stem-spacing-md);
    border-radius: var(--stem-radius-md);
    background-color: var(--stem-color-background);
    margin-bottom: var(--stem-spacing-sm);
}
.status-list__item p { margin: 0; font-weight: var(--stem-font-weight-medium); }
.status-list__tag {
    font-size: 0.75rem;
    font-weight: var(--stem-font-weight-bold);
    padding: var(--stem-spacing-xs) var(--stem-spacing-sm);
    border-radius: var(--stem-radius-sm);
    text-transform: uppercase;
}
.status-list__tag--confirmed { background-color: var(--stem-color-success); color: white; }
.status-list__tag--scheduled { background-color: var(--stem-color-warning); color: white; }
.status-list__tag--upcoming { background-color: var(--stem-color-pearl); color: var(--stem-text-primary); }

/* Social Media Card */
.social-card {
    aspect-ratio: 9 / 16;
    border-radius: var(--stem-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--stem-spacing-lg);
    text-align: center;
    box-shadow: var(--stem-shadow-lg);
    position: relative;
}
.social-card h2, .social-card p { color: var(--stem-color-white); }
.social-card--chocolate { background-color: var(--stem-color-chocolate); }
.social-card--blueberry { background-color: var(--stem-color-deepsea); }
.social-card--image {
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
}
.social-card--image .content {
    background-color: rgba(0,0,0,0.5);
    padding: var(--stem-spacing-md);
    border-radius: var(--stem-radius-md);
}

/* ==========================================================================
    6. MOCKUP LAYOUT & UTILITIES
    ========================================================================== */

.stem-container { 
    width: 100%; 
    height: 100%;
    max-width: none; 
    padding: 0 var(--stem-spacing-md);
}

.stem-container-small {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--stem-spacing-md);
}

.stem-container-form {
    margin-left: auto;
    margin-right: auto;
    max-width: 600px; /* Adjusted for smaller size */
    padding: 20px;
    text-align: left;
    flex: 1;
    padding: var(--stem-spacing-md);
}
.stem-container-login {
    width: 450px; /* Adjusted for smaller size */
    padding: 20px;
    text-align: left;
}
.section { margin-bottom: var(--stem-spacing-xxl); }
.grid { display: grid; gap: var(--stem-spacing-lg); }
.grid--2-col { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4-col { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid--social { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--stem-spacing-lg); }

.color-palette { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--stem-spacing-lg); }
.color-swatch { border-radius: var(--stem-radius-md); padding: var(--stem-spacing-md); border: 1px solid var(--stem-color-border); background: var(--stem-color-surface); }
.color-swatch .swatch { height: 100px; border-radius: var(--stem-radius-sm); margin-bottom: var(--stem-spacing-sm); border: 1px solid rgba(0,0,0,0.05); }
.color-swatch p { margin: 0; font-weight: var(--stem-font-weight-medium); }
.color-swatch span { font-size: 0.875rem; color: var(--stem-text-secondary); font-family: monospace; }

/* Appointment Component Styles */
.appointment-details-grid {
    display: grid;
    grid-template-columns: auto 1fr; /* Icon column (auto) and text column (1fr) */
    align-items: center;
    gap: 4px; /* Small gap between icon and text */
    font-size: 0.75rem; /* Inherit from parent, but can be overridden */
}

.appointment-icon {
    font-size: 1rem; /* Adjust icon size */
    color: inherit; /* Icon color */
    margin-right: var(--stem-spacing-xs); /* Small margin to the right of the icon */
}

.grid-span-all {
    grid-column: 1 / -1; /* Make these items span all columns */
    margin-left: calc(1rem + var(--stem-spacing-xs)); /* Indent to align with text above */
}

.appointment-item {
    width: 100%; /* Static width for the appointment component */
    position: relative; /* Ensure positioning context for absolute children */
}

.appointment-duration-wrapper {
    position: absolute;
    bottom: 10px; /* Adjust as needed */
    right: 10px; /* Adjust as needed */
    font-size: 0.75rem;
    color: var(--stem-text-secondary);
    display: flex;
    align-items: center;
    gap: 4px; /* Small gap between icon and text */
}

br {
  display: block;
  height: var(--stem-spacing-xs);
}

/* Feature Card Component */
.feature-card {
  display: block;
  position: relative;
  background-color: #FFFFFF;
  border-radius: var(--stem-radius-md);
  overflow: hidden;
  text-decoration: none;
  width: 260px; /* Static width for the feature card */
  height: 150px; /* Add a fixed height */
  transition: background-color 0.2s ease-in-out;
  color: var(--stem-color-ocean);
}

.feature-card--sky {
  background-color: var(--stem-color-sky);
}

.feature-card:hover {
  opacity: 0.9;
}

.feature-card iconify-icon {
  color: inherit;
}

.feature-card__content {
  padding: var(--stem-spacing-xl);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
}

.feature-card__title {
  margin: 10px 0px;
  font-size: 14px;
  font-weight: var(--stem-font-weight-bold);
  color: var(--stem-color-ocean);
}

.feature-card__subtext {
  margin: 0;
  font-size: 12px;
}

.feature-card--full-width {
  width: calc(2 * 260px + var(--stem-spacing-md));
  margin-bottom: var(--stem-spacing-md);
}

.feature-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--stem-spacing-md);
  justify-content: flex-start; /* Left-align the flex items */
}

/* Slim Feature Card Component */
.slim-feature-card {
  display: flex;
  align-items: center; /* Re-introduce align-items center for the overall card */
  background-color: #FFFFFF;
  border-radius: var(--stem-radius-md);
  overflow: hidden;
  text-decoration: none;
  width: 100%;
  height: 117px; /* 90px * 1.30 = 117px */
  transition: all 0.2s ease-in-out; /* Changed to all for smoother shadow transition */
  color: var(--stem-color-ocean);
  /* box-shadow: var(--stem-shadow-sm); Removed default shadow */
  padding: 20px; /* Increased padding to 20px */
  position: relative;
}

.slim-feature-card:hover {
  /* background-color: var(--stem-color-ash); Removed background hover effect */
  box-shadow: var(--stem-shadow-sm); /* Add shadow on hover */
  text-decoration: none; /* Remove text underlining on hover */
}

.slim-feature-card__main-content {
  display: flex;
  flex-direction: column;
  gap: var(--stem-spacing-md); /* Increased gap between icon and text to 16px */
  flex-grow: 1;
}

.slim-feature-card__icon-container {
  width: 28px; /* Changed from 32px to 28px */
  height: 28px; /* Changed from 32px to 28px */
  border-radius: 50%;
  background-color: var(--stem-color-ocean);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.slim-feature-card__icon-container iconify-icon {
  color: var(--stem-color-white);
  font-size: 16px; /* Adjusted icon font size to fit smaller circle */
}

.slim-feature-card__text-content { /* Renamed from slim-feature-card__content */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slim-feature-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: var(--stem-font-weight-bold);
  color: var(--stem-color-ocean);
}

.slim-feature-card__subtext {
  margin: 0;
  font-size: 12px;
  color: var(--stem-color-espresso);
}

.slim-feature-card__arrow-container {
  position: absolute;
  right: 20px; /* Adjusted to 20px for padding */
  bottom: 20px; /* Adjusted to 20px for padding */
  top: auto; /* Remove top auto */
  transform: translateY(0); /* Remove transform for bottom positioning */
  font-size: 20px; /* Changed from 24px to 20px */
  color: var(--stem-color-driftwood);
}

@media (min-width: 768px) {
  .feature-cards-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust to fit static width cards */
  }
}

.stem-card-interior {
  width: 100%;
  padding: var(--stem-spacing-lg);
}

.turbo-progress-bar {
  background-color: var(--stem-color-sky);
}

/* Disabled Button State */
.stem-btn[disabled] {
    background-color: var(--stem-color-driftwood);
    cursor: not-allowed;
    opacity: 0.7;
    color: var(--stem-text-on-dark); /* Ensure text is readable on driftwood */
    border-color: var(--stem-color-driftwood);
}

.stem-btn--disabled {
  background-color: var(--stem-color-driftwood);
  opacity: 0.7;
  color: var(--stem-text-on-dark); /* Ensure text is readable on driftwood */
  border-color: var(--stem-color-driftwood);
}



/* Agreement Page Specific Styles */
.agreement-page-wrapper .stem-container {
    margin-left: auto;
    margin-right: auto;
}

/* Password Toggle Component */
.password-input-wrapper {
  display: flex;
  align-items: center;
}

.password-toggle-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: 8px; /* Space between icon and input */
  order: -1; /* Move button to the left */
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
  flex-grow: 1; /* Allow input to take remaining space */
}

.password-toggle-button iconify-icon {
  font-size: 1.5em; /* Make icon larger */
  color: var(--stem-color-espresso); /* Example color, adjust as needed */
  position: relative;
  top: 2px;
}
/* Chat Components - Consolidated */

.chat-window {
    border: 1px solid var(--stem-color-ash); /* Add a light border */
    border-radius: var(--stem-border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    height: 60vh;
    margin: 0 0;
}

.chat-window__header {
    background-color: var(--stem-color-white);
    color: var(--stem-text-primary);
    padding: var(--stem-spacing-md);
    border-bottom: 1px solid var(--stem-color-border);
}

.chat-window__title {
    margin: 0;
    font-size: 1rem;
    font-family: var(--stem-font-body);
    text-transform: uppercase;
    text-align: center;
    font-weight: var(--stem-font-weight-bold);
    color: var(--stem-text-secondary);
}

.chat-window__body {
    padding: var(--stem-spacing-md);
    display: flex;
    flex-direction: column;
    background-color: var(--stem-color-white); /* Clean white background */
    color: var(--stem-text-primary); /* Text color for light bg */
    flex-grow: 1;
    overflow-y: auto;
    min-height: 0;
}

.chat-window__footer {
    padding: var(--stem-spacing-md);
    border-top: 1px solid var(--stem-color-border);
    background-color: var(--stem-color-surface);
    display: flex;
    flex-wrap: wrap;
    gap: var(--stem-spacing-sm);
    justify-content: flex-start;
    min-height: 50px;
    flex-shrink: 0;
}

.chat-message {
    display: flex;
    margin-bottom: var(--stem-spacing-sm);
    flex-shrink: 0;
    position: relative; /* Added for edit icon positioning */
}

.chat-message__bubble {
    padding: 0.6rem 1rem;
    border-radius: 20px;
    max-width: 80%;
    line-height: 1.4;
    font-size: 0.95rem;
}

.chat-message--left {
    justify-content: flex-start;
}

.chat-message--left .chat-message__bubble {
    background-color: var(--stem-color-ash);
    color: var(--stem-text-primary);
    border-bottom-left-radius: 5px;
}

.chat-message--right {
    justify-content: flex-end;
}

.chat-message--right .chat-message__bubble {
    background-color: var(--stem-color-ocean);
    color: var(--stem-color-white);
    border-bottom-right-radius: 5px;
}

/* Chat Options Buttons (chips) */
.chat-options-btn {
    width: calc(50% - var(--stem-spacing-sm)*4);
    height: 75px; /* Fixed height for two lines of text (adjust as needed) */
    line-height: 1.0; /* Adjust line-height to fit two lines within height */
    overflow: hidden; /* Hide overflowing text */
    padding: 0.8rem 1rem; /* Adjust vertical padding to center text within fixed height */
    min-height: initial;
    font-size: 0.9rem;
    font-weight: var(--stem-font-weight-medium);
    border-radius: var(--stem-border-radius);
    background-color: var(--stem-color-vanilla);
    color: var(--stem-color-ocean);
    border: 1px solid var(--stem-color-ocean);
    text-align: left; /* Keep text left aligned */
    margin: var(--stem-spacing-sm);
}
.chat-options-btn:hover {
    background-color: var(--stem-color-ocean);
    color: var(--stem-color-white);
    border-color: var(--stem-color-ocean);
}

.chat-options-btn.selected {
    background-color: var(--stem-color-ocean);
    color: var(--stem-color-white);
    border-color: var(--stem-color-ocean);
}

.chat-input-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: var(--stem-spacing-sm);
    width: 100%;
}

.desktop-nav-card.stem-card {
    box-shadow: var(--stem-shadow);
}


/* Chat Text Input */
.chat-text-input-container {
  display: flex;
  width: 100%;
}

.chat-text-input {
  flex-grow: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.chat-send-btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

[data-triage-target="inputArea"] {
  width: 100%;
}

/* Chat Text Input */
.chat-text-input-container {
  display: flex;
  width: 100%;
}

.chat-text-input {
  flex-grow: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.chat-send-btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

[data-triage-target="inputArea"] {
  width: 100%;
}

/* New chat-edit-text-container styles for inside bubble */
.chat-message__bubble {
    position: relative; /* Establish positioning context for absolute children */
    /* original padding, border-radius, etc. retained from existing definition */
}

.chat-edit-text-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85em; /* Increased font size */
    cursor: pointer;
    z-index: 10;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
    background-color: transparent; /* Explicitly no background */
}

.chat-edit-text-container:hover {
    background-color: transparent; /* No background on hover either */
    text-decoration: underline; /* Add underline on hover for interaction */
}

.chat-message--right .chat-message__bubble .chat-edit-text-container {
    right: calc(100% + var(--stem-spacing-md)); /* Moved farther left */
    color: var(--stem-color-chocolate); /* Darker color for visibility */
}

.chat-message--left .chat-message__bubble .chat-edit-text-container {
    left: calc(100% + var(--stem-spacing-md)); /* Moved farther right */
    color: var(--stem-color-chocolate); /* Darker color for visibility */
}

/* Appointment Flow Progress Tracker */
.appointment-flow {
  width: 100%;
  padding: var(--stem-spacing-md);
  background-color: var(--stem-color-surface); /* Using stem-color-surface for consistency */
  border-bottom: 1px solid var(--stem-color-border); /* Using stem-color-border */
  display: flex;
  flex-direction: column;
  gap: var(--stem-spacing-lg);
  align-items: center;
  margin-bottom: var(--stem-spacing-xl);
  box-shadow: var(--stem-shadow-sm); /* Using a small shadow for depth */
  border-radius: var(--stem-border-radius);
}





.appointment-flow__info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--stem-spacing-xxs);
  width: 100%;
}

.appointment-flow__service-name {
  font-size: var(--stem-font-size-lg);
  font-weight: bold;
  color: var(--stem-text-primary); /* Using stem-text-primary */
}

.appointment-flow__appointment-time {
  font-size: var(--stem-font-size-md);
  color: var(--stem-text-secondary); /* Using stem-text-secondary */
}

.agreement-container {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.stem-btn--sidebar {
    max-width: 160px;
    background-color: var(--stem-color-chocolate);
    color: var(--stem-color-sandstone);
    border-color: var(--stem-color-chocolate); /* Ensure border matches background */
}

.stem-btn--sidebar:hover,
.stem-btn--sidebar:focus {
    background-color: var(--stem-color-espresso);
    border-color: var(--stem-color-espresso);
    color: var(--stem-color-sandstone);
}

.stem-btn--sidebar--secondary {
    max-width: 160px;
    background-color: var(--stem-color-espresso);
    color: var(--stem-color-sandstone);
    border-color: var(--stem-color-espresso);
}

.stem-btn--sidebar--secondary:hover,
.stem-btn--sidebar--secondary:focus {
    background-color: var(--stem-color-ocean);
    border-color: var(--stem-color-border);
    color: var(--stem-color-white);
}

/* Client Dashboard Grid */
.client-dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 3fr 2fr; /* Left and right less wide than center */
  gap: var(--stem-spacing-md); /* Use existing spacing variable */
  align-items: start; /* Align cards to the top of their grid cells */
}

.client-dashboard-grid__column {
  display: flex;
  flex-direction: column;
  gap: var(--stem-spacing-md);
}

@media (max-width: 768px) { /* Breakpoint for mobile */
  .client-dashboard-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .feature-card {
    width: calc(50% - 4px); /* Fit two cards on mobile with a small gap */
  }

  .feature-card--full-width {
    width: 100%; /* Ensure full width for full-width cards on mobile */
  }

  .stem-container {
    height: auto;
    padding-bottom: 80px;
  }
}


/* Care Team Section */
.care-team-header {
  display: flex;
  align-items: flex-start; /* Align avatar and info/buttons to the top */
  margin-bottom: var(--stem-spacing-lg);
}

.care-team-avatar {
    margin-right: var(--stem-spacing-md); /* Add spacing between avatar and info/buttons */
}

.care-team-avatar img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
}

.care-team-actions {
  display: flex;
  flex-direction: column; /* Stack name/title and buttons vertically */
  align-items: flex-start; /* Left-align the text */
  gap: var(--stem-spacing-md); /* Space between info and buttons */
}

.care-team-info {
  text-align: left; /* Ensure text is left-aligned */
}

.care-team-name {
  font-size: 14px;
  font-weight: bold;
  margin: 0;
}

.care-team-title {
  font-size: 14px;
  color: var(--stem-text-secondary);
  margin: 0;
}

.care-team-buttons {
    display: flex;
    gap: var(--stem-spacing-lg); /* Space between the buttons */
    margin-top: var(--stem-spacing-sm); /* Space between title and buttons */
}

.care-team-letters {
  margin-top: var(--stem-spacing-lg);
}

.letter-block {
  margin-top: var(--stem-spacing-md);
  margin-bottom: var(--stem-spacing-md);
  padding: var(--stem-spacing-md);
  border-radius: var(--stem-radius-md);
}

.letter-title {
  font-size: 1.1rem;
  font-weight: bold;
  border-bottom: 1px solid var(--stem-color-ash);
  padding-bottom: var(--stem-spacing-sm);
  margin-bottom: var(--stem-spacing-sm);
}

.letter-content {
  font-size: 12px;
  line-height: 1.5;
}

.triage-layout {
  display: flex;
  flex-wrap: wrap; /* Allows items to wrap onto the next line */
  gap: 2rem;
}

.triage-left-column {
  flex: 1; /* Allows the column to grow */
  min-width: 300px; /* Prevents columns from becoming too narrow */
  order: 1; /* Default order for desktop */
}

.triage-right-column {
  flex: 1;
  min-width: 300px;
  order: 2; /* Default order for desktop */
}

@media (max-width: 768px) {
  .triage-layout {
    flex-direction: column;
  }

  .triage-left-column {
    order: 2; /* Chat section appears second on mobile */
  }

  .triage-right-column {
    order: 1; /* "Book Now" section appears first on mobile */
  }
}

@media (max-width: 768px) {
  .mobile-header-content {
    margin-top: 0 !important;
  }
}
.heading-button {
  background-color: var(--stem-color-ash);
  border-radius: var(--stem-radius-md);
  padding: var(--stem-spacing-sm) var(--stem-spacing-md);
  text-transform: uppercase;
  color: var(--stem-color-espresso);
  text-decoration: none;
  font-size: 8px;
  font-weight: var(--stem-font-weight-regular);
}

.heading-with-button {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}


.login-layout {
  display: flex;
  height: 100vh;
}

.stem-container-form {
  flex: 1;
  padding: 20px;
}

.login-image-column {
  flex: 0 0 auto; /* Image column takes only the width needed by its content */
  display: flex;
  justify-content: flex-end; /* Pushes the image to the right */
}


.devise-container {
  flex: 1; /* Allows the column to grow and fill space */
  padding: 20px;
  display: flex;
  justify-content: center; /* Center content vertically */
  align-items: center; /* Center content horizontally */
  position: relative;
}



.onboarding-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.onboarding-input {
  background-color: transparent;
  border-color: var(--stem-color-sandstone);
}





/* Input Component Styles */
.button-group {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.button-group > * {
  margin-right: 10px;
}

.button-group > *:last-child {
  margin-right: 0;
}

.input-container {
  margin-bottom: 10px;
}

.input-label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 600;
}

.input {
  padding: 8px 12px;
  border-radius: 6px;
  border: 2px solid #ddd;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  box-sizing: border-box;
  min-height: 32px;
  width: 100%;
  resize: none;
  overflow: auto;
}

.input-inline {
  width: auto;
}

.input-container-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.checkbox-label {
  margin-left: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.login-text {
  font-size: 0.9rem;
}

.login-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.login-actions > * {
  flex: 1;
  text-align: center;
}

.chat-skip-btn {
  text-align: center;
}

.fc-scroller {
  overflow-y: hidden !important;
}

.header-with-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fc-daygrid-day-frame {
  padding: 0 !important; /* Remove default padding */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Tabs */
.tabs-container {
  margin-top: var(--stem-spacing-md);
  font-size: var(--stem-text-md)
}

.tabs-nav {
  display: flex;
  gap: var(--stem-spacing-xl);
  border-bottom: 1px solid var(--stem-color-pearl);
  margin-bottom: var(--stem-spacing-md);
}

.tab-button-wrapper {
  border-bottom: 2px solid transparent;
  padding: 0 var(--stem-spacing-sm);
  margin-bottom: -1px;
  text-align: center;
}

.tab-button {
  background-color: transparent;
  border: none;
  padding: var(--stem-spacing-sm) 0;
  cursor: pointer;
  font-size: var(--stem-font-size-md);
  color: var(--stem-color-chocolate);
  transition: all 0.2s ease-in-out;
  text-align: center;
  border-bottom: 2px solid transparent;
}

.tab-button:hover {
  color: var(--stem-color-deepsea);
  border-bottom-color: var(--stem-color-sky);
}

.tab-button.active {
  color: var(--stem-color-deepsea);
  /* font-weight: bold; */
  border-bottom-color: var(--stem-color-deepsea);
}

.tab-button-wrapper.active {
  /* border-bottom-color: var(--stem-color-deepsea); */
}

.tab-panel {
  display: none;
  font-size: var(--stem-text-sm)
}

.tab-panel.active {
  display: block;
}

/* Password Validation Styles */
.password-input-wrapper {
  position: relative;
}

.password-toggle-button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--stem-spacing-xs);
  color: var(--stem-color-chocolate); /* Adjust as needed */
}

.password-requirements {
  font-size: var(--stem-font-size-sm);
  margin-top: var(--stem-spacing-sm);
}

.password-requirement-item {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Right-adjust the text */
  margin-bottom: var(--stem-spacing-xxs);
  font-weight: normal; /* Ensure text is not bolded */
}

.password-validation-container {
  position: relative;
}

.password-requirement-icon {
  margin-right: var(--stem-spacing-xxs);
  font-size: var(--stem-font-size-md); /* Adjust icon size */
}

.is-valid {
  color: var(--stem-color-driftwood); /* Blue color for valid */
}

.is-invalid {
  color: var(--stem-color-error); /* Red color for invalid */
}

.hidden {
  display: none !important;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-clear-button {
    display: none !important;
    -webkit-appearance: none;
}

.tui-calendar-header-info {
    display: none !important;
}


.feature-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--stem-color-ash);
  color: var(--stem-color-chocolate);
  padding: 2px 6px;
  border-radius: var(--stem-radius-md);
  font-size: 10px;
  font-weight: var(--stem-font-weight-bold);
  text-transform: uppercase;
}



/* ==========================================================================
   Component: Stem Progress
   ========================================================================== */
.stem-progress {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    z-index: 1;
}

.stem-progress__step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.stem-progress__step::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: var(--stem-color-sandstone);
    z-index: -1;
}

.stem-progress__step:last-child::before {
    display: none;
}

.stem-progress__indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--stem-color-ash); /* CHANGED */
    border: 2px solid var(--stem-color-sandstone);
    color: var(--stem-color-sandstone);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--stem-font-weight-bold);
    font-size: 14px;
    margin-bottom: var(--stem-spacing-sm);
    transition: all 0.3s ease;
    z-index: 2;
}

.stem-progress__label {
    font-size: 12px;
    font-weight: var(--stem-font-weight-regular);
    color: var(--stem-color-sandstone);
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    max-width: 120px;
    margin-top: var(--stem-spacing-sm);
}

.stem-progress__step--completed .stem-progress__indicator {
    background-color: var(--stem-color-ocean);
    border-color: var(--stem-color-ocean);
    color: var(--stem-color-vanilla);
}

.stem-progress__step--completed .stem-progress__label {
    color: var(--stem-color-ocean);
}

.stem-progress__step--completed::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: var(--stem-color-ocean);
    z-index: -1;
}

.stem-progress__step:last-child::after {
    display: none;
}

.stem-progress__step--active .stem-progress__indicator {
    background-color: var(--stem-color-ash); /* CHANGED */
    border-color: var(--stem-color-ocean);
    color: var(--stem-color-ocean);
    transform: scale(1.1);
}

.stem-progress__step--active .stem-progress__label {
    color: var(--stem-color-ocean);
    font-weight: 800;
}

.stem-btn--onboarding-continue {
    justify-content: center;
    text-transform: uppercase;
}

.appointments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two equal columns for larger screens */
  gap: var(--stem-spacing-md); /* Add spacing between the columns */
}

@media (max-width: 768px) {
  .stem-container-login {
    width: 100%;
  }

  .login-image-column {
    display: none;
  }

  .devise-container {
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .appointments-grid {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }
}
/* Add to your main stylesheet (e.g., app/assets/stylesheets/triage.css) */

.triage-container {
  display: flex;
  justify-content: center;
  min-height: 80vh;
  background-color: #f8f9fa; /* Light grey background from screenshot */
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  border-radius: 12px;
}

.triage-card {
  background: white;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 20px; /* Ensure consistent height */
}

.triage-card__header {
  padding: 2rem 2rem 1rem 2rem;
}

.triage-title {
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.triage-subtitle {
  margin-bottom: 1.5rem;
}

.triage-card__body {
  padding: 0 2rem 2rem 2rem;
  flex-grow: 1;
  overflow-y: auto;
}

/* Option List Styling */
.option-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.option-item {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-item:hover {
  border-color: #b0b0b0;
  background-color: #fcfcfc;
}

.option-item.selected {
  border-color: #2c3e50; /* Dark Blue */
  background-color: #f0f4f8;
  box-shadow: 0 0 0 1px #2c3e50;
}

/* Radio Circle / Checkbox Square */
.option-icon {
  width: 24px;
  height: 24px;
  border: 2px solid #ccc;
  border-radius: 50%; /* Make square for checkbox via JS class if needed */
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-item.selected .option-icon {
  border-color: #2c3e50;
}

.option-item.selected .option-icon::after {
  content: '';
  width: 12px;
  height: 12px;
  background-color: #2c3e50;
  border-radius: 50%;
}

/* Footer Styling */
.triage-card__footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  background-color: white;
}

.btn-outline {
  background: transparent;
  border: 1px solid #ccc;
  color: #333;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.btn-solid {
  background-color: #2c3e50;
  color: white;
  border: none;
  padding: 0.75rem 2.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.btn-solid:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}

/* Custom classes for review screen and emergency stop - replacing Tailwind */
.review-container-list {
  display: flex;
  flex-direction: column;
  gap: 0px; /* Equivalent to gap-4 */
}

.review-item {
  padding: 8px; /* Equivalent to p-4 */
}

.review-item-title {
  font-weight: 700; /* Equivalent to font-bold */
  margin-bottom: 0.25rem; /* Small margin-bottom */
}

.review-item-answer {

}

.emergency-message-card {
  padding: 1rem; /* p-4 */
  background-color: #fee2e2; /* bg-red-50 */
  color: #991b1b; /* text-red-700 */
  border: 1px solid #fecaca; /* border border-red-200 */
  border-radius: 0.5rem; /* rounded */
}

.emergency-message-card h3 {
  font-weight: 700; /* font-bold */
  font-size: 1.125rem; /* text-lg */
  margin-bottom: 0.5rem; /* mb-2 */
}

/* Triage Layout for book.html.erb */
.triage-layout {
  display: flex;
  gap: 20px; /* Space between columns */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center; /* Center content when wrapped */
}

.triage-left-column {
  flex: 1; /* Take up remaining space */
  min-width: 300px; /* Minimum width before wrapping */
}

.triage-right-column {
  flex: 0 0 350px; /* Fixed width for the right column */
  border: 1px solid var(--stem-color-border); /* from old inline style */
  border-radius: 8px; /* from old inline style */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* from old inline style */
  padding: 20px; /* from old inline style */
}

.button-container-col {
  display: flex;
  flex-direction: column;
  gap: 0px;
  padding-top: 0px;
}

.button-group-row {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *






 */

