/* Mobile-friendliness tweaks - layered on top of style.min.css */

/* Prevent horizontal scroll on any device */
html, body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============ TABLETS & BELOW (<= 991px) ============ */
@media (max-width: 991.98px) {
  /* Hide the wide brand bar; keep compact navbar visible */
  .header.brand-lg {
    display: none;
  }
  .navbar-brand.brand-xs {
    display: block !important;
    padding: 6px 0 6px 8px;
    width: auto;
    max-width: 220px;
  }
  .navbar-brand.brand-xs img {
    max-width: 200px;
    height: auto;
  }

  /* Mobile navigation - stacked links with spacing */
  .navbar .navbar-collapse {
    margin-top: 10px;
    padding: 12px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
  .navbar .navbar-nav .nav-link {
    padding: 12px 4px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  .navbar .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: 0;
  }
  .navbar-toggler {
    padding: 6px 10px;
  }

  /* Hero / Section padding */
  .section-form {
    padding: 24px 0;
  }
  .banner-heading {
    padding-bottom: 24px !important;
    margin-bottom: 24px !important;
  }
  .banner-heading h1 {
    font-size: 1.6rem !important;
    line-height: 1.3;
  }
  .banner-heading p,
  .pt-list {
    font-size: 0.95rem !important;
  }
}

/* ============ PHONES (<= 767px) ============ */
@media (max-width: 767.98px) {
  /* Headings scale down further */
  h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  h2 {
    font-size: 1.35rem;
    line-height: 1.3;
  }
  h3 {
    font-size: 1.15rem;
  }
  .inner-heading {
    font-size: 1.4rem !important;
  }

  /* Section content padding */
  .section-content {
    padding: 32px 0;
  }
  .section-content h2 {
    margin-top: 20px;
  }

  /* Form card improvements */
  .form .card {
    margin-bottom: 18px;
  }
  .form .card-header {
    padding: 14px 16px;
  }
  .form .card-header p {
    font-size: 1rem;
    margin: 0;
  }
  .form .card-body {
    padding: 16px;
  }
  .form .form-group {
    margin-bottom: 18px;
  }
  .form .form-group label {
    font-size: 0.92rem;
    line-height: 1.45;
    display: block;
    margin-bottom: 6px;
  }
  .form .form-help {
    font-size: 0.82rem;
    color: #666;
    display: inline-block !important;
  }
  .form .form-info {
    margin-left: 4px;
    vertical-align: middle;
  }
  .form .form-info img {
    width: 16px;
    height: 16px;
  }
  .form .form-control {
    font-size: 1rem;
    padding: 10px 12px;
    height: auto;
    min-height: 44px;
    border-radius: 6px;
  }
  .form select.form-control {
    padding-right: 32px;
  }

  /* Bigger tap targets for submit button */
  #formsubmit,
  .btn-orange,
  .btn-block {
    min-height: 48px;
    font-size: 1rem;
    padding: 12px 16px;
  }
  .d-grid {
    margin-top: 6px;
  }

  /* reCAPTCHA - prevent overflow on narrow screens */
  .g-recaptcha {
    transform: scale(0.88);
    transform-origin: 0 0;
    margin-bottom: 16px;
    margin-top: 8px;
  }

  /* Process steps */
  .process-section {
    padding: 40px 0 !important;
  }
  .process-section h2 {
    margin-bottom: 32px !important;
    padding-bottom: 0 !important;
  }
  .process-section .feature-icon {
    font-size: 1.6rem !important;
  }

  /* Benefits gradient section - rebalance on phone */
  .card-banner .card-header.header-only {
    padding: 22px 18px !important;
  }
  .card-banner .card-header.header-only h2 {
    font-size: 1.3rem !important;
    margin-bottom: 16px !important;
  }
  .card-banner .card-header.header-only ul li {
    font-size: 0.95rem !important;
    padding: 6px 0 !important;
  }
  .card-banner .card-header.header-only ul li img {
    width: 18px !important;
    height: 18px !important;
  }

  /* FAQ accordion */
  .section-faq {
    padding: 40px 0;
  }
  .section-faq .heading h2 {
    margin-bottom: 20px;
  }
  .accordion-button {
    font-size: 0.95rem;
    padding: 14px 16px;
    line-height: 1.4;
  }
  .accordion-body {
    padding: 14px 16px;
  }
  .accordion-body p {
    font-size: 0.92rem;
  }

  /* Disclaimer */
  .disclaimer {
    padding: 16px 14px;
    font-size: 0.85rem;
  }
  .disclaimer p {
    font-size: 0.85rem !important;
    line-height: 1.6;
  }

  /* Make-Payment page */
  .page-payment .section-payment {
    padding: 30px 0;
  }
  .page-payment h1 {
    font-size: 1.4rem;
  }
  .page-payment .card-body {
    padding: 20px 16px;
  }
  .payment-btn {
    text-align: center;
    margin: 20px 0;
  }
  .payment-btn a {
    display: block !important;
    width: 100% !important;
    max-width: 320px;
    margin: 0 auto;
  }
  .payment-list {
    margin-top: 20px;
  }
  .payment-list ul li {
    font-size: 0.95rem;
    padding: 4px 0;
  }
  .payment-img img {
    max-width: 200px;
  }
  .green-message {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .green-message img {
    max-width: 100px;
    margin: 0 auto 14px;
  }

  /* Sample certificate page */
  .section-certificate {
    padding: 30px 0;
  }
  .section-certificate img {
    margin-top: 20px;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  }

  /* Thank-you / Contact page banner */
  .pg-banner {
    padding: 30px 0;
  }
  .pg-banner h1 {
    font-size: 1.5rem;
  }
  .section-thank-you {
    padding: 30px 0;
  }
  .section-thank-you h1 {
    font-size: 1.4rem;
  }
  .alert {
    font-size: 0.92rem;
    padding: 12px 14px;
  }

  /* CTA section */
  .section-cta {
    padding: 28px 0 !important;
    text-align: center;
  }
  .section-cta .cta-text p {
    font-size: 1.05rem !important;
    margin-bottom: 14px;
  }
  .section-cta .cta-btn {
    text-align: center;
  }
  .section-cta .cta-btn .btn {
    width: 100%;
    max-width: 240px;
    min-height: 44px;
    padding: 10px 18px;
  }

  /* Footer */
  .footer {
    padding-top: 36px;
  }
  .footer-logo img {
    max-width: 200px;
  }
  .footer-wrap {
    margin-bottom: 18px;
  }
  .quick-links li {
    margin-bottom: 8px;
  }
  .footer-contact {
    margin-top: 16px;
  }
  .copyright-content {
    padding: 14px 0;
    text-align: center;
  }
  .copyright-content p {
    margin: 0;
  }
}

/* ============ SMALL PHONES (<= 575px) ============ */
@media (max-width: 575.98px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .banner-heading h1 {
    font-size: 1.4rem !important;
  }

  /* Force Hindi helper text under English on tight widths */
  .form .form-group label .form-help {
    display: block !important;
    margin-top: 2px;
  }

  /* Tighter form spacing */
  .form .card-body {
    padding: 14px 12px;
  }

  /* CTA stacks */
  .section-cta .row {
    text-align: center;
  }
  .section-cta .cta-text {
    margin-bottom: 14px;
  }
}
