/*
 * DTI (Direct to Initial) Components Stylesheet
 * 
 * This file contains CSS styles specific to the DTI user flow.
 * Shared styles with post-visit flow are in shared-flow-components.css.
 */

/* Height/weight field sizing removed - views use Tailwind classes directly */

/* =================================
   DTI Utility Classes
   ================================= */

/* Hidden by default - for elements that start hidden and are shown via JS */
.dti-initially-hidden {
  display: none;
}

/* Disabled button appearance (non-functional, styled as disabled) */
.dti-btn-disabled-appearance {
  pointer-events: none;
  opacity: 0.5;
}

/* Button container minimum height for layout stability */
.dti-button-container-min-height {
  min-height: 48px;
}

/* Discount success message - uses existing status-success tokens */
.dti-discount-success {
  background: color-mix(in srgb, var(--color-status-success) 15%, white);
  border: 1px solid color-mix(in srgb, var(--color-status-success) 30%, white);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: var(--color-status-success);
}

.dti-discount-success-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dti-discount-success-details {
  font-size: 0.875rem;
}

/* =================================
   DTI Layout & Container Styles
   ================================= */

/* Center all form content except back button */
.dti-slide-card {
  text-align: center;
}

/* Reset text alignment for back button to keep it left-aligned */
.dti-slide-card > div:first-child a {
  text-align: left;
  display: inline-block;
}

/* Keep back button container left-aligned */
.dti-slide-card > div:first-child {
  text-align: left;
}

/* Form field containers removed - views use Tailwind flex classes directly */

/* =================================
   DTI Compact Select
   ================================= */

/* Compact select - removes extra right padding for tight layouts (e.g., DOB selects) */
.dti-select-compact {
  padding-right: 0 !important;
}

/* =================================
   DTI Step Navigation Styles
   ================================= */

/* Step navigation styling */
.step-navigation-item {
  font-size: 0.875rem;
  text-align: center;
  flex: 1;
  max-width: 120px;
}

.step-previous,
.step-next {
  color: #5F6672; /* Lighter gray */
  font-weight: 400; /* Normal weight */
  opacity: 0.7;
}

.step-current {
  color: var(--color-text-primary);
  font-weight: 600; /* Semi-bold */
  opacity: 1;
}

/* Empty step placeholders */
.step-navigation-item:empty {
  visibility: hidden;
}

/* Mobile: Hide previous and next step labels on small screens */
@media (max-width: 640px) {
  .step-previous,
  .step-next {
    display: none;
  }

  .step-current {
    max-width: 100%;
  }
}

/* =================================
   DTI SMS Consent Checkbox
   ================================= */

/* SMS consent checkbox styling */
.dti-slide-card .sms-consent {
  max-width: 300px;
  margin: 1rem auto 0;
  text-align: left;
}

.dti-slide-card .sms-consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #5F6672;
  font-weight: 400;
  margin-bottom: 0;
  cursor: pointer;
  text-align: left;
}

.dti-slide-card .sms-consent span {
  text-wrap: balance;
}

.dti-slide-card .sms-consent input[type="checkbox"] {
  margin-top: 0.125rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  max-width: none;
}

/* =================================
   DTI Text & Typography
   ================================= */

/* Balanced text for all DTI content */
.dti-slide-card h1,
.dti-slide-card h2,
.dti-slide-card h3,
.dti-slide-card h4,
.dti-slide-card h5,
.dti-slide-card h6,
.dti-slide-card p,
.dti-slide-card .heading-primary,
.dti-slide-card .heading-secondary {
  text-wrap: balance;
}

/* =================================
   DTI Utility Classes
   ================================= */

/* Line clamp utility for provider descriptions */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* =================================
   DTI Collapsible Sidebar
   ================================= */

/* Custom scrollbar for filter options */
.filter-options-container::-webkit-scrollbar {
  width: 4px;
}

.filter-options-container::-webkit-scrollbar-track {
  background: #F3F4F6;
  border-radius: 2px;
}

.filter-options-container::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 2px;
}

.filter-options-container::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

/* =================================
   DTI Provider Search Styles
   ================================= */

/* Main content area for provider search (without sidebar) - DEPRECATED */
/* Content is now managed by responsive container classes in the view */

/* =================================
   Sidebar Filter Styles
   ================================= */

/* Filter section styling */
.filter-section {
  border-bottom: 1px solid var(--color-border-primary);
  padding-bottom: 1rem;
}

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

.filter-section-header {
  cursor: pointer;
  background: none;
  border: none;
  transition: background-color 0.2s ease;
  padding: 0.25rem;
  border-radius: 4px;
}

.filter-section-header:hover {
  background-color: var(--color-bg-tertiary);
}

.filter-section-header:focus {
  outline: 2px solid var(--color-culina-green, #3F6655);
  outline-offset: 2px;
}

/* Collapsible filter options - visible by default for sidebar */
.filter-options {
  max-height: 400px;
  overflow-y: auto;
  display: block;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* When parent section is collapsed */
.filter-options.hidden {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

/* Custom scrollbar for filter options */
.filter-options::-webkit-scrollbar {
  width: 4px;
}

.filter-options::-webkit-scrollbar-track {
  background: #F3F4F6;
  border-radius: 2px;
}

.filter-options::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 2px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

/* Chevron styling for sidebar sections */
.filter-section-header i {
  transition: transform 0.3s ease;
}

.filter-section-header [data-dti--filter-dropdown-target="chevron"] {
  transition: transform 0.3s ease;
}

/* Hide filter items beyond the limit */
.filter-item-hidden {
  display: none;
}

/* =================================
   Right Sidebar - Next Available Appointments
   ================================= */

/* Sidebar background - matches main page background */
aside[data-controller="dti--appointment-selector"] {
  background-color: var(--color-bg-primary);
}

/* Select Appointment button enabled state - Culina green */
.dti-button-enabled {
  background-color: var(--color-primary) !important;
  transition: background-color 0.2s ease;
}

.dti-button-enabled:hover {
  background-color: #2F5544 !important;
}

/* =================================
   Filter Dropdown Styles
   (extracted from providers/index.html.erb)
   ================================= */

.filter-container {
  margin-bottom: 20px;
  overflow: visible !important;
  position: relative;
  z-index: 1000;
}

.filter-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  z-index: 50; /* Desktop dropdown uses local stacking context */
  margin-top: 8px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

/* Show dropdown when active - support multiple methods */
.filter-dropdown[data-dti--filter-dropdown-open-value="true"] .dropdown-menu,
.filter-dropdown.dti--filter-dropdown--open .dropdown-menu,
.filter-dropdown.show .dropdown-menu,
.filter-dropdown[data-show="true"] .dropdown-menu {
  display: block !important;
}

/* Active dropdowns stack above inactive ones */
.filter-dropdown[data-dti--filter-dropdown-open-value="true"],
.filter-dropdown.dti--filter-dropdown--open,
.filter-dropdown.show,
.filter-dropdown[data-show="true"] {
  z-index: 51;
}

.dropdown-menu .dropdown-item {
  display: block;
  width: 100%;
  padding: 12px 20px;
  text-align: left;
  background: white;
  border: none;
  color: #2d3748;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
}

.dropdown-menu .dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-menu .dropdown-item:hover {
  background: #f1f5f9;
}

.dropdown-menu .dropdown-item.selected {
  background: #e6f0f6;
  color: var(--color-primary, #3F6655);
  font-weight: 500;
}

.main-content-no-sidebar {
  margin-top: 20px;
}

/* Appointment date section headers */
.appointment-date-section {
  margin-bottom: 1rem;
}

.appointment-date-section h3 {
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Time slot buttons in right sidebar */
.time-slot-button {
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  background: var(--color-dti-slot-bg, #F9FAFB);
  border: 1px solid var(--color-dti-slot-border, #E5E7EB);
  color: #374151;
  padding: 0.5rem 0.5rem;
  border-radius: 0.5rem;
  text-align: center;
  cursor: pointer;
}

.time-slot-button:hover:not(:disabled) {
  background: var(--color-dti-slot-hover-bg, #B6CCAE);
  border-color: var(--color-dti-slot-hover-bg, #B6CCAE);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(63, 102, 85, 0.15);
}

.time-slot-button:active:not(:disabled) {
  transform: translateY(0);
}

.time-slot-button.selected-slot {
  background-color: var(--color-dti-slot-selected, #3F6655);
  border-color: var(--color-dti-slot-selected, #3F6655);
  color: white;
  box-shadow: 0 2px 4px rgba(63, 102, 85, 0.2);
}

.time-slot-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(182, 204, 174, 0.5);
}

.time-slot-button.selected-slot:focus-visible {
  box-shadow: 0 0 0 3px rgba(63, 102, 85, 0.3);
}

.time-slot-button:disabled {
  background: var(--color-bg-tertiary);
  border-color: #E5E7EB;
  color: #9CA3AF;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none !important;
  box-shadow: none !important;
}

/* Scrollbar styling for appointment list */
aside[data-controller="dti--appointment-selector"] [data-dti--appointment-selector-target="appointmentList"]::-webkit-scrollbar {
  width: 6px;
}

aside[data-controller="dti--appointment-selector"] [data-dti--appointment-selector-target="appointmentList"]::-webkit-scrollbar-track {
  background: #F3F4F6;
  border-radius: 3px;
}

aside[data-controller="dti--appointment-selector"] [data-dti--appointment-selector-target="appointmentList"]::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 3px;
}

aside[data-controller="dti--appointment-selector"] [data-dti--appointment-selector-target="appointmentList"]::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

/* Matching preferences container */
.matching-preferences {
  max-height: 60px;
  overflow-y: auto;
}

/* Preference tags */
.preference-tag {
  background: linear-gradient(135deg, var(--color-culina-green, #3F6655), var(--color-culina-basil, #4a7c59));
  color: var(--color-culina-cream, white);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(63, 102, 85, 0.3);
}

/* =================================
   DTI Loading States
   ================================= */

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(63, 102, 85, 0.1);
  border-left-color: var(--color-culina-green, #3F6655);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Skeleton loader for provider cards */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 1.5rem;
  width: 60%;
  margin-bottom: 0.75rem;
}

.skeleton-card {
  padding: 1.5rem;
  border: 1px solid var(--color-border-primary);
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* Loading indicator state - don't block pointer events */
[data-loading="true"] {
  opacity: 1;
}

/* =================================
   DTI View Transitions
   ================================= */

/* Enable smooth view transitions for supported browsers */
@media (prefers-reduced-motion: no-preference) {
  @supports (view-transition-name: none) {
    .dti-slide-card {
      view-transition-name: main-content;
    }

    ::view-transition-old(main-content),
    ::view-transition-new(main-content) {
      animation-duration: 0.3s;
    }
  }
}

/* Fade animation for content changes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  /* Mobile: Stack filters in 2 columns */
  .filter-container {
    gap: 10px;
  }

  .filter-dropdown {
    padding: 10px 14px;
    font-size: 13px;
  }


  /* Smaller preference tags on mobile */
  .preference-tag {
    font-size: 11px;
    padding: 3px 8px;
    line-height: 1.2;
  }
}

/* Extra small mobile devices */
@media (max-width: 390px) {

  .filter-dropdown {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Smaller preference tags */
  .preference-tag {
    font-size: 10px;
    padding: 2px 6px;
  }
}

/* =================================
   Payment Review Page Styles
   ================================= */

/* Review Page - Centered white container layout */
.review-page-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #F0F5EF 0%, #E8EFDE 50%, #F0F5EF 100%);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.culina-logo-header {
  text-align: center;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.culina-logo-header img {
  height: 2rem;
}

.culina-logo-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-culina-green, #3F6655);
  font-family: "Marcellus", serif;
  margin: 0;
}

.review-white-container {
  background: white;
  border-radius: 1.25rem;
  padding: 2rem;
  max-width: 1100px;
  width: 100%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-culina-green);
  margin-bottom: 0.375rem;
  line-height: 1.2;
  text-align: center;
}

.page-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 400;
  text-align: center;
  margin-bottom: 1.25rem;
}

.success-banner {
  background: #F0F5EF;
  border: 2px solid #D3E0CE;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.success-banner h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-culina-green);
  margin-bottom: 0.25rem;
}

.success-banner p {
  font-size: 0.8125rem;
  color: var(--color-culina-green);
  margin: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: start;
}

.section-card {
  background: var(--color-bg-tertiary);
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--color-border-primary);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.section-header {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-culina-green);
  margin-bottom: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #D3E0CE;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border-primary);
  gap: 0.75rem;
}

.detail-row:first-child {
  padding-top: 0;
}

.detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-label {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  flex-shrink: 0;
  min-width: 80px;
}

.detail-value {
  color: #1f2937;
  text-align: right;
  font-weight: 500;
  font-size: 0.8125rem;
  flex: 1;
}

.detail-value-large {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-culina-green);
}

.appointment-highlight {
  background: linear-gradient(135deg, #F0F5EF 0%, #E8EFDE 100%);
  border: 2px solid #D3E0CE;
  padding: 0.875rem;
  border-radius: 0.625rem;
  margin-top: 0;
}

.appointment-highlight .detail-row {
  border-bottom: 1px solid #D3E0CE;
  padding: 0.5rem 0;
}

.appointment-highlight .detail-row:first-child {
  padding-top: 0;
}

.appointment-highlight .detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #E8EFDE;
  color: var(--color-culina-green);
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #D3E0CE;
}

.full-width-section {
  background: var(--color-bg-tertiary);
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--color-border-primary);
  margin-bottom: 1rem;
}

.completion-message {
  text-align: center;
  padding: 1.25rem;
  background: linear-gradient(135deg, #F0F5EF 0%, #E8EFDE 100%);
  border-radius: 0.75rem;
  border: 2px solid #D3E0CE;
  margin-bottom: 1rem;
}

.next-steps-container {
  padding: 1.25rem;
  background: linear-gradient(135deg, #F0F4FE 0%, #E8EEFD 100%);
  border-radius: 0.75rem;
  border: 2px solid #D2DFFC;
  margin-bottom: 1rem;
}

.next-steps-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #41556B;
  text-align: center;
  margin-bottom: 1rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step-item {
  padding: 1rem 0.875rem;
  background: white;
  border-radius: 0.625rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.step-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.step-number {
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(135deg, #677789, #41556B);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(65, 85, 107, 0.3);
  margin: 0 auto 0.625rem;
}

.step-text {
  color: #1f2937;
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 500;
}

.email-reminder {
  text-align: center;
  padding: 0.875rem;
  background: var(--color-bg-tertiary);
  border-radius: 0.625rem;
  border: 1px solid var(--color-border-primary);
}

.email-reminder p:first-child {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.125rem;
  font-weight: 600;
}

.email-reminder p:last-child {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
}

/* Replace inline styles with reusable CSS classes */
.completion-emoji {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.completion-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-culina-green);
  margin-bottom: 0.5rem;
}

.completion-subtitle {
  font-size: 0.8125rem;
  color: var(--color-culina-green);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.membership-date-box {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 0.5rem;
  border: 2px solid #D3E0CE;
  margin-bottom: 0.75rem;
}

.membership-date-label {
  font-size: 0.75rem;
  color: var(--color-culina-green);
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.membership-date-value {
  font-size: 1rem;
  color: var(--color-culina-green);
  font-weight: 700;
  margin: 0;
}

.membership-details-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: 0.75rem;
  border: 1px solid var(--color-border-primary);
}

.membership-details-header {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-culina-green);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #D3E0CE;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.payment-grid-item-left {
  text-align: left;
}

.payment-grid-item-right {
  text-align: right;
}

.payment-grid-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 0.25rem;
}

.payment-grid-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-culina-green);
  margin: 0;
}

.payment-grid-value-large {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-culina-green);
  margin: 0;
}

.payment-grid-subtext {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  margin: 0;
}

.payment-grid-timestamp {
  font-size: 0.75rem;
  color: #1f2937;
  font-weight: 500;
  margin: 0;
}

.payment-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #E8EFDE;
  color: var(--color-culina-green);
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #D3E0CE;
}

.provider-timezone-label {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* Responsive adjustments for payment review */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .payment-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .review-white-container {
    padding: 1.5rem 1.25rem;
  }

  .page-title {
    font-size: 1.375rem;
  }

  .page-subtitle {
    font-size: 0.8125rem;
  }

  .culina-logo-header {
    margin-bottom: 1.25rem;
  }

  .culina-logo-header img {
    height: 1.75rem;
  }

  .culina-logo-header h1 {
    font-size: 1.375rem;
  }

  .section-card, .full-width-section, .completion-message, .next-steps-container {
    padding: 1rem;
  }

  .section-header {
    font-size: 0.875rem;
  }

  .next-steps-title {
    font-size: 1rem;
  }

  .step-number {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }

  .step-text {
    font-size: 0.6875rem;
  }
}

@media (max-width: 640px) {
  .review-page-wrapper {
    padding: 0.875rem 0.5rem;
  }

  .review-white-container {
    padding: 1.25rem 1rem;
  }

  .culina-logo-header {
    margin-bottom: 1rem;
  }

  .culina-logo-header img {
    height: 1.5rem;
  }

  .culina-logo-header h1 {
    font-size: 1.125rem;
  }

  .page-title {
    font-size: 1.25rem;
  }

  .page-subtitle {
    font-size: 0.75rem;
  }

  .success-banner {
    padding: 0.875rem;
  }

  .success-banner h3 {
    font-size: 1rem;
  }

  .success-banner p {
    font-size: 0.75rem;
  }

  .completion-message {
    padding: 1rem 0.875rem;
  }

  .completion-message .payment-grid {
    grid-template-columns: 1fr !important;
  }

  .detail-row {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.375rem 0;
  }

  .detail-value {
    text-align: left;
  }

  .detail-label {
    min-width: auto;
  }

  .payment-grid {
    gap: 0.75rem;
  }

  .section-card, .full-width-section {
    padding: 0.875rem;
  }

  .next-steps-container {
    padding: 1rem 0.875rem;
  }

  .step-item {
    padding: 0.875rem 0.75rem;
  }

  .email-reminder {
    padding: 0.75rem;
  }
}


/* Deprecated wellness-provider-card section removed - see git history */
/* =================================
   New Provider UI - DTI Provider Cards
   ================================= */

.dti-provider-card {
  background: white;
  border: 2px solid var(--color-border-primary);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dti-provider-card:hover {
  border-color: #D1D5DB;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dti-provider-card-selected {
  border-color: var(--color-primary, #3F6655) !important;
  background: linear-gradient(135deg, rgba(182, 204, 174, 0.15) 0%, rgba(182, 204, 174, 0.08) 100%);
  box-shadow: 0 4px 12px rgba(63, 102, 85, 0.1);
}

.dti-provider-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.dti-provider-avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8F3ED 0%, #D3E0CE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dti-provider-avatar-placeholder.dti-initially-hidden {
  display: none;
}

.dti-provider-avatar-placeholder i {
  font-size: 28px;
  color: var(--color-culina-green);
}

.dti-provider-name {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.dti-provider-specialization {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.dti-provider-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.dti-provider-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-culina-green);
  color: white;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.dti-provider-next-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #374151;
  margin-top: 8px;
}

.dti-provider-next-time i {
  color: var(--color-text-muted);
  font-size: 14px;
}

.dti-provider-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.dti-provider-card-selected .dti-provider-chevron i {
  transform: rotate(90deg);
  color: var(--color-culina-green);
}

/* Sort dropdown */
.dti-sort-dropdown {
  min-width: 160px;
}

/* Right sidebar hidden state */
.xl\:flex.hidden {
  display: none !important;
}

@media (min-width: 1280px) {
  .xl\:flex:not(.hidden) {
    display: flex !important;
  }
}

/* Appointment dates styling */
.appointment-date-header {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-primary);
}

/* =================================
   Mobile Time Slot Buttons (Inline)
   ================================= */

.mobile-time-slot-button {
  background: var(--color-dti-slot-bg, #F9FAFB);
  border: 2px solid var(--color-dti-slot-border, #E5E7EB);
  border-radius: 8px;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.mobile-time-slot-button:hover:not(:disabled) {
  background: var(--color-dti-slot-hover-bg, #B6CCAE);
  border-color: var(--color-dti-slot-hover-bg, #B6CCAE);
}

.mobile-time-slot-button.mobile-slot-selected {
  background: var(--color-dti-slot-selected, #3F6655);
  border-color: var(--color-dti-slot-selected, #3F6655);
  color: white;
  box-shadow: 0 2px 8px rgba(63, 102, 85, 0.3);
  transform: scale(1.02);
}

.mobile-time-slot-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(182, 204, 174, 0.5);
}

.mobile-time-slot-button.mobile-slot-selected:focus-visible {
  box-shadow: 0 0 0 3px rgba(63, 102, 85, 0.3);
}

.mobile-time-slot-button:disabled {
  background: var(--color-bg-tertiary);
  border-color: #E5E7EB;
  color: #9CA3AF;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none !important;
  box-shadow: none !important;
}

/* =================================
   DTI Utility Classes
   ================================= */

/* Disabled state utility - use for elements that need to be visually disabled */
.dti-disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile Appointment Sticky Bar */
#mobile-appointment-sticky-bar {
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* =================================
   Mobile Filter Drawer & Modal Styles
   ================================= */

/* Mobile filter button - floating action button */
.mobile-filter-button {
  position: fixed;
  bottom: 6rem;
  right: 1rem;
  z-index: 1001;
  transition: all 0.3s ease;
}

.mobile-filter-button:active {
  transform: scale(0.95);
}

/* Mobile filter drawer overlay */

/* Mobile appointment modal */
.mobile-appointment-modal {
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
}

/* Mobile modal time slot grid adjustments */
@media (max-width: 640px) {
  .mobile-appointment-modal .time-slot-button {
    font-size: 13px;
    padding: 10px 8px;
  }
}

@media (max-width: 390px) {
  .mobile-appointment-modal .time-slot-button {
    font-size: 12px;
    padding: 8px 6px;
  }
}

/* Mobile responsive adjustments for provider page */
@media (max-width: 1024px) {
  /* Ensure content doesn't overflow on tablets/mobile */
  

  /* Adjust heading sizes for mobile */
  h2.text-3xl {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  /* More compact spacing on small mobile */
  

  /* Smaller text for mobile */
  h2.text-3xl {
    font-size: 1.25rem;
  }

  p.text-base {
    font-size: 0.875rem;
  }
}

/* Z-index layering for overlays and modals */
.z-filter-button {
  z-index: 1001;
}

.z-filter-overlay {
  z-index: 1002;
}

.z-filter-drawer {
  z-index: 1003;
}

.z-appointment-overlay {
  z-index: 1004;
}

.z-appointment-modal {
  z-index: 1005;
}

/* Smooth transitions for all interactive elements */
.transition-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent body scroll when modals are open */
body.modal-open {
  overflow: hidden;
}

/* Mobile: Ensure provider content stays within bounds */
@media (max-width: 1024px) {
  .flex-1.overflow-y-auto {
    width: 100%;
    max-width: 100vw;
  }

  /* Provider list container */
  main.flex-1 {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
}

/* Mobile heading responsive sizing */
@media (max-width: 640px) {
  /* Prevent text overflow on narrow screens */
  .text-center.max-w-4xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Adjust provider card spacing */
  .dti-provider-card {
    margin-bottom: 0.75rem;
  }
}

/* Back button styling */
.back-button-icon {
  transition: transform 0.2s ease;
}

.back-button-icon:hover {
  transform: translateX(-2px);
}

/* =================================
   4-Step Stepper Component
   ================================= */

.dti-stepper-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.dti-stepper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  width: 100%;
  gap: 1rem; /* Add gap between steps */
  overflow: visible; /* Allow lines to extend beyond container */
}

.dti-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  min-width: 0; /* Allow flex items to shrink */
  padding: 0 0.5rem; /* Add padding for breathing room */
  overflow: visible; /* Allow line to extend beyond container */
}

/* Step circle container */
.dti-step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 20px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  background-color: #fff;
  border: 3px solid #E5E7EB; /* Gray border for upcoming steps */
  color: #9CA3AF; /* Gray text for upcoming steps */
  flex-shrink: 0; /* Prevent circle from shrinking */
}

/* Completed step */
.dti-step.completed .dti-step-circle {
  background-color: var(--color-culina-green, #3F6655);
  border-color: var(--color-culina-green, #3F6655);
  color: #fff;
}

/* Current step */
.dti-step.current .dti-step-circle {
  background-color: var(--color-culina-green, #3F6655);
  border-color: var(--color-culina-green, #3F6655);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(63, 102, 85, 0.15);
  transform: scale(1.05);
}

/* Upcoming step */
.dti-step.upcoming .dti-step-circle {
  background-color: #fff;
  border-color: #E5E7EB;
  color: #9CA3AF;
}

/* Incomplete step (warning state) */
.dti-step.incomplete .dti-step-circle {
  background-color: #FCD34D;
  border-color: #F59E0B;
  color: #92400E;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

/* Step label */
.dti-step-label {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  color: #5F6672;
  transition: color 0.3s ease;
  line-height: 1.3;
  word-wrap: break-word;
  max-width: 140px;
}

.dti-step.completed .dti-step-label,
.dti-step.current .dti-step-label {
  color: var(--color-text-primary, #1F2937);
  font-weight: 600;
}

.dti-step.incomplete .dti-step-label {
  color: #D97706;
  font-weight: 600;
}

/* Connecting line */
.dti-step-line {
  position: absolute;
  top: 28px; /* Half of circle height */
  left: calc(50% + 28px); /* Start from right edge of circle A */
  right: calc(-1rem - 0.5rem - 50% + 28px); /* Extend to left edge of circle B: gap + next padding + to circle center - radius */
  height: 5px; /* Line thickness */
  background-color: #E5E7EB;
  transition: background-color 0.3s ease;
  z-index: 1;
}

.dti-step.completed .dti-step-line {
  background-color: var(--color-culina-green, #3F6655);
}

.dti-step.incomplete .dti-step-line {
  background-color: #F59E0B;
}

/* Sub-step progress bar */
.dti-substep-progress {
  width: 100%;
  margin-top: 1.25rem;
}

.dti-substep-progress-bar {
  width: 100%;
  height: 6px;
  background-color: #E5E7EB;
  border-radius: 3px;
  overflow: hidden;
}

.dti-substep-progress-fill {
  height: 100%;
  width: var(--progress-width, 0%);
  background-color: var(--color-culina-green, #3F6655);
  transition: width 0.3s ease;
  border-radius: 3px;
}

.dti-substep-text {
  font-size: 0.8rem;
  color: #5F6672;
  text-align: center;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Tablet responsive adjustments */
@media (max-width: 768px) {
  .dti-stepper-container {
    padding: 0 1.5rem;
    max-width: 100%;
  }

  .dti-step-circle {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .dti-step-label {
    font-size: 0.85rem;
    max-width: 110px;
    margin-top: 0.875rem;
  }

  .dti-step-line {
    top: 25px;
    left: calc(50% + 25px); /* Start from right edge of circle A */
    right: calc(-1rem - 0.5rem - 50% + 25px); /* Extend to left edge of circle B (50px circle on tablet) */
    height: 5px; /* Line thickness */
  }

  .dti-step.current .dti-step-circle {
    box-shadow: 0 0 0 5px rgba(63, 102, 85, 0.12);
  }
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .dti-stepper-container {
    padding: 0 1rem;
  }

  .dti-stepper {
    gap: 0.5rem;
  }

  .dti-step {
    padding: 0 0.25rem;
  }

  .dti-step-circle {
    width: 44px;
    height: 44px;
    font-size: 16px;
    border-width: 2.5px;
  }

  .dti-step-label {
    font-size: 0.75rem;
    max-width: 90px;
    margin-top: 0.75rem;
    line-height: 1.2;
  }

  .dti-step-line {
    top: 22px;
    left: calc(50% + 22px); /* Start from right edge of circle A */
    right: calc(-0.5rem - 0.25rem - 50% + 22px); /* Extend to left edge of circle B (44px circle, 0.5rem gap, 0.25rem padding on mobile) */
    height: 4px; /* Line thickness */
  }

  .dti-substep-progress-bar {
    height: 5px;
  }

  .dti-substep-text {
    font-size: 0.75rem;
  }

  .dti-step.current .dti-step-circle {
    box-shadow: 0 0 0 4px rgba(63, 102, 85, 0.12);
    transform: scale(1.02);
  }
}

/* Extra small mobile */
@media (max-width: 480px) {
  .dti-stepper-container {
    padding: 0 0.75rem;
  }

  .dti-stepper {
    gap: 0.25rem;
  }

  .dti-step {
    padding: 0 0.125rem;
  }

  .dti-step-circle {
    width: 40px;
    height: 40px;
    font-size: 15px;
    border-width: 2px;
  }

  .dti-step-label {
    font-size: 0.7rem;
    max-width: 75px;
    margin-top: 0.625rem;
  }

  .dti-step-line {
    top: 20px;
    left: calc(50% + 20px); /* Start from right edge of circle A */
    right: calc(-0.25rem - 0.125rem - 50% + 20px); /* Extend to left edge of circle B (40px circle, 0.25rem gap, 0.125rem padding) */
    height: 4px; /* Line thickness */
  }
}

/* Very small mobile (iPhone SE, etc.) */
@media (max-width: 375px) {
  .dti-stepper-container {
    padding: 0 0.5rem;
  }

  .dti-step-circle {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .dti-step-label {
    font-size: 0.65rem;
    max-width: 68px;
    margin-top: 0.5rem;
  }

  .dti-step-line {
    top: 18px;
    left: calc(50% + 18px); /* Start from right edge of circle A */
    right: calc(-0.25rem - 0.125rem - 50% + 18px); /* Extend to left edge of circle B (36px circle) */
    height: 4px; /* Line thickness */
  }

  .dti-substep-progress {
    margin-top: 1rem;
  }
}

/* =================================
   Mobile Scrolling Fixes
   ================================= */

/* Mobile: Enable smooth scrolling and prevent body scroll lock */
@media (max-width: 1023px) {
  html, body {
    overflow-x: hidden;
  }
  
  /* Ensure mobile page can scroll naturally */
  body {
    position: relative;
  }
  
  /* Add padding to bottom of content to prevent filter button overlap */
  .dti-provider-card:last-child {
    margin-bottom: 5rem;
  }
  
  /* Mobile appointment expansion should not cause horizontal scroll */
  .dti-provider-card [data-dti--provider-card-new-target="mobileAppointments"] {
    overflow-x: hidden;
  }
  
  /* Ensure filter button is always accessible */
  .fixed.bottom-6.right-4 {
    pointer-events: auto;
  }
  
  /* Mobile sticky bar should slide up smoothly */
  #mobile-appointment-sticky-bar {
    will-change: transform;
  }
  
  #mobile-appointment-sticky-bar:not(.hidden) {
    transform: translateY(0) !important;
  }
}

/* =================================
   Floating Button Container
   Used for membership plan selection "Go to Payment" button
   ================================= */
.dti-floating-button-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  /* Safe area support for iOS */
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* =================================
   Text Link Hover Utility
   For filter toggle buttons and similar utility links
   ================================= */
.dti-text-link {
  color: var(--color-primary, #3F6655);
  transition: color 0.2s ease;
}

.dti-text-link:hover {
  color: var(--color-primary-hover, #2F5544);
}

/* ==========================================================================
   DTI Provider Filter System
   Desktop sidebar + mobile drawer unified styling
   Single source of truth for filter colors and interactions
   ========================================================================== */

/* Filter Container - creates stacking context for desktop sidebar */
.dti-filter-container {
  position: relative;
  overflow: visible;
}

/* Filter Dropdown - DTI-specific to avoid collisions */
.dti-filter-dropdown {
  position: relative;
}

/* Dropdown toggle - preserve sizing for menu alignment */
.dti-filter-dropdown .dti-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dti-filter-dropdown .dti-dropdown-toggle:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-culina-green, #3F6655);
}

.dti-filter-dropdown .dti-dropdown-toggle:focus {
  outline: 2px solid var(--color-culina-green, #3F6655);
  outline-offset: 2px;
}

/* Dropdown menu - positioned to match toggle width */
.dti-filter-dropdown .dti-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;              /* Matches toggle width */
  min-width: 100%;       /* At least as wide as toggle */
  margin-top: 0.5rem;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 50;           /* Local stacking context, not global */
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

/* Show dropdown when open */
.dti-filter-dropdown.show .dti-dropdown-menu,
.dti-filter-dropdown[data-dti--filter-dropdown-open-value="true"] .dti-dropdown-menu {
  display: block;
}

/* Dropdown Items */
.dti-dropdown-menu .dti-dropdown-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1.25rem;
  text-align: left;
  background: white;
  border: none;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.15s ease;
  font-size: 0.875rem;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
}

.dti-dropdown-menu .dti-dropdown-item:last-child {
  border-bottom: none;
}

.dti-dropdown-menu .dti-dropdown-item:hover {
  background: var(--color-culina-green-light, #e8f5f0);
}

.dti-dropdown-menu .dti-dropdown-item.selected {
  background: var(--color-culina-green-light, #e8f5f0);
  color: var(--color-culina-green, #3F6655);
  font-weight: 500;
}

.dti-dropdown-menu .dti-dropdown-item:focus {
  outline: 2px solid var(--color-culina-green, #3F6655);
  outline-offset: -2px;
}

/* Chevron Rotation - CSS-driven, no JS style manipulation */
.dti-filter-dropdown .dti-chevron,
.dti-filter-dropdown [data-dti--filter-dropdown-target="chevron"] {
  transition: transform 0.2s ease;
}

.dti-filter-dropdown.show .dti-chevron,
.dti-filter-dropdown.show [data-dti--filter-dropdown-target="chevron"],
.dti-filter-dropdown[data-dti--filter-dropdown-open-value="true"] .dti-chevron,
.dti-filter-dropdown[data-dti--filter-dropdown-open-value="true"] [data-dti--filter-dropdown-target="chevron"] {
  transform: rotate(180deg);
}

/* Clear/Reset Links - brand colors with fallbacks */
.dti-filter-clear-link {
  color: var(--color-culina-green, #3F6655);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.dti-filter-clear-link:hover {
  color: var(--color-culina-green-dark, #2d4a3d);
  text-decoration: underline;
}

.dti-filter-clear-link:focus {
  outline: 2px solid var(--color-culina-green, #3F6655);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ==========================================================================
   DTI Mobile Filter Drawer
   Uses established z-index hierarchy: overlay=1002, drawer=1003
   ========================================================================== */

/* Mobile Filter Drawer */
.dti-mobile-filter-drawer {
  position: fixed;
  inset-y: 0;
  left: 0;
  width: 20rem;
  max-width: 85vw;
  background: white;
  z-index: 1003;           /* z-filter-drawer level */
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.dti-mobile-filter-drawer.open {
  transform: translateX(0);
}

/* Overlay - sits below drawer but above sticky bar */

/* Body scroll lock - simple overflow only */
body.dti-drawer-open {
  overflow: hidden;
}

/* Mobile drawer header */
.dti-mobile-filter-header {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid var(--color-border-primary);
  padding: 1rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dti-mobile-filter-header-title {
  color: var(--color-culina-green, #3F6655);
  font-weight: 600;
  font-size: 1.125rem;
}

.dti-mobile-filter-close {
  color: var(--color-text-muted);
  padding: 0.5rem;
  transition: color 0.15s ease;
}

.dti-mobile-filter-close:hover {
  color: #374151;
}

.dti-mobile-filter-close:focus {
  outline: 2px solid var(--color-culina-green, #3F6655);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =================================
   DTI Best Match Page
   ================================= */

.dti-best-match-header {
  margin-bottom: 2rem;
  text-align: center;
}

.dti-best-match-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.dti-best-match-brand-logo {
  width: 36px;
  height: 36px;
}

.dti-best-match-brand-name {
  font-family: var(--font-primary, "Marcellus", serif);
  font-size: 1.75rem;
  color: var(--color-primary, #3F6655);
}

.dti-best-match-header h1 {
  color: var(--color-primary, #3F6655);
  font-size: 2.25rem;
}

.dti-best-match-page h1,
.dti-best-match-page h2,
.dti-best-match-page h3,
.dti-best-match-header p {
  text-wrap: balance;
}

.dti-best-match-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 24px;
  border: 1px solid #E3ECE0;
  background: #FFFFFF;
  box-shadow: 0 20px 45px rgba(32, 68, 52, 0.12);
  overflow: visible;
}

.dti-best-match-profile {
  position: relative;
  padding: 96px 28px 32px;
  text-align: center;
  border-radius: 24px 24px 0 0;
}

.dti-best-match-avatar {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 999px;
  overflow: hidden;
  border: 6px solid #3F6655;
  background: #D9E5DA;
  box-shadow: 0 16px 28px rgba(47, 85, 68, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dti-best-match-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dti-best-match-avatar-initials {
  font-size: 1.75rem;
  font-weight: 600;
  color: #2F5544;
  letter-spacing: 0.08em;
}

.dti-best-match-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary, #3F6655);
}

.dti-best-match-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.dti-best-match-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #E2ECDD;
  color: #2F5544;
  font-size: 0.85rem;
  font-weight: 500;
}

.dti-best-match-tag i {
  font-size: 0.9rem;
}

.dti-best-match-bio {
  margin: 1rem auto 0;
  max-width: 36rem;
  color: #3E4F46;
  font-size: 0.95rem;
  line-height: 1.55;
}

.dti-best-match-next {
  margin-top: 1rem;
  color: #2F5544;
  font-size: 0.9rem;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.dti-best-match-availability {
  background: #3F6655;
  color: #F7FBF6;
  padding: 28px;
  border-radius: 0 0 24px 24px;
  --color-dti-slot-bg: #F7FBF8;
  --color-dti-slot-border: #E6EFE1;
  --color-dti-slot-hover-bg: #B6CCAE;
  --color-dti-slot-selected: #2F5544;
  --best-match-cta-bg: var(--Component-colors-Components-Buttons-Secondary-button-secondary-bg, #F8F7E5);
  --best-match-cta-border: var(--Component-colors-Components-Buttons-Secondary-button-secondary-border, #3F6655);
  --best-match-cta-text: var(--color-culina-green, #3F6655);
  --best-match-cta-hover: #EFEBD4;
}

.dti-best-match-availability-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #F7FBF6;
}

.dti-best-match-availability-panel h3 {
  color: #E6F0E7;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
}

.dti-best-match-availability-panel p {
  color: #E6F0E7;
}

.dti-best-match-cta {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-start;
}

.dti-best-match-cta-button {
  background: var(--best-match-cta-bg);
  color: var(--best-match-cta-text);
  border: 1px solid var(--best-match-cta-border);
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 20px rgba(27, 55, 41, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

body[data-analytics-flow="dti"] .dti-best-match-cta-button {
  background: var(--best-match-cta-bg);
  color: var(--best-match-cta-text);
  border-color: var(--best-match-cta-border);
}

.dti-best-match-cta-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(27, 55, 41, 0.25);
  background: var(--best-match-cta-hover);
}

body[data-analytics-flow="dti"] .dti-best-match-cta-button:hover:not(:disabled) {
  background: var(--best-match-cta-hover);
}

body[data-analytics-flow="dti"] .dti-best-match-cta-button:focus:not(:disabled) {
  background: var(--best-match-cta-bg);
  border-color: var(--best-match-cta-border);
  color: var(--best-match-cta-text);
}

body[data-analytics-flow="dti"] .dti-best-match-cta-button:active:not(:disabled) {
  background: var(--best-match-cta-hover);
  border-color: var(--best-match-cta-border);
  color: var(--best-match-cta-text);
}

.dti-best-match-cta-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.dti-availability-hidden {
  display: none;
}

.dti-availability-expanded .dti-availability-hidden {
  display: block;
}

.dti-availability-expand {
  margin-top: 0.75rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  background: transparent;
  color: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dti-availability-expand:hover {
  background: rgba(255, 255, 255, 0.15);
}

.dti-best-match-availability .time-slot-button {
  font-size: 0.9rem;
}

.dti-best-match-availability .time-slot-button.selected-slot {
  background: #F5F7F3;
  border-color: #F5F7F3;
  color: var(--color-primary, #3F6655);
  box-shadow: none;
}

.dti-best-match-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.dti-best-match-other-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #3F6655;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

.dti-best-match-other-link:hover {
  color: #1F3C2F;
  text-decoration: none;
}

@media (min-width: 640px) {
  .dti-best-match-other-link {
    width: auto;
  }
}

@media (min-width: 1024px) {
  .dti-best-match-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .dti-best-match-profile {
    padding: 48px 48px 48px 160px;
    text-align: left;
    border-radius: 24px 0 0 24px;
  }

  .dti-best-match-avatar {
    top: 52px;
    left: -80px;
    transform: none;
    width: 170px;
    height: 170px;
  }

  .dti-best-match-tags {
    justify-content: flex-start;
  }

  .dti-best-match-bio {
    margin-left: 0;
    margin-right: 0;
  }

  .dti-best-match-availability {
    border-radius: 0 24px 24px 0;
    --best-match-cta-bg: var(--Component-colors-Components-Buttons-Secondary-button-secondary-bg, #F8F7E5);
    --best-match-cta-border: var(--Component-colors-Components-Buttons-Secondary-button-secondary-border, #3F6655);
    --best-match-cta-text: var(--color-culina-green, #3F6655);
    --best-match-cta-hover: #EFEBD4;
  }
}

@media (max-width: 639px) {
  .dti-best-match-header,
  .dti-best-match-availability-title {
    text-align: center;
  }

  .dti-best-match-header h1 {
    font-size: 1.75rem;
  }

  .dti-best-match-name {
    font-size: 1.25rem;
  }

  .dti-best-match-page {
    padding-bottom: 5.5rem;
  }

  .dti-best-match-card {
    margin-top: 3.5rem;
  }

  .dti-best-match-profile {
    padding-top: 84px;
  }

  .dti-best-match-avatar {
    top: -40px;
  }

  .dti-best-match-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: #F7FBF6;
    box-shadow: 0 -8px 20px rgba(21, 46, 35, 0.2);
    justify-content: center;
    z-index: 50;
  }

  .dti-best-match-cta-button {
    width: min(520px, 100%);
  }
}
