/* =============================================================================
   CONSULTATION.CSS
   Styles for the consultation flow: pet selection, booking, symptoms form.
   Structure:
     1. Base / Layout
     2. Navigation Menu
     3. Pet Cards
     4. Form Controls & Buttons
     5. Symptoms Container
     6. Booking Page (3-column layout)
     7. Responsive (max-width: 1100px → 768px → 700px → 480px)
   ============================================================================= */


/* =============================================================================
   1. BASE / LAYOUT
   ============================================================================= */

body {
  /* Prevent horizontal scrollbar caused by scale() transforms */
  overflow-x: hidden;
}

.content-area {
  width: 100%;
  margin-top: 20px;
  padding: 0;
}

/* Centered column container used by most steps */
.consultation-step-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Wide variant — used by steps (like booking) that need the full available
   width instead of the standard narrow 960px centered column. */
.consultation-step-container.consultation-step-container--wide {
  max-width: none;
  align-items: stretch;
  justify-content: flex-start;
}

/* Step headings */
.consultation-step-title {
  margin-bottom: 20px;
  color: #333;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

/* Centered wrapper for the Next button */
.next-button-container {
  display: flex;
  justify-content: center;
  margin-top: 5px;
}


/* =============================================================================
   2. NAVIGATION MENU (currently hidden — toggle display to enable)
   ============================================================================= */

.left-menu {
  display: none; /* set to flex to show */
  flex-direction: row;
  justify-content: flex-start;
  width: 100%;
  margin-top: 20px;
  padding: 10px;
  background-color: #f4f4f4;
  box-sizing: border-box;
}

.menu-item {
  margin-right: 20px;
  font-size: 16px;
}

.menu-item a {
  color: #333;
  text-decoration: none;
}

.menu-item a:hover,
.menu-item.active a {
  color: #007bff;
}

.menu-item.active a {
  font-weight: bold;
}


/* =============================================================================
   3. PET CARDS
   ============================================================================= */

/* Cards container — wraps and centers cards, allows scale without clipping */
.consultation-pet-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
  padding: 10px;
  overflow: visible;
  box-sizing: border-box;
}

/* Custom scrollbar (visible when overflow-x: auto is active) */
.consultation-pet-cards-container::-webkit-scrollbar { height: 8px; }
.consultation-pet-cards-container::-webkit-scrollbar-track { background: #eee; border-radius: 10px; }
.consultation-pet-cards-container::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
.consultation-pet-cards-container::-webkit-scrollbar-thumb:hover { background: #007bff; }

/* Individual card */
.consultation-pet-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 220px;
  min-height: 280px;
  padding: 15px;
  background-color: #f4f4f4;
  border: 3px solid transparent; /* reserves space so selected border never shifts layout */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  text-align: center;
  transition: transform 0.3s ease-in-out, border-color 0.2s ease-in-out;
}

.consultation-pet-card:hover {
  transform: scale(1.05);
}

.consultation-pet-card.selected {
  border-color: #FFDE59;
}

/* Circular image container */
.consultation-pet-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #e0e0e0; /* fallback while image loads */
}

/* Highlight ring on selected card image */
.consultation-pet-card.selected .consultation-pet-image-container {
  box-shadow: 0 0 0 3px #FFDE59;
  transition: box-shadow 0.2s ease-in-out;
}

.consultation-pet-card-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

/* Pet card text */
.consultation-pet-details {
  margin-top: 10px;
  text-align: center;
}

.consultation-pet-name {
  font-size: 18px;
  font-weight: bold;
}

.consultation-pet-info {
  margin: 4px 0;
  color: #555;
  font-size: 12px;
  line-height: 1.4;
}

.consultation-pet-info .date-line {
  display: inline-block;
  white-space: nowrap;
}

/* Select button hidden (selection handled by card click) */
.select-button {
  display: none;
}


/* =============================================================================
   4. FORM CONTROLS & BUTTONS
   ============================================================================= */

.consultation-label {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: bold;
}

.consultation-form-control {
  width: 100%;
  max-width: 300px;
  max-height: 50px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

/* Primary action button */
button.consultation-next-button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #FFDE59;
  color: black;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button.consultation-next-button:hover {
  background-color: #0056b3;
  color: white;
}

button.consultation-next-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Complaint-specific next button (blue variant) */
.consultation-next-button-complaint {
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}


/* =============================================================================
   5. SYMPTOMS CONTAINER
   ============================================================================= */

.consultation-symptoms-container {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pet-details-summary {
  margin-bottom: 20px;
}

.pet-details-summary h4 {
  margin-bottom: 10px;
  font-size: 18px;
}

.submit-symptoms-button {
  text-align: center;
}

.submit-symptoms-button button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.submit-symptoms-button button:hover {
  background-color: #0056b3;
}

.submit-symptoms-button button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}


/* =============================================================================
   6. BOOKING PAGE — 3-COLUMN LAYOUT
   ============================================================================= */

/* NOTE: The booking page's grid/column/sticky-offset CSS now lives entirely
   inside ConsultationBooking.js (scoped <style jsx> block), so it can use
   the dynamic --sticky-offset variable and stay in one place. The old
   duplicate rules here (.consultation-booking-container, .booking-layout,
   .booking-filters, .booking-vets, .booking-right) were removed because a
   hardcoded `.booking-vets { width: 500px }` and `top: 260px` were silently
   overriding the component's real styles depending on CSS load order. */


/* =============================================================================
   7. RESPONSIVE
   ============================================================================= */

/* Tablet — 2 cols: filters + list; AI panel spans full width below */
@media (max-width: 1100px) {
}

/* Small tablet / large mobile */
@media (max-width: 768px) {
  .menu-item {
    font-size: 14px;
  }

  .consultation-pet-card {
    width: 190px;
    padding: 12px;
  }

  .consultation-pet-name {
    font-size: 14px;
  }

  .consultation-pet-info {
    font-size: 11px;
  }

  /* Hamburger menu shown on desktop is hidden on mobile */
  .hamburger-menu {
    display: none;
  }
}

/* Mobile — single column, everything stacks */
@media (max-width: 700px) {
  .consultation-booking-container {
    padding: 0 8px;
  }

  .consultation-step-container {
    padding: 12px;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .consultation-pet-card {
    width: 170px;
  }

  .consultation-pet-info .date-line {
    white-space: normal; /* allow wrapping on very small screens */
  }
}