/* --- Extracted from view_footer_new.php --- */
.cn-contact-section {
  padding: 60px 0 80px !important;
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}
.cn-contact-section .form-card,
.form-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-top: 5px solid #186B6D !important;
  border-radius: 24px !important;
  padding: 38px 36px !important;
  box-shadow: 0 25px 60px -15px rgba(24, 107, 109, 0.16) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.form-header {
  margin-bottom: 24px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}
.form-title {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 6px 0 !important;
  letter-spacing: -0.01em !important;
}
.form-subtitle {
  font-size: 14px !important;
  color: #64748b !important;
  margin: 0 !important;
}
.form-group-grid {
  gap: 16px !important;
}
.input-label {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 4px !important;
  display: block !important;
}
.form-input {
  width: 100% !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  color: #1e293b !important;
  background: #f8fafc !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}
.form-input:focus {
  border-color: #186B6D !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(24, 107, 109, 0.12) !important;
}
.btn-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 15px 24px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #186B6D 0%, #125153 100%) !important;
  cursor: pointer !important;
  box-shadow: 0 10px 24px rgba(24, 107, 109, 0.35) !important;
  transition: all 0.2s ease !important;
}
.btn-submit:hover {
  background: linear-gradient(135deg, #135557 0%, #0d3c3e 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 28px rgba(24, 107, 109, 0.45) !important;
}
@media (max-width: 640px) {
  .cn-contact-section .form-card,
  .form-card {
    padding: 24px 20px !important;
    border-radius: 18px !important;
  }
}
/* =========================================================
   RESPONSIVE OVERRIDES: Footer (Tablet & Mobile Only)
   ========================================================= */
@media (max-width: 1024px) {
  footer {
    max-width: 100% !important;
    overflow-x: clip !important;
  }
}

/* Tablet Only: Products, Quick Links, and Latest News in ONE row (3 columns), small images, and clean bottom bar */
@media (min-width: 640px) and (max-width: 1024px) {
  /* 1. Products, Quick Links, and Latest News in ONE line (3 columns) */
  footer .footer-links-grid,
  footer .min-w-0.flex-1 > .grid,
  footer .grid.sm\:grid-cols-2 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  /* 2. Reset Latest News to span ONLY 1 column (override sm:col-span-2) */
  footer .footer-latest-news-col,
  footer .sm\:col-span-2,
  footer .min-w-0.flex-1 > .grid > div:nth-child(3) {
    grid-column: span 1 / span 1 !important;
  }

  /* 3. Latest News image sizing (image choti karke) */
  footer .footer-news-thumbs,
  footer .min-w-0.flex-1 > .grid .grid.max-w-\[280px\] {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    max-width: 210px !important;
    width: 100% !important;
  }

  footer .footer-news-thumbs a,
  footer .min-w-0.flex-1 > .grid .grid.max-w-\[280px\] a {
    aspect-ratio: 1 / 1 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    display: block !important;
    background: rgba(255, 255, 255, 0.12) !important;
  }

  footer .footer-news-thumbs img,
  footer .min-w-0.flex-1 > .grid .grid.max-w-\[280px\] img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* 4. Bottom copyright and privacy policy bar */
  footer .footer-bottom-bar,
  footer .mt-12.border-t {
    margin-top: 32px !important;
    padding-top: 20px !important;
    padding-right: 0 !important; /* Remove md:pr-44 which stole 176px */
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    gap: 16px !important;
  }

  footer .footer-bottom-bar > span,
  footer .mt-12.border-t > span {
    font-size: 12px !important;
    white-space: nowrap !important;
    text-align: left !important;
    color: rgba(255, 255, 255, 0.75) !important;
    flex-shrink: 0 !important;
  }

  footer .footer-bottom-bar > div,
  footer .mt-12.border-t > div {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 16px !important;
    flex-shrink: 0 !important;
  }

  footer .footer-bottom-bar > div a,
  footer .mt-12.border-t > div a {
    font-size: 12px !important;
    white-space: nowrap !important;
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
  }

  footer .footer-bottom-bar > div a:hover,
  footer .mt-12.border-t > div a:hover {
    color: #ffffff !important;
  }
}
@media (max-width: 767px) {
  .cn-contact-section {
    padding: 40px 0 60px !important;
  }
  .cn-contact-section .form-card,
  .form-card {
    padding: 24px 18px !important;
    border-radius: 18px !important;
  }
  .form-title {
    font-size: 20px !important;
  }
  .btn-submit {
    padding: 13px 20px !important;
    font-size: 14px !important;
  }
}
@media (max-width: 480px) {
  .cn-contact-section .form-card,
  .form-card {
    padding: 20px 14px !important;
  }
  .form-title {
    font-size: 19px !important;
  }
}
/* =========================================================
   MOBILE ONLY: Products & Quick Links 6 Col (2 Columns)
   ========================================================= */
@media (max-width: 639px) {
  footer .footer-links-grid,
  footer .min-w-0.flex-1 > .grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 16px !important;
    row-gap: 28px !important;
  }

  footer .footer-links-grid > div:nth-child(1),
  footer .footer-links-grid > div:nth-child(2),
  footer .min-w-0.flex-1 > .grid > div:nth-child(1),
  footer .min-w-0.flex-1 > .grid > div:nth-child(2) {
    grid-column: span 1 !important;
  }

  footer .footer-latest-news-col,
  footer .footer-links-grid > div:nth-child(3),
  footer .min-w-0.flex-1 > .grid > div:nth-child(3) {
    grid-column: 1 / -1 !important;
  }

  footer .footer-links-grid h3 {
    margin-bottom: 12px !important;
    font-size: 15px !important;
  }

  footer .footer-links-grid ul li a {
    padding: 4px 0 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
}

/* Bottom bar: copyright left, single "Privacy Policy" link right (all screen sizes) */
footer .footer-bottom-bar {
  padding-right: 0 !important;
  font-size: 13px !important;
}
footer .footer-bottom-bar > span {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.7) !important;
}
footer .footer-bottom-bar .footer-legal-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 7px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 999px !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease !important;
}
footer .footer-bottom-bar .footer-legal-link svg { color: #8fe0d6; flex: none; }
footer .footer-bottom-bar .footer-legal-link:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
}
@media (max-width: 639px) {
  footer .footer-bottom-bar { flex-direction: column !important; gap: 12px !important; text-align: center !important; }
  footer .footer-bottom-bar > span { white-space: normal !important; text-align: center !important; }
}
/* keep the pill clear of the fixed WhatsApp button (bottom-right) */
@media (min-width: 640px) {
  footer .footer-bottom-bar { padding-right: 84px !important; }
}
/* developer credit after the copyright */
footer .footer-bottom-bar .footer-credit { color: rgba(255, 255, 255, 0.7); }
footer .footer-bottom-bar .footer-credit::before { content: "\00B7"; margin: 0 10px; color: rgba(255, 255, 255, 0.45); }
footer .footer-bottom-bar .footer-credit a { color: #ffffff !important; font-weight: 600; text-decoration: none !important; border-bottom: 1px solid rgba(143, 224, 214, 0.6); transition: color .2s ease, border-color .2s ease; }
footer .footer-bottom-bar .footer-credit a:hover { color: #8fe0d6 !important; border-bottom-color: #8fe0d6; }
@media (max-width: 1023px) {
  footer .footer-bottom-bar > span { white-space: normal !important; }
  footer .footer-bottom-bar .footer-credit { display: block; margin-top: 6px; }
  footer .footer-bottom-bar .footer-credit::before { display: none; }
}

/* Footer column 4: Contact Us (phone, email, location) - same look as the link lists */
footer .footer-contact-col a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color .2s ease; }
footer .footer-contact-col a:hover { color: #8FE0D6; }
footer .footer-contact-col span { color: rgba(255, 255, 255, 0.7); }
footer .footer-contact-col svg { margin-top: 3px; }
