/* Banner image switching for responsive design */

/* Show desktop banner by default */
.banner-desktop {
  display: block !important;
}

.banner-mobile {
  display: none !important;
}

/* On mobile, hide desktop and show mobile banner */
@media (max-width: 768px) {
  .banner-desktop {
    display: none !important;
  }

  .banner-mobile {
    display: block !important;
  }

  .hero-subnav {
    display: none !important;
  }

  /* Hide desktop slider elements on mobile */
  .hero-slider-track,
  .hero-slider-prev,
  .hero-slider-next,
  .hero-slider-dots {
    display: none !important;
  }

  /* Show mobile slider elements on mobile */
  .hero-slider-track-mobile,
  .hero-slider-prev-mobile,
  .hero-slider-next-mobile,
  .hero-slider-dots-mobile {
    display: flex !important;
  }

  .hero-slider-track-mobile {
    display: block !important;
  }
}

/* Optimize hero banner height on mobile */
/* Hero banner spacing for tablet */
@media (max-width: 1024px) {
  .hero-banner {
    margin-top: 90px;
    margin-left: 16px;
    margin-right: 16px;
    width: calc(100% - 32px);
    height: 360px;
    border-radius: 20px;
  }

  /* Feature icons - 2x2 grid on tablet */
  .features-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .feature-box {
    min-height: 160px;
    padding: 16px 14px;
  }

  /* Tablet carousel buttons */
  .nav-arrows {
    gap: 8px;
  }

  .arrow-btn {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--border);
    font-size: 13px;
  }
}

/* Reorder form above text on mobile */
@media (max-width: 900px) {
  .why-choose-grid {
    display: flex;
    flex-direction: column-reverse;
  }

  .form-card {
    margin-bottom: 24px;
  }
}

@media (max-width: 600px) {

  .why-choose-content h2{
    font-size: 24px;
  }
  .faqs h2{
    font-size: 24px;
  }


  .specialist-card img {
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
  }
  .footer{
    padding: 48px 0 80px 0;
  }
  .proof-row{
    max-width: 40s0px;
  }
  .hero-banner {
    margin-top: 80px;
    margin-left: 14px;
    margin-right: 14px;
    width: calc(100% - 28px);
    height: 220px;
    max-height: 350px;
    border-radius: 18px;
  }

  .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .hero-subnav {
    display: none !important;
  }

  /* Feature icons - 2x2 grid on mobile */
  .features-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
  }

  .feature-box {
    min-height: 96px;
    padding: 12px;
    border-radius: 14px;
    gap: 10px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
  }

  .feature-icon img {
    width: 30px;
    height: 30px;
  }

  .feature-box span {
    font-size: 13px;
    line-height: 1.3;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
  }

  .stat-box {
    padding: 14px 10px 18px;
    border-radius: 14px;
  }

  .stat-value {
    font-size: 26px;
  }

  .stat-label {
    font-size: 12px;
  }

  /* Procedure section - modern mobile timeline cards */
  .procedure-section {
    padding: 44px 0;
    background: linear-gradient(180deg, #0b494f 0%, #0a3f44 100%);
  }

  .procedure-section .section-head {
    margin-bottom: 16px;
  }

  .procedure-section .section-head h2 {
    font-size: 24px;
    margin-bottom: 6px;
  }

  .procedure-section .section-head .subtitle {
    font-size: 13px;
    line-height: 1.5;
  }

  .procedure-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .procedure-step {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
    text-align: center;
    padding: 14px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
    border: 1px solid #d9eaed;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    position: relative;
  }

  /* Center the 5th card on mobile */
  .procedure-step:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, calc((100% - 12px) / 2));
  }

  .procedure-step:not(:last-child)::after {
    display: none;
  }

  .step-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto;
    border-radius: 12px;
    background: #ecf7f8;
    box-shadow: inset 0 0 0 1px rgba(14, 92, 100, 0.15);
  }

  .step-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
  }

  .procedure-step .step-content {
    min-width: 0;
  }

  .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    margin: 0 auto 7px;
    border-radius: 999px;
    background: #e6f4f6;
    color: #0e5c64;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
  }

  .procedure-step h3 {
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 6px;
    color: #163b3f;
  }

  .procedure-step p {
    font-size: 13px;
    line-height: 1.55;
    color: #4a6266;
    margin: 0;
  }

  /* Ensure form is full width on mobile */
  .form-card {
    width: 100% !important;
    padding: 16px;
    margin-bottom: 20px;
  }

  .why-choose-content {
    width: 100%;

  }

  .why-choose {
    padding: 30px 0;
  }

  /* Carousel button styling for mobile */
  .nav-arrows {
    gap: 6px;
  }

  .arrow-btn {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
  }

  .arrow-btn:active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
  }

  /* Section head for carousels */
  .section-head {
    flex-direction: column !important;
    gap: 16px;
  }

  .section-head>div:first-child {
    width: 100%;
  }

  .section-head>div:first-child h2 {
    font-size: 18px;
  }

  .section-head>div:first-child .subtitle {
    font-size: 12px;
    margin-top: 4px;
  }

  /* Carousel cards responsive sizing */
  .result-card {
    min-width: calc(100% - 12px) !important;
  }

  .benefit-card {
    flex: 0 0 calc(100% - 12px) !important;
  }

  .symptom-card {
    min-width: calc(100% - 12px) !important;
  }

  .review-card {
    min-width: calc(100% - 12px) !important;
    padding: 16px;
  }

  .rating-content {
    padding: 10px 20px;
    margin-bottom: 32px;
  }

  .rating-number {
    font-size: 18px;
  }

  .rating-details {
    font-size: 11px;
  }

  /* Social Proof Mobile */
  .proof-row {
    gap: 0;
    padding: 8px 12px;
    max-width: calc(100% - 32px);
    margin: 0 16px;
    border-radius: 40px;
    flex-wrap: wrap;
  }

  .proof-pill {
    gap: 6px;
    padding: 0 8px;
  }

  .proof-pill:first-child {
    padding: 0 8px;
  }

  .proof-logo {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .proof-content {
    gap: 0px;
  }

  .proof-rating {
    font-size: 11px;
    gap: 2px;
  }

  .stars {
    font-size: 9px;
  }

  .proof-text {
    font-size: 9px;
  }

  .proof-pill-summary {
    min-width: 0;
    flex-wrap: wrap;
  }

  .proof-summary-text {
    white-space: normal;
    flex-wrap: wrap;
    min-width: 0;
  }

  /* Ask Expert Responsive */
  .ask-expert {
    padding: 40px 0;
  }

  .ask-expert-header h2 {
    font-size: 22px;
  }

  .ask-expert-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ask-expert-text {
    order: -1;
    margin-bottom: 20px;
  }

  .ask-expert-text h3 {
    font-size: 20px;
    margin-bottom: 16px;
    text-align: center;
  }

  .benefits-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ask-expert-form {
    gap: 12px;
  }

  .form-group {
    gap: 4px;
  }

  .form-input {
    padding: 10px 12px;
    font-size: 13px;
  }

  .phone-input-group {
    padding: 0 10px;
  }

  .country-flag {
    font-size: 16px;
  }

  .country-code {
    font-size: 12px;
  }

  .phone-input {
    padding: 10px 0;
  }

  .question-textarea {
    min-height: 80px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .submit-btn-expert {
    padding: 10px 24px;
    font-size: 13px;
    margin-top: 8px;
  }

  /* Mobile Sticky Footer */
  .mobile-sticky-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex !important;
    background: #0a4349;
    padding: 6px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 360px;
    justify-content: space-between;
  }

  .sticky-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: white;
    padding: 10px 14px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
  }

  .sticky-btn i {
    font-size: 14px;
  }

  .sticky-btn.btn-talk {
    background: #008B8E;
  }
}

/* Hide on desktop */
@media (min-width: 769px) {
  .mobile-sticky-footer {
    display: none !important;
  }
}
