/* Custom CSS Fixes for Good Dogz KC Website */
/* This file loads LAST to override all other styles */

/* ========================================
   1. PROBLEM CARDS - CENTER ALL CONTENT 
   ======================================== */
.problem-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important; /* Centers content horizontally */
  justify-content: center !important; /* Centers content vertically */
  text-align: center !important;
}

.problem-card * {
  text-align: center !important;
}

/* Override Tailwind's .problem-icon class */
.problem-icon {
  display: block !important;
  margin: 0 auto 1.5rem auto !important;
}

/* Target all images in problem cards */
.problem-card img {
  display: block !important;
  margin: 0 auto 1.5rem auto !important;
}

/* ========================================
   2. FREE CONSULTATION SECTION
   ======================================== */
/* Center consultation images */
img[src*="bowl"] {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 1.5rem !important;
}

/* Make consultation button pill-shaped */
.landing-consultation-button {
  border-radius: 9999px !important;
  padding: 1rem 2.5rem !important;
}

.consultation-trigger {
  border-radius: 9999px !important;
  padding: 1rem 2.5rem !important;
}

/* ========================================
   3. IN-HOME & BOARD TRAINING CARDS
   ======================================== */
/* Center all content in training package cards */
#inhome-content .problem-card,
#board-content .problem-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

/* Center images in training package cards */
#inhome-content .problem-icon,
#board-content .problem-icon {
  display: block !important;
  margin: 0 auto 1.5rem auto !important;
}

#inhome-content img,
#board-content img {
  display: block !important;
  margin: 0 auto 1.5rem auto !important;
}

/* ========================================
   4. MEET THE TRAINERS SECTION - FIX PADDING
   ======================================== */
/* Override section padding for better content width utilization */
.about-section {
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

.about-section > div {
  max-width: 1200px !important;
}

#trainers {
  padding-left: 2rem !important;
  padding-right: 2rem !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
}

/* Responsive padding for tablets */
@media (max-width: 1024px) {
  .about-section {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  #trainers {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* Responsive padding for mobile */
@media (max-width: 768px) {
  .about-section {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  #trainers {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Responsive padding for small mobile */
@media (max-width: 480px) {
  .about-section {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  
  #trainers {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

/* ========================================
   5. MODAL LOADING GLITCH FIX
   ======================================== */
/* CRITICAL: Hide modal completely during page load to prevent flash */
.consultation-modal {
  display: none !important; /* Force hidden during load */
  visibility: hidden !important;
  opacity: 0 !important;
  z-index: -9999 !important; /* Ensure it's completely out of view */
}

/* Only show modal when explicitly activated */
.consultation-modal.active {
  display: flex !important; /* Override display:none when active */
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 9999 !important;
  animation: modalFadeIn 0.35s ease-out;
}

/* Ensure backdrop is also hidden by default */
.consultation-modal-backdrop {
  display: none !important;
}

.consultation-modal.active .consultation-modal-backdrop {
  display: block !important;
}

/* Smooth fade-in animation */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure thankyou and legal modals are also hidden */
.thankyou-modal,
.legal-modal {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.thankyou-modal.active,
.legal-modal.active {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ========================================
   6. NAVIGATION BAR FIXES
   ======================================== */
#navbar-container {
  border-radius: 9999px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
}

.solid-white-navbar {
  border-radius: 9999px !important;
  overflow: hidden !important;
}

#progress-ring-svg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  border-radius: 9999px !important;
}
