/* ========================================
   COMPREHENSIVE BUTTON FIXES - ALL SIZES
   ======================================== */

/* Reset all button styles for proper spacing */
.btn-default,
.btn-highlighted,
a.btn-default,
a.btn-highlighted,
button.btn-default,
button.btn-highlighted {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 14px 85px 14px 28px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.5s ease-in-out !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Icon spacing inside buttons */
.btn-default i,
.btn-highlighted i,
.btn-default .fa,
.btn-highlighted .fa,
.btn-default .fas,
.btn-highlighted .fas {
  margin-left: 0 !important;
  margin-right: 0 !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  font-size: 14px !important;
}

/* Prevent text overflow */
.btn-default span,
.btn-highlighted span {
  flex-shrink: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Mobile Responsive Buttons */
@media (max-width: 768px) {
  .btn-default,
  .btn-highlighted,
  a.btn-default,
  a.btn-highlighted,
  button.btn-default,
  button.btn-highlighted {
    padding: 12px 70px 12px 20px !important;
    font-size: 13px !important;
    gap: 8px !important;
    min-width: auto !important;
    width: auto !important;
    max-width: 100% !important;
  }

  .btn-default i,
  .btn-highlighted i,
  .btn-default .fa,
  .btn-highlighted .fa {
    font-size: 12px !important;
  }

  /* Long text buttons wrap on mobile */
  .btn-default,
  .btn-highlighted {
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.4 !important;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .btn-default,
  .btn-highlighted,
  a.btn-default,
  a.btn-highlighted {
    padding: 10px 60px 10px 16px !important;
    font-size: 12px !important;
    gap: 6px !important;
  }

  .btn-default i,
  .btn-highlighted i {
    font-size: 11px !important;
  }
}

/* Specific button containers */
.hero-btn,
.work-step-btn,
.treatment-cta,
.commitment-btn,
.popup-cta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 15px !important;
  justify-content: center !important;
}

@media (max-width: 768px) {
  .hero-btn,
  .work-step-btn,
  .treatment-cta,
  .commitment-btn,
  .popup-cta {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .hero-btn a,
  .work-step-btn a,
  .treatment-cta a,
  .commitment-btn a {
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
  }
}

/* Header button special case */
.header-btn a.btn-default,
.header-btn a.btn-highlighted {
  padding: 12px 65px 12px 24px !important;
  font-size: 14px !important;
}

@media (max-width: 768px) {
  .header-btn a.btn-default,
  .header-btn a.btn-highlighted {
    padding: 12px 60px 12px 20px !important;
    font-size: 13px !important;
  }
}

/* Popup buttons */
.popup-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 24px !important;
}

@media (max-width: 768px) {
  .popup-btn {
    padding: 10px 18px !important;
    font-size: 13px !important;
  }
}

/* Fix arrow icons specifically */
.fa-arrow-right,
.fa-chevron-right,
.fa-chevron-down {
  transition: transform 0.3s ease !important;
}

.btn-default:hover .fa-arrow-right,
.btn-highlighted:hover .fa-arrow-right {
  transform: translateX(3px) !important;
}

/* Ensure buttons never break layout */
.btn-default,
.btn-highlighted {
  box-sizing: border-box !important;
  min-height: 44px !important;
}

@media (max-width: 768px) {
  .btn-default,
  .btn-highlighted {
    min-height: 40px !important;
  }
}
