/* Global styles and smooth transitions */
* {
  transition: all 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body, html {
  overflow-x: hidden !important;
  min-height: 100vh !important;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

body {
  font-family: system-ui, -apple-system, sans-serif;
}

/* LAYOUT FIX: Clean root container layout */
.flex.flex-1.items-center.justify-center.w-full.p-4 {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* LAYOUT FIX: Main form container */
.flex.rounded-2xl.shadow-2xl.bg-white.overflow-hidden {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  margin: 0 auto !important;
  border-radius: 1rem !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden !important;
}

/* LAYOUT FIX: Sidebar - completely rebuilt */
#sidebar {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 240px !important;
  background-color: #e0e7ff !important;
  border-top-left-radius: 1rem !important;
  border-bottom-left-radius: 1rem !important;
  z-index: 1 !important;
  overflow: hidden !important;
  padding: 0 !important;
  transform: none !important;
  min-width: 260px;
  width: 260px;
  max-width: 300px;
}

/* LAYOUT FIX: Sidebar content positioning */
#sidebar .flex-1 {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 100% !important;
  padding: 1rem !important;
}

/* LAYOUT FIX: Main content area with proper sidebar adjustment */
main.flex-1 {
  flex: 1 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  background: white !important;
  padding: 0 !important;
  margin-left: 240px !important;
  width: calc(100% - 240px) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Remove min-height and width from this wrapper to prevent overflow */
.flex.flex-1.items-center.justify-center.w-full.p-4 {
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  /* Remove width: 100% and min-height: 100vh */
  box-sizing: border-box !important;
  overflow: hidden !important; /* Prevent scrollbars from wrapper */
}

/* Remove margin-left and padding-right from main.flex-1 */
main.flex-1 {
  margin-left: 0 !important;
  padding-right: 0 !important;
}

/* Center the form container inside the main area */
.flex.flex-1.items-center.justify-center.w-full.p-4 {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

/* Make the white card always centered */
.flex.rounded-2xl.shadow-2xl.bg-white.overflow-hidden {
  margin: 0 auto !important;
  /* ...existing code... */
}

/* LAYOUT FIX: Form sections and content */
.main-content-section {
  display: none;
  width: 100%;
  opacity: 1;
  transform: translateX(0);
}

.main-content-section.active {
  display: block !important;
  opacity: 1;
  transform: translateX(0);
  animation: slideInFromRight 0.5s ease-out;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* LAYOUT FIX: Mobile responsiveness */
@media (max-width: 767px) {
  #sidebar {
    display: none !important;
  }
  
  main.flex-1 {
    padding-left: 20px !important;
    border-radius: 1rem !important;
  }
  
  .flex.rounded-2xl.shadow-2xl.bg-white.overflow-hidden {
    width: 95% !important;
    max-width: 500px !important;
    margin: 0 !important;
  }
}

@media (max-width: 1024px) {
  #sidebar {
    min-width: 200px;
    width: 200px;
    max-width: 220px;
  }
}

/* Add smooth scrolling and better transitions */
* {
  transition: all 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
}

/* Floating animation for main container */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

/* Enhanced form container with floating effect */
.form-container {
  /* Remove floating animation for stability */
  animation: none !important;
  transform: none !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
  background: #fff !important;
}

/* Fix main content sections to be visible and properly positioned */
.main-content-section {
  display: none;
  width: 100%;
  max-width: 100%;
  opacity: 1;
  transform: translateX(0);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-content-section.active {
  display: block !important;
  opacity: 1;
  transform: translateX(0);
  animation: slideInFromRight 0.5s ease-out;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enhanced input animations */
input, textarea, select {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

input:hover, textarea:hover, select:hover {
  border-color: #64748b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Animated buttons with hover effects */
button {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Ripple effect for buttons */
button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: width 0.6s, height 0.6s;
  transform: translate(-50%, -50%);
  z-index: 0;
}

button:active::before {
  width: 300px;
  height: 300px;
}

button * {
  position: relative;
  z-index: 1;
}

/* Enhanced progress indicators with pulse effects */
.progress-row {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: transparent;
  border-radius: 0.75rem;
  cursor: pointer;
  z-index: 1;
  width: 100%;
  min-height: 60px;
}

.progress-row.active {
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(29,78,216,0.07);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
}

/* Fix for SVG icons in sidebar to ensure consistent display */
.progress-row .progress-icon {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: #fff !important;
  border: 2px solid #2563eb !important;
  color: #2563eb !important;
  z-index: 2 !important;
  transition: background 0.2s, color 0.2s, border 0.2s !important;
  flex-shrink: 0 !important;
  overflow: visible !important;
}

.progress-row .progress-icon svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  stroke: currentColor !important;
}

.progress-row.active .progress-icon {
  background: #2563eb !important;
  color: #fff !important;
}

/* LAYOUT FIX: Ensure buttons are properly styled */
.arrow-btn {
  background-color: #1d4ed8;
  color: white;
  border-radius: 50%;
  font-size: 22px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  border: none;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  overflow: hidden;
  z-index: 5;
  min-width: 110px !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  height: auto !important;
}

/* LAYOUT FIX: Products container needs proper styling */
#productsContainer {
  max-height: 160px !important;
  height: 160px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 0.5rem !important;
  padding: 0.5rem !important;
  margin-bottom: 1rem !important;
  /* Add smooth scrolling */
  scroll-behavior: smooth !important;
}

/* Prevent the entire container from scrolling with product list */
.bg-white.rounded-2xl.shadow-xl.p-6, 
.sm\:p-8.w-full.max-w-lg.mx-auto.text-center {
  overflow: visible !important;
  max-height: none !important;
}

/* Ensure the main form container doesn't grow unnecessarily tall */
.flex.rounded-2xl.shadow-2xl.bg-white.overflow-hidden {
  overflow: hidden !important; 
  /* max-height: 650px !important; */ /* Removed to allow form to expand for camera */
}

/* Mobile-specific adjustments for product container */
@media (max-width: 640px) {
  #productsContainer .flex.items-center.justify-between {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }
  #productsContainer .flex.items-center.gap-2,
  #productsContainer .flex.items-center {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.5rem !important;
  }
}

@media (max-width: 640px) {
  #productsContainer {
    max-height: 120px !important;
    height: 120px !important;
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  main.flex-1 {
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  .flex.flex-1.items-center.justify-center.w-full.p-4 {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  .flex.rounded-2xl.shadow-2xl.bg-white.overflow-hidden {
    max-width: 98vw !important;
    max-height: 98vh !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
}

@media (max-width: 767px) {
  body, html {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    min-height: 100vh !important;
    height: 100% !important;
    background: #f8fafc !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }

  #sidebar {
    display: none !important;
  }

  .flex.rounded-2xl.shadow-2xl.bg-white.overflow-hidden.form-container,
  .flex.rounded-2xl.shadow-2xl.bg-white.overflow-hidden {
    flex-direction: column !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    background: #fff !important;
    overflow-y: visible !important;
  }

  .flex.flex-1.items-center.justify-center.w-full.p-4 {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
    height: auto !important;
    padding-top: 0 !important;
  }

  main.flex-1,
  main.flex-1.sm\:flex {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  .p-6.sm\:p-8.w-full.max-w-lg.mx-auto.text-center {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
    background: #fff !important;
  }
}

/* --- MOBILE: Crop/wrap form elements to fit screen and center --- */
@media (max-width: 767px) {
  html, body {
    overflow-x: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }

  /* Center and crop the inner content */
  .p-6.sm\:p-8.w-full.max-w-lg.mx-auto.text-center,
  .main-content-section {
    width: 100vw !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  /* Make form elements fit the container, but exclude checkboxes */
  input:not([type="checkbox"]), button, select, textarea {
    width: 100% !important;
    max-width: 380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    display: block !important;
  }
}

@media (max-width: 767px) {
  input:not([type="checkbox"]), button, select, textarea {
    width: 100% !important;
    max-width: 380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    display: block !important;
    text-align: center !important;
    padding: 0.75rem !important;
    border-radius: 0.5rem !important;
    font-family: inherit !important;
  }
}

/* --- MOBILE: Crop/wrap form elements to fit screen and center --- */
@media (max-width: 767px) {
  html, body {
    overflow-x: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }

  /* Center and crop the form container */
  .flex.rounded-2xl.shadow-2xl.bg-white.overflow-hidden.form-container,
  .flex.rounded-2xl.shadow-2xl.bg-white.overflow-hidden {
    width: auto !important;
    max-width: 420px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow-x: hidden !important;
    align-items: center !important;
  }

  /* Center and crop the inner content */
  .p-6.sm\:p-8.w-full.max-w-lg.mx-auto.text-center,
  .main-content-section {
    width: auto !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  /* Make form elements fit the container */
  input, button, select, textarea {
    width: 100% !important;
    max-width: 380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  /* Only show the active step/section */
  .main-content-section {
    display: none !important;
  }
}

@media (max-width: 767px) {
  input:not([type="checkbox"]), button, select, textarea {
    width: 100% !important;
    max-width: 380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    display: block !important;
    text-align: center !important;
    padding: 0.75rem !important;
    border-radius: 0.5rem !important;
    font-family: inherit !important;
  }
}
/* --- Fix product list controls on mobile --- */
@media (max-width: 767px) {
  /* Only apply 100% width to inputs/buttons that are direct children of .main-content-section, not inside #productsContainer */
  .main-content-section > input,
  .main-content-section > button,
  .main-content-section > select,
  .main-content-section > textarea {
    width: 100% !important;
    max-width: 380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    display: block !important;
    text-align: center !important;
    padding: 0.75rem !important;
    border-radius: 0.5rem !important;
    font-family: inherit !important;
  }

  /* Product list controls: keep buttons and qty input inline and compact */
  #productsContainer .flex.items-center.gap-2,
  #productsContainer .flex.items-center {
    flex-direction: row !important;
    gap: 0.5rem !important;
    width: auto !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }
  #productsContainer button,
  #productsContainer input[type="number"] {
    width: auto !important;
    min-width: 2.2rem !important;
    max-width: 3.5rem !important;
    padding: 0.5rem !important;
    margin: 0 !important;
    font-size: 1rem !important;
    text-align: center !important;
    border-radius: 0.5rem !important;
  }
  #productsContainer input[type="number"] {
    width: 3.5rem !important;
    min-width: 2.5rem !important;
    max-width: 4rem !important;
  }
  #productsContainer .font-semibold {
    word-break: break-word !important;
    white-space: normal !important;
    font-size: 0.97rem !important;
  }
  #productsContainer .text-xs {
    font-size: 0.85rem !important;
  }
}

/* On very small screens, stack product row vertically but keep controls inline */
@media (max-width: 480px) {
  #productsContainer .flex.items-center.justify-between {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
  }
  #productsContainer .flex.items-center.gap-2,
  #productsContainer .flex.items-center {
    justify-content: center !important;
    margin-top: 0.5rem !important;
  }
}

/* Loading states with spinner animations */
.loading-state {
  position: relative;
}

.loading-state::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #e2e8f0;
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}

.loading-state.active::after {
  opacity: 1;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Smooth modal animations */
.modal {
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal > div {
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal:not(.hidden) > div {
  transform: scale(1) translateY(0);
}

/* Floating payment methods */
footer {
  animation: float 4s ease-in-out infinite;
  animation-delay: 1s;
}

/* Micro-interactions for better UX */
.clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}

.clickable:hover {
  transform: translateY(-1px);
}

.clickable:active {
  transform: translateY(1px);
}

/* Enhanced scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #64748b, #475569);
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #475569, #334155);
}

/* Add some staggered animations for elements appearing */
.stagger-animation > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced splash screen with smooth fade out */
#splash {
  position: fixed;
  inset: 0;
  background: #00336c !important;
  /* background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%); */ /* old */
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: visible;
  pointer-events: auto;
}

#splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Hide everything behind splash initially with smooth transition */
body.splash-active {
  overflow: hidden;
}

body.splash-active > *:not(#splash) {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* Show content smoothly when splash is removed */
body:not(.splash-active) > *:not(#splash) {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

/* Footer styles */
.fidia-footer {
  background: #1d4ed8 !important;
  color: #fff !important;
  padding: 1rem 0 0.5rem 0 !important;
  margin-top: 2rem !important;
  position: relative !important;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  width: 100vw;
  box-shadow: none !important;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  font-size: 0.98rem !important;
  min-height: unset !important;
  animation: none !important;
  transition: none !important;
}

.fidia-footer * {
  animation: none !important;
  transition: none !important;
}

@media (max-width: 900px) {
  .fidia-footer {
    padding: 0.7rem 0 0.3rem 0 !important;
    font-size: 0.93rem !important;
    border-radius: 1rem 1rem 0 0 !important;
  }
}

#sidebar .progress-text {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
}

/* --- QR Scanner: Always expand form and show warning/feedback --- */
#qrScannerContainer {
  min-height: 300px !important;
  height: auto !important;
  max-height: none !important;
}

@media (max-width: 767px) {
  #qrScannerContainer {
    min-height: 220px !important;
    height: auto !important;
    max-height: none !important;
  }
}

/* Ensure elements with .hidden class are always hidden */
.hidden {
  display: none !important;
}

/* Accept/Refuse Conditions Banner Buttons */
#acceptConditionsBtn,
#refuseConditionsBtn {
  padding: 0.5rem 1.5rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
#acceptConditionsBtn:hover,
#refuseConditionsBtn:hover {
  background: #1d4ed8;
}
#acceptConditionsBtn:active,
#refuseConditionsBtn:active {
  background: #1741b6;
}

/* Custom styled checkbox for all pages */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  border: 2px solid #2563eb;
  width: 1.15em;
  height: 1.15em;
  border-radius: 0.25em;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  margin-right: 0.5em;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
input[type="checkbox"]:checked {
  background-color: #2563eb;
  border-color: #2563eb;
}
input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 0.32em;
  top: 0.08em;
  width: 0.3em;
  height: 0.6em;
  border: solid #fff;
  border-width: 0 0.18em 0.18em 0;
  transform: rotate(45deg);
  display: block;
}
input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px #93c5fd;
}
label {
  cursor: pointer;
}

@media (max-width: 767px) {
  input[type="checkbox"] {
    width: auto !important;
    min-width: 1.15em !important;
    max-width: 1.15em !important;
    display: inline-block !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    margin-right: 0.5em !important;
  }
}

/* Update all blue colors to #00336c for brand consistency */
:root {
  --fidia-blue: #00336c;
}

/* Only set background for bg-blue-* classes */
.bg-blue-800, .bg-blue-600, .bg-blue-700, .bg-blue-50, .bg-blue-100, .bg-blue-200, .from-blue-100, .to-indigo-100, .bg-gradient-to-b, .bg-gradient-to-r, .bg-gradient-to-l, .bg-gradient-to-t {
  background-color: var(--fidia-blue) !important;
}

/* Only set text color for text-blue-* classes */
.text-blue-800, .text-blue-700, .text-blue-200, .text-blue-100 {
  color: var(rgb(0, 0, 0)) !important;
}

/* Only set border color for border-blue-* classes */
.border-blue-200, .border-blue-400, .border-blue-600, .border-blue-800 {
  border-color: var(--fidia-blue) !important;
}

/* Remove forced color:white from .bg-blue-* classes */
/* Remove forced background from .text-blue-* classes */

/* Footer: ensure text is white on dark background */
.fidia-footer, .fidia-footer * {
  color: #fff !important;
}

/* Form titles: ensure text is brand blue on white background */
.main-content-section h1, .main-content-section h2, .main-content-section h3, .main-content-section h4 {
  color: var(--fidia-blue) !important;
  background: transparent !important;
}

/* Ensure all text is white on blue backgrounds for brand consistency */
.bg-blue-800, .bg-blue-700, .bg-blue-600, .fidia-footer {
  color: #fff !important;
}
.bg-blue-800 *, .bg-blue-700 *, .bg-blue-600 *, .fidia-footer * {
  color: #fff !important;
}

/* Ensure the class 'text-white-600' renders as white text */
.text-white-600 {
  color: #fff !important;
}

/* Make doctor info box text white */
#doctorInfo,
#doctorInfo * {
  color: #fff !important;
}