/* --- Base Variables & Reduced Global Styles --- */
:root {
  /* Colors */
  --primary-hue: 267;
  --primary: hsl(var(--primary-hue), 76%, 60%); /* #a855f7 */
  --primary-light: hsl(var(--primary-hue), 100%, 97.5%);
  --primary-dark: hsl(var(--primary-hue), 65%, 50%);
  --primary-text: hsl(var(--primary-hue), 60%, 50%);

  --text-dark: hsl(220, 18%, 25%);
  --text-medium: hsl(220, 18%, 25%);
  --text-light: hsl(220, 8%, 65%);
  --text-grey: #5F5F76;
  --text-disabled: #696969;
  --text-on-primary: white;
  --text-on-primary-dark: hsl(var(--primary-hue), 20%, 95%);

  --bg-white: #ffffff;
  --bg-light: hsl(220, 30%, 98.5%);
  --bg-input: hsl(220, 25%, 97%);

  --border-color: hsl(220, 20%, 92%);
  --border-focus: var(--primary);
  --border-light: hsl(220, 25%, 96%);

  --success: hsl(145, 63%, 49%);
  --success-light: hsl(145, 75%, 96%);
  --success-text: hsl(145, 55%, 35%);
  --warning: hsl(38, 92%, 55%);
  --warning-light: hsl(38, 100%, 97%);
  --error: hsl(0, 75%, 60%);

  /* Spacing */
  --space-xs: 0.25rem; /* 4px */
  --space-sm: 0.5rem; /* 8px */
  --space-md: 0.75rem; /* 12px */
  --space-lg: 1rem; /* 16px */
  --space-xl: 1.25rem; /* 20px */
  --space-2xl: 1.5rem; /* 24px */
  --space-3xl: 2rem; /* 32px */
  --space-4xl: 2.5rem; /* 40px */

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.04),
  0 2px 4px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05),
  0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-focus: none;
  --shadow-nav: 0 -2px 6px rgba(0, 0, 0, 0.03);

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-std: 0.2s ease-in-out;
}

/* --- Global Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: "Poppins", sans-serif; /* Consider defining a fallback font */
  background-color: var(--bg-light);
  color: var(--text-medium);
  line-height: 1.65;
  font-size: 16px;
}

/* --- Form Container & Structure --- */
.mf-container {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-4xl);
  max-width: 960px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  /* overflow: hidden; */
  margin: 40px auto;
  border: 2px solid #f2f4f7;
}
.mf-container-issues {
  max-width: 1060px;
}
.mf-form {
  width: 100%;
}
.mf-step {
  display: none;
  animation: mf-fadeIn 0.3s ease-out;
}
.mf-active {
  display: block;
}
.mf-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
  line-height: 1.35;
}
.mf-subtitle {
  font-size: 1rem;
  color: var(--text-medium);
  margin-bottom: var(--space-3xl);
  line-height: 1.6;
}

/* --- Grid Layouts --- */
.mf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
.mf-grid-issues {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1060px !important;
}
.mf-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

/* --- Step 1 & 2: Option Selection Boxes --- */
.mf-option-box,
.mf-preference-option label {
  display: flex;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  background-color: var(--bg-white);
  font-size: 0.95rem;
  color: var(--text-medium);
  min-height: 75px;
  cursor: pointer;
  transition: border-color var(--transition-std),
  background-color var(--transition-std), color var(--transition-std);
  position: relative;
  text-align: left;
}
.mf-option-box:hover,
.mf-preference-option label:hover {
  border-color: var(--primary);
}
.mf-option-box.mf-selected,
.mf-preference-option input[type="checkbox"]:checked + label {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--primary-text);
  font-weight: 600;
  box-shadow: var(--shadow-focus); /* effectively none */
}
.mf-option-box.mf-selected::after {
  content: "\f00c"; /* check icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: var(--space-xl);
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.2rem;
}
.mf-preference-option input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}
.mf-preference-option label::before { /* Custom checkbox appearance */
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-right: var(--space-lg);
  transition: background-color var(--transition-fast),
  border-color var(--transition-fast);
  background-color: var(--bg-input);
}
.mf-preference-option input[type="checkbox"]:checked + label::before {
  background-color: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 18px;
  background-position: center;
  background-repeat: no-repeat;
}
.mf-preference-option input[type="checkbox"]:focus-visible + label {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- Step 3, 4, 6: Input Fields & Dropdowns --- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"] {
  background: #F5F7F9 !important;
}
.mf-input-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.mf-input-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  display: block;
}
.mf-input-wrapper {
  overflow: hidden;
  position: relative;
  align-items: center;
  background-color: var(--bg-input);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-std);
  background-color: #F5F7F9;
}
.mf-input-wrapper:focus-within {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus);
}
.mf-input-icon {
  position: absolute;
  left: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-light);
  pointer-events: none;
  transition: color var(--transition-fast);
}
.mf-input-wrapper:focus-within .mf-input-icon {
  color: var(--primary);
}
.mf-input-wrapper input,
.mf-input-wrapper select {
  flex-grow: 1;
  padding: var(--space-md) var(--space-lg);
  padding-left: calc(var(--space-lg) + 1.2rem + var(--space-lg)); /* Space for icon */
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-medium);
  width: 100%;
  height: 60px;
  border-radius: inherit;
}
.mf-input-wrapper input::placeholder {
  color: var(--text-disabled);
  opacity: 1;
}
input[type="date"] {
  min-width: 0;
}
input[type="date"]:required:invalid {
  color: var(--text-disabled);
}
input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  cursor: pointer;
  color: var(--text-light);
}
.mf-select-wrapper {
  cursor: pointer;
}
.mf-select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: inherit;
  padding-right: calc(var(--space-lg) * 2 + 1.2rem); /* Space for arrow */
}
.mf-select-wrapper select:required:invalid {
  color: var(--text-disabled);
}
.mf-select-wrapper select option {
  color: var(--text-dark);
  background-color: var(--bg-white);
}
.mf-dropdown-arrow {
  position: absolute;
  right: var(--space-xl);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--text-light);
  pointer-events: none;
  transition: transform var(--transition-std);
}
.woocommerce-js input[type=number] {
  max-width: 100%;
  max-height: 100%;
}

/* --- Step 5: Therapist Listing --- */
.mf-user-prefs-summary {
  font-style: italic;
  color: var(--text-light);
}
.mf-filter-controls {
  margin-bottom: var(--space-2xl);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xl);
}
.mf-toggle-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  gap: var(--space-md);
  user-select: none;
}
.mf-toggle-switch input {
  display: none;
}
.mf-slider {
  width: 48px;
  height: 26px;
  background-color: var(--border-color);
  border-radius: var(--radius-full);
  position: relative;
  transition: background-color var(--transition-std);
  flex-shrink: 0;
}
.mf-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background-color: var(--bg-white);
  border-radius: 50%;
  transition: transform var(--transition-std);
  box-shadow: var(--shadow-sm);
}
.mf-toggle-switch input:checked + .mf-slider {
  background-color: var(--primary);
}
.mf-toggle-switch input:checked + .mf-slider::before {
  transform: translateX(22px);
}
.mf-label-text {
  font-size: 0.95rem;
  color: var(--text-medium);
}
.mf-therapist-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}
.mf-therapist-card {
  align-items: flex-start;
  gap: var(--space-xl);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow var(--transition-std), border-color var(--transition-std);
  background-color: var(--bg-white);
}
.mf-therapist-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.mf-therapist-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  padding: var(--space-xl);
  position: relative;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}
.mf-therapist-header:hover {
  background-color: hsl(220, 30%, 99.5%);
}
.mf-counselor-image {
  width: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--bg-white);
  box-shadow: var(--shadow-sm);
}
.mf-therapist-content-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.mf-therapist-details {
  flex-grow: 1;
}
.mf-therapist-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
  margin: 0;
}
.mf-therapist-credentials {
  font-weight: normal;
  font-size: 0.9em;
  color: #555;
}
.mf-therapist-experience {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: var(--space-md);
}
.mf-therapist-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.mf-therapist-tags .mf-tag {
  border: 1px solid #ccc;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 0.9em;
}
.mf-tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  line-height: 1.4;
}
.mf-tag-specialty {
  background-color: var(--primary-light);
  color: var(--primary-text);
  border: 1px solid hsl(var(--primary-hue), 80%, 92%);
}
.mf-tag-missing {
  background-color: var(--warning-light);
  color: var(--warning);
  border: 1px solid hsl(38, 80%, 92%);
}
.mf-tag-missing i {
  font-size: 0.8em;
}
.mf-therapist-bio {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.75;
  margin-top: var(--space-md);
}
.mf-therapist-bio p {
  margin: 8px 0;
}
.mf-therapist-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-md);
  margin-left: auto;
  flex-shrink: 0;
  padding-left: var(--space-md);
  align-self: flex-start;
}
.mf-toggle-availability-btn {
  background: var(--bg-white) !important;
  border: 2px solid var(--border-color) !important;
  color: var(--primary) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  padding: var(--space-sm) var(--space-lg) !important;
  border-radius: var(--radius-md) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: var(--space-sm) !important;
  transition: background-color var(--transition-fast) !important,
border-color var(--transition-fast) !important, color var(--transition-fast) !important;
  white-space: nowrap !important;
  min-height: 42px !important;
}
.mf-toggle-availability-btn:hover {
  background-color: var(--primary-light) !important;
  border-color: var(--primary) !important;
  color: var(--primary-dark) !important;
}
.mf-toggle-availability-btn .mf-btn-icon {
  font-size: 0.85em !important;
  transition: transform var(--transition-std) !important;
}
.mf-toggle-availability-btn[aria-expanded="true"] .mf-btn-icon {
  transform: rotate(180deg) !important;
}
.mf-tag-insurance-status {
  font-size: 0.8rem;
  font-weight: 500;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  background-color: var(--success-light);
  color: var(--success-text);
  display: none; /* Hidden by default */
  align-items: center;
  gap: var(--space-xs);
  border: 1px solid hsl(145, 60%, 92%);
}
.mf-tag-insurance-status i {
  color: var(--success);
  font-size: 0.8em;
}
.mf-therapist-card[data-accepts-insurance="true"] .mf-tag-insurance-status {
  display: inline-flex;
}
.mf-availability-container {
  background-color: var(--bg-input);
  padding: 0 var(--space-xl);
  border-top: 1px solid var(--border-light);
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: max-height 0.4s ease-out, padding-top 0.4s ease-out,
  padding-bottom 0.4s ease-out, visibility 0s linear 0.4s,
  opacity 0.4s ease-out;
}
.mf-therapist-card.mf-open .mf-availability-container {
  max-height: 1200px; /* Large enough to fit content */
  visibility: visible;
  overflow-y: auto;
  opacity: 1;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  transition: max-height 0.4s ease-out, padding-top 0.4s ease-out,
  padding-bottom 0.4s ease-out, visibility 0s linear 0s,
  opacity 0.4s ease-out 0.1s;
}
.mf-availability-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-lg);
}
.mf-slot-filter-controls {
  margin-bottom: var(--space-lg);
  display: flex;
  justify-content: flex-start;
}
.mf-slot-filter-controls .mf-date-filter-wrapper {
  min-width: 240px;
  max-width: 320px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-std);
}
.mf-slot-filter-controls .mf-date-filter-wrapper:focus-within {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus);
}
.mf-slot-filter-controls .mf-date-filter-wrapper .mf-input-icon {
  position: absolute;
  left: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-light);
  pointer-events: none;
  transition: color var(--transition-fast);
}
.mf-slot-filter-controls .mf-date-filter-wrapper:focus-within .mf-input-icon {
  color: var(--primary);
}
.mf-slot-filter-controls .mf-date-filter-wrapper .mf-date-filter-select {
  flex-grow: 1;
  padding: var(--space-md) var(--space-lg);
  padding-left: calc(var(--space-lg) + 1.2rem + var(--space-lg));
  padding-right: calc(var(--space-lg) * 2 + 1.2rem);
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-medium);
  width: 100%;
  height: 60px;
  border-radius: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  opacity: 1;
}
.mf-slot-filter-controls .mf-date-filter-wrapper .mf-date-filter-select option {
  color: var(--text-dark);
  background-color: var(--bg-white);
}
.mf-slot-filter-controls .mf-date-filter-wrapper .mf-dropdown-arrow {
  position: absolute;
  right: var(--space-xl);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--text-light);
  pointer-events: none;
}
.mf-slot-filter-controls .mf-date-filter-wrapper .mf-date-filter-select:disabled {
  opacity: 0.7;
  cursor: default;
}
.mf-date-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.mf-date-slot {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color var(--transition-std), background-color var(--transition-std);
  position: relative;
}
.mf-date-slot:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-light);
}
.mf-date-slot.mf-selected {
  border: 1px solid var(--primary);
  box-shadow: var(--shadow-focus);
  background-color: var(--primary-light);
}
.mf-slot-main {
  font-weight: 600;
}
.mf-slot-day-date {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}
.mf-slot-time {
  font-size: 1.15rem;
  color: var(--primary-dark);
}
.mf-slot-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: auto;
}
.mf-slot-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 3px 0;
}
.mf-slot-tag i {
  width: 15px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.95em;
}
.mf-slot-tag-insurance {
  color: var(--success-text);
  font-weight: 500;
}
.mf-slot-tag-insurance i {
  color: var(--success);
}
.mf-slot-tag-cash {
  color: var(--text-medium);
  font-weight: 500;
}
.mf-slot-tag-cash i {
  color: inherit;
}
.mf-select-slot-btn {
  margin-top: var(--space-lg) !important;
  padding: var(--space-md) var(--space-lg) !important;
  border: 2px solid var(--primary) !important;
  border-radius: var(--radius-md) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background-color var(--transition-std) !important,
color var(--transition-std) !important, border-color var(--transition-std) !important;
  width: 100% !important;
  text-align: center !important;
  background-color: transparent !important;
  color: var(--primary) !important;
  min-height: 46px !important;
}
.mf-select-slot-btn:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: var(--text-on-primary) !important;
}
.mf-select-slot-btn:focus-visible {
  outline: 2px solid var(--primary) !important;
  outline-offset: 2px !important;
}
.mf-date-slot.mf-selected .mf-select-slot-btn {
  background-color: var(--primary) !important;
  color: var(--text-on-primary) !important;
  border-color: var(--primary) !important;
  font-weight: 600 !important;
  cursor: default !important;
}
.mf-date-slot.mf-selected .mf-select-slot-btn:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: var(--text-on-primary) !important;
}
.mf-view-more-btn {
  background: none !important;
  border: 2px solid var(--border-color) !important;
  color: var(--primary) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  padding: var(--space-sm) var(--space-lg) !important;
  border-radius: var(--radius-md) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: var(--space-sm) !important;
  transition: background-color var(--transition-std) !important,
border-color var(--transition-std) !important;
  margin-top: var(--space-lg) !important;
}
.mf-view-more-btn:hover {
  background-color: var(--primary-light) !important;
  border-color: var(--primary) !important;
}
.mf-view-more-btn i {
  font-size: 0.9em !important;
}

/* --- Step 6: Insurance Form Grid --- */
.mf-insurance-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-2xl);
}
.mf-input-field-full-width {
  grid-column: 1 / -1;
}
.mf-form-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}
.mf-reservation-timer-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary-light);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3xl);
  border: 1px solid hsl(var(--primary-hue), 76%, 90%);
}
.mf-reservation-timer-banner p {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-right: var(--space-lg);
  line-height: 1.5;
  margin-bottom: 0px;
}
.mf-timer-display {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  color: var(--error);
  border: 2px solid var(--error);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background-color: var(--bg-white);
  font-size: 0.95rem;
  white-space: nowrap;
}
.mf-timer-display i {
  font-size: 1em;
}

/* --- Step 7: Confirmation --- */
.mf-appointment-summary-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-3xl);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2xl);
  border: 1px solid var(--border-light);
}
.mf-appointment-summary-main {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  flex-grow: 1;
}
.mf-appointment-summary-image {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border-light);
}
.mf-therapist-details-summary {
  flex-grow: 1;
}
.mf-therapist-name-summary {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
}
.mf-therapist-profile-link {
  color: var(--primary);
  margin-left: var(--space-sm);
  font-size: 0.85em;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.mf-therapist-profile-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}
.mf-counseling-type {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: var(--space-xs);
}
.mf-therapist-address {
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.mf-therapist-address i {
  font-size: 0.9em;
  color: var(--text-light);
}
.mf-appointment-cost-time {
  text-align: right;
  flex-shrink: 0;
  min-width: 220px;
}
.mf-copay-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}
.mf-copay-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  display: block;
  line-height: 1.2;
}
.mf-appointment-datetime {
  font-size: 1rem;
  color: var(--text-medium);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}
.mf-appointment-duration {
  font-size: 0.95rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
}
.mf-appointment-duration i {
  font-size: 0.9em;
}
.mf-contact-preference-section {
  margin-bottom: var(--space-3xl);
}
.mf-contact-preference-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-lg);
}
.mf-contact-options.mf-option-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}
.mf-email-opt-out-section {
  margin-top: var(--space-xl);
}

/* --- Step 8: Booking Confirmed Styles --- */
.mf-form-step.mf-step-8 {
  text-align: center;
}
.mf-confirmation-title {
  font-size: 1.9rem;
  color: var(--text-dark);
  margin-bottom: var(--space-lg);
  line-height: 1.35;
  text-align: center;
}
.mf-confirmation-subtitle {
  font-size: 1.05rem;
  color: var(--text-medium);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-3xl);
  line-height: 1.75;
}
.mf-booked-appointment-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  margin-left: auto;
  margin-right: auto;
  max-width: 780px;
  margin-bottom: var(--space-4xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  gap: var(--space-2xl);
  border: 1px solid var(--border-light);
}
.mf-booked-appointment-main {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-grow: 1;
}
.mf-booked-counselor-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--bg-white);
  box-shadow: var(--shadow-sm);
}
.mf-booked-therapist-details {
  flex-grow: 1;
}
.mf-booked-therapist-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
}
.mf-booked-therapist-name .mf-therapist-profile-link {
  margin-left: var(--space-sm);
  font-size: 0.85em;
}
.mf-booked-counseling-type {
  font-size: 1rem;
  color: var(--text-medium);
  margin-bottom: var(--space-sm);
}
.mf-booked-appointment-main .mf-slot-tag {
  background-color: hsl(200, 85%, 96.5%);
  color: hsl(200, 75%, 45%);
  border: 1px solid hsl(200, 70%, 90%);
  font-size: 0.85rem;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}
.mf-booked-appointment-main .mf-slot-tag i {
  margin-right: var(--space-sm);
  color: hsl(200, 75%, 45%);
}
.mf-booked-appointment-cost-time {
  text-align: right;
  flex-shrink: 0;
}
.mf-booked-price {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}
.mf-booked-datetime {
  font-size: 1.05rem;
  color: var(--text-medium);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}
.mf-booked-duration {
  font-size: 0.95rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
}
.mf-booked-duration i {
  font-size: 0.9em;
}
.mf-what-to-do-next-section {
  margin-top: var(--space-4xl);
  text-align: left;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.mf-what-to-do-next-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-2xl);
  text-align: center;
}
.mf-next-actions-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}
.mf-next-action-item {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-std), border-color var(--transition-std);
}
.mf-next-action-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-color);
}
.mf-next-action-item.mf-text-only {
  box-shadow: none;
  background-color: transparent;
  border: 1px dashed var(--border-color);
  padding: var(--space-xl);
}
.mf-next-action-item.mf-text-only:hover {
  background-color: var(--bg-input);
  border-color: var(--border-light);
}
.mf-action-item-content {
  flex-grow: 1;
}
.mf-action-item-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}
.mf-action-item-description {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.65;
}
.mf-action-item-controls {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-shrink: 0;
}
.mf-btn.mf-btn-outline-primary.mf-action-button {
  padding: calc(var(--space-md) - 1px) var(--space-xl);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--primary);
  color: var(--primary);
  background-color: transparent;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-std), color var(--transition-std);
  min-width: 150px;
  text-align: center;
  cursor: pointer;
  line-height: 1.5;
}
.mf-btn.mf-btn-outline-primary.mf-action-button:hover {
  background-color: var(--primary);
  color: var(--text-on-primary);
}

/* --- Form Navigation Footer (Optimized & Fixed) --- */
#app {
  position: relative;
}
.mf-navigation {
  /* Sticky behavior: Yeh parent ke neeche chipak jayega */
  position: sticky;
  bottom: 20px; /* Neeche se fasla */

  /* Layout & Sizing */
  max-width: 960px;
  width: calc(100% - 40px); /* Responsive width with padding */
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;

  /* Visual Styles */
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-white);
  padding: 20px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-nav);
  z-index: 5;
}
.mf-navigation-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: var(--space-md) var(--space-xl) !important;
  border: 2px solid transparent !important;
  border-radius: var(--radius-lg) !important;
  cursor: pointer !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  transition: background-color var(--transition-std) !important,
opacity var(--transition-std) !important, box-shadow var(--transition-std) !important,
border-color var(--transition-std) !important, color var(--transition-std) !important;
  gap: var(--space-sm) !important;
  min-height: 54px !important;
  user-select: none !important;
}
.mf-navigation-button i {
  font-size: 0.9em !important;
}
.mf-navigation-back {
  background-color: transparent !important;
  color: var(--text-medium) !important;
  border-color: var(--border-color) !important;
}
.mf-navigation-back:not(:disabled):hover {
  background-color: var(--bg-input);
  border-color: var(--text-dark);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}
.mf-navigation-back:disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
  background-color: transparent;
  border-color: var(--border-light);
  color: var(--text-disabled);
}
.mf-navigation-next {
  background-color: var(--primary);
  color: var(--text-on-primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.mf-navigation-next:not(:disabled):hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: var(--shadow-md);
}
.mf-navigation-next:disabled {
  background-color: hsl(var(--primary-hue), 70%, 80%);
  border-color: hsl(var(--primary-hue), 70%, 80%);
  opacity: 0.8;
  cursor: not-allowed;
  box-shadow: none;
  color: var(--text-on-primary-dark);
}
.mf-progress-tracker {
  flex-grow: 1;
  text-align: center;
  margin: 0 var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mf-progress-step {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.mf-progress-container {
  width: 100%;
  height: 10px;
  background-color: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-light);
}
.mf-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
  position: relative;
}

/* --- Animations & Utility Classes --- */
@keyframes mf-shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
  40%, 60% { transform: translate3d(3px, 0, 0); }
}
.mf-shake {
  animation: mf-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
.gradient-icon {
  display: inline-block;
  background: linear-gradient(45deg, #411AA8, #78AAFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.full-width-error {
  width: 100%;
  background-color: #fee2e2;
  color: #b91c1c;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
  margin-bottom: 20px;
}
span.required {
  color: #b91c1c;
}
.mf-input-wrapper:has(
  input[type="text"]:not(:placeholder-shown),
  input[type="email"]:not(:placeholder-shown),
  input[type="tel"]:not(:placeholder-shown),
  input[type="text"][disabled][value]:not([value=""]),
  input[type="date"]:valid,
  input[type="date"][disabled][value]:not([value=""]),
  input[type="date"][value]:not([value=""]),
  select[disabled] option:checked:not([value=""]),
  select:not([disabled]) option:checked:not([value=""])
) {
  border-color: var(--primary);
}
.warning-box {
  background-color: #ffe0e0;
  border: 1px solid #ff6b6b;
  padding: 1em;
  margin: 1em 0;
  color: #b00020;
  border-radius: 4px;
}
.warning-box ul {
  padding-left: 1.5em;
  margin: 0;
}
.warning-box li {
  list-style-type: disc;
}
.error-message {
  color: red;
}

.grey-error {
  color: var(--text-grey);
}

.d-none {
  display: none !important;
}
.bold-name {
  color: #411AA8;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .mf-container {
    padding: 0px;
    margin: auto;
  }
  .mf-form {
    padding: var(--space-2xl) var(--space-xl);
  }
  .mf-title { font-size: 1rem; }
  .mf-form-title { font-size: 1.65rem; }
  .mf-form-subtitle { font-size: 1rem; }
  .mf-option-box, .mf-preference-option label {
    font-size: 0.75rem;
  }
  .mf-grid-2,
  .mf-insurance-form-grid,
  .mf-grid,
  .mf-date-slots,
  .mf-contact-options.mf-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .mf-input-field-full-width { grid-column: auto; }
  .mf-counselor-image { width: 75px; height: 75px; }
  .mf-therapist-actions { align-items: flex-start; }
  .mf-appointment-summary-card {
    flex-direction: column;
    align-items: stretch;
  }
  .mf-appointment-cost-time {
    text-align: left;
    margin-top: var(--space-lg);
    min-width: auto;
  }
  .mf-appointment-duration { justify-content: flex-start; }
  .mf-reservation-timer-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
  .mf-timer-display { align-self: flex-start; }
  .mf-confirmation-title { font-size: 1.7rem; }
  .mf-booked-appointment-card {
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-xl);
  }
  .mf-booked-appointment-cost-time {
    text-align: left;
    margin-top: var(--space-lg);
  }
  .mf-booked-duration { justify-content: flex-start; }
  .mf-booked-price { font-size: 1.7rem; }
  .mf-next-action-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }
  .mf-action-item-controls {
    margin-top: var(--space-lg);
    width: 100%;
    justify-content: flex-start;
  }
  .mf-btn.mf-btn-outline-primary.mf-action-button { width: auto; flex-grow: 0; }
  .mf-navigation {
    padding: var(--space-md) var(--space-lg);
    margin-top: 0px;
    bottom: 10px; /* Thora aur qareeb page ke end se */
    /* width: calc(100% - 20px); */
    border-radius: var(--radius-lg);
  }
  .mf-navigation-button {
    min-width: 44px;
    min-height: 44px;
    padding: var(--space-sm);
  }
  .mf-navigation-button .mf-button-text { display: none; }
  .mf-progress-tracker { margin: 0 var(--space-md); }
  .mf-progress-container { max-width: 100%; }
}

@media (max-width: 480px) {
  .mf-container {
    padding: 0px;
  }
  .mf-form {
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-lg);
  }
  .mf-form-title { font-size: 1.45rem; }
  .mf-input-wrapper input,
  .mf-input-wrapper select {
    font-size: 0.95rem;
    height: 56px;
  }
  .mf-option-box,
  .mf-preference-option label {
    padding: var(--space-md);
    min-height: 70px;
  }
  .mf-therapist-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: default;
  }
  .mf-counselor-image { margin-bottom: var(--space-md); }
  .mf-therapist-details { width: 100%; }
  .mf-therapist-actions {
    margin-left: 0;
    margin-top: var(--space-md);
    /* align-items: center; */
    padding: 0;
    width: 100%;
  }
  .mf-toggle-availability-btn { width: auto !important; padding: var(--space-sm) var(--space-xl) !important; }
  .mf-slot-filter-controls { justify-content: center !important; }
  .mf-slot-filter-controls .mf-date-filter-wrapper {
    width: 100% !important;
    max-width: 280px !important;
  }
  .mf-appointment-summary-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .mf-therapist-details-summary { width: 100%; }
  .mf-therapist-address { justify-content: center; }
  .mf-therapist-name-summary { justify-content: center; }
  .mf-copay-amount { font-size: 1.5rem; }
  .mf-confirmation-title { font-size: 1.5rem; }
  .mf-confirmation-subtitle { font-size: 0.95rem; }
  .mf-booked-appointment-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .mf-booked-counselor-image { margin-bottom: var(--space-lg); }
  .mf-booked-therapist-name { justify-content: center; }
  .mf-booked-appointment-main .mf-slot-tag { margin: var(--space-sm) auto; display: inline-flex; }
  .mf-booked-appointment-cost-time { text-align: center; }
  .mf-booked-duration { justify-content: center; }
  .mf-action-item-title { font-size: 1.05rem; }
  .mf-action-item-description { font-size: 0.9rem; }
  .mf-action-item-controls {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }
  .mf-btn.mf-btn-outline-primary.mf-action-button { width: 100%; }
  .mf-navigation {
    padding: var(--space-sm) var(--space-md);
  }
  .mf-navigation-button {
    min-width: 60px;
    min-height: 60px;
    border-radius: var(--radius-md);
  }
  .mf-progress-tracker { margin: 0 var(--space-sm); }

  .mf-therapist-card{
    flex-direction: column;
  }

  .mf-therapist-tags {
    margin-top: 10px;
  }
}

#ast-scroll-top {
  display: none;
}

/* =================================================================
   Therapist Card Layout
   This section styles the main appearance of the therapist card.
================================================================= */

/* The main container for a single therapist's card. */
.mf-therapist-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* Ensures child elements respect the border-radius. */
    transition: all 0.3s ease-in-out;
}

/* Adds a subtle hover effect for better user interaction. */
.mf-therapist-card:hover {
    border-color: #c5c5c5;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Flex container for the card's main content (image + info). */
.mf-card-content {
    display: flex;
    gap: 25px;
    padding: 20px;
}

/* 1. Left Side: Image Wrapper */
.mf-therapist-image-wrapper {
    width: 150px;
    height: 150px;
    flex-shrink: 0; /* Prevents the image container from shrinking on smaller screens. */
}

.mf-counselor-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents the image from being distorted. */
    border-radius: 50%; /* Creates a circular image. */
    border: 3px solid #f0f0f0;
}

.mf-counselor-image-final-preview {
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #f0f0f0;
}

/* 2. Right Side: Information Wrapper */
.mf-therapist-info-wrapper {
    flex-grow: 1; /* Allows this section to take up all available space. */
    display: flex;
    flex-direction: column; /* Stacks children vertically (details and actions). */
}

.mf-therapist-details {
    flex-grow: 1; /* Pushes the action button to the bottom. */
}

.mf-therapist-name {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.4em;
    color: #333;
}

.mf-therapist-credentials {
    font-size: 0.7em;
    color: #777;
    font-weight: normal;
}

.mf-therapist-bio {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Flex container for metadata like specialties and location. */
.mf-therapist-meta {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.mf-therapist-specialties,
.mf-therapist-location {
    flex: 1;
    min-width: 180px; /* Ensures they don't get too squished. */
}

.mf-therapist-specialties strong,
.mf-therapist-location strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-size: 1em;
}

/* Flex container for individual tags. */
.mf-therapist-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Styling for individual tags. */
.mf-tag {
    background-color: #f2f6fc;
    color: #4a6a9b;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    border: 1px solid #d8e2f0;
}

/* The section containing the action button. */
.mf-therapist-actions {
    margin-top: 20px; /* Provides space from the details above. */
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-left: 0px;
    width: -webkit-fill-available;
}

.mf-next-availability {
    font-size: 0.9em;
    color: #666;
}

/* Primary call-to-action button. */
.mf-see-all-availability-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: nowrap; /* Prevents button text from wrapping. */
}

.mf-see-all-availability-btn:hover {
    background-color: #0056b3;
}

/* =================================================================
   Expandable Availability Section
   This handles the accordion-style show/hide functionality.
================================================================= */

/* The container for the time slots, hidden by default. */
.mf-availability-slots-container {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease, padding 0.5s ease;
    padding: 0 20px; /* Animates padding to prevent content jump. */
}

/* When the card has the .mf-open class, this container becomes visible. */
.mf-therapist-card.mf-open .mf-availability-slots-container {
    max-height: 1500px; /* A large value to accommodate dynamic content. */
    opacity: 1;
    visibility: visible;
    padding: 20px; /* Apply padding when open. */
}

/* =================================================================
   Responsive Design (for Mobile & Tablets)
   Adjusts the layout for smaller screen sizes.
================================================================= */
@media (max-width: 768px) {
    /* Changes flex direction to stack items vertically. */
    .mf-card-content {
        flex-direction: column;
        align-items: center; /* Center-aligns all content on mobile. */
        text-align: center;
    }

    .mf-therapist-info-wrapper {
        width: 100%;
        align-items: center;
    }

    .mf-therapist-meta {
        flex-direction: column;
        width: 100%;
    }

    /* Centers the tags within their container. */
    .mf-therapist-tags {
        justify-content: center;
    }
    
    .mf-therapist-actions {
        flex-direction: column;
        width: 100%;
    }

    /* Makes the button full-width on mobile for easier tapping. */
    .mf-see-all-availability-btn {
        width: 100%;
    }
}

/* 
   Your existing styles for .mf-tag might look something like this.
   If not, you can add these styles to ensure the location link looks like a tag.
*/
.mf-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: #eef1f5;
    border-radius: 16px;
    font-size: 0.875rem;
    margin: 4px;
}

/* 
  NEW CSS RULES
  These styles ensure the distance is plain text and the location is a proper link.
*/
.mf-location-link {
    text-decoration: none; /* Removes underline from the link */
    color: #0056b3; /* Optional: Sets a distinct link color */
    cursor: pointer;
}

.mf-location-link:hover {
    text-decoration: underline; /* Adds underline on hover for better UX */
}

.mf-distance-text {
    /* Resets any button-like styles that might be inherited */
    background-color: transparent;
    padding: 4px; /* Adjust padding to align vertically with the location tag */
    margin: 4px;
    font-size: 0.875rem;
    color: inherit;
}


/* =================================================================
   Expandable Availability Section
   This handles the accordion-style show/hide functionality.
================================================================= */

/* The container for the time slots, hidden by default. */
.mf-availability-slots-container {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease, padding 0.5s ease;
    padding: 0 20px; /* Animates padding to prevent content jump. */
}

/* When the card has the .mf-open class, this container becomes visible. */
.mf-therapist-card.mf-open .mf-availability-slots-container {
    max-height: 1500px; /* A large value to accommodate dynamic content. */
    opacity: 1;
    visibility: visible;
    padding: 20px; /* Apply padding when open. */
}

/* =================================================================
   Responsive Design (for Mobile & Tablets)
   Adjusts the layout for smaller screen sizes.
================================================================= */
@media (max-width: 768px) {
    /* Changes flex direction to stack items vertically. */
    .mf-card-content {
        flex-direction: column;
        align-items: center; /* Center-aligns all content on mobile. */
        text-align: center;
    }

    .mf-therapist-info-wrapper {
        width: 100%;
        align-items: center;
    }

    .mf-therapist-meta {
        flex-direction: column;
        width: 100%;
    }

    /* Centers the tags within their container. */
    .mf-therapist-tags {
        justify-content: center;
    }
    
    .mf-therapist-actions {
        flex-direction: column;
        width: 100%;
    }

    /* Makes the button full-width on mobile for easier tapping. */
    .mf-see-all-availability-btn {
        width: 100%;
    }
}

.p-select-option.p-select-option-selected {
    background: var(--primary-dark) !important;
    color: var(--bg-white) !important;
}

.p-select:not(.p-disabled).p-focus {
    border-color: var(--primary-dark) !important;
}

.mf-step-2-show-more-btn {
  display: flex;
  justify-content: center;
  margin: 30px 0px 0px 0px;
}