/* ==========================================================================
   SUNRICH360® SHARED FOOTER STYLESHEET (Matching contact.php Footer)
   ========================================================================== */

.footer {
  background: linear-gradient(135deg, #0F172A 0%, #152238 100%) !important;
  color: #f8fafc !important;
  padding: 80px 0 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  position: relative;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif !important;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 250px;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 31, 38, 0.16) 0%, rgba(37, 99, 235, 0.06) 50%, transparent 80%);
  pointer-events: none;
}

/* Footer Top Header / Brand Row */
.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 40px;
  margin-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand-logo {
  height: auto;
  margin-bottom: 0;
}

.footer-brand-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
  background: transparent !important;
  padding: 0;
  border-radius: 0;
  filter: none;
  transition: transform 0.3s ease;
}

.footer-brand-logo:hover img {
  transform: scale(1.04);
}

.footer-brand-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-social-pill-list {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social-icon:hover {
  background: #C91F26;
  border-color: #C91F26;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 0 16px rgba(201, 31, 38, 0.6);
}

.footer-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 4px;
  background: linear-gradient(135deg, #C91F26 0%, #ff4d4d 100%);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(201, 31, 38, 0.4);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-cta-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(201, 31, 38, 0.7);
  color: #ffffff !important;
}

/* Footer Main Grid */
.footer-top {
  display: grid !important;
  grid-template-columns: 1.8fr 1.3fr 1.6fr;
  gap: 45px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.footer .footer-col {
  padding: 0 !important;
  margin: 0 !important;
  flex: unset !important;
  width: auto !important;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff !important;
  margin-top: 0;
  margin-bottom: 24px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: #C91F26;
  box-shadow: 0 0 6px #C91F26;
  border-radius: 2px;
  margin-left: 6px;
  position: static;
}

.footer-desc {
  font-size: 14.5px;
  color: #cbd5e1 !important;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-contact-item:hover {
  color: #ffffff !important;
}

.footer-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #C91F26;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.footer-contact-item:hover .footer-contact-icon {
  background: #C91F26;
  color: #ffffff;
  border-color: #C91F26;
  box-shadow: 0 0 10px rgba(201, 31, 38, 0.5);
}

/* Disciplines Tag Pills */
.footer-disciplines-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-discipline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
}

.footer-discipline-link:hover {
  background: transparent;
  color: #ffffff !important;
  transform: translateX(4px);
  box-shadow: none;
}

.footer-disc-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--disc-accent, #ffffff);
}

/* Newsletter in Footer */
.footer-newsletter-wrap {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 22px;
  backdrop-filter: blur(10px);
}

.footer-newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.footer-newsletter-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 30px !important;
  padding: 10px 18px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  outline: none;
  transition: all 0.25s ease;
}

.footer-newsletter-input:focus {
  border-color: #C91F26 !important;
  box-shadow: 0 0 12px rgba(201, 31, 38, 0.4) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.footer-newsletter-btn {
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  background: #C91F26 !important;
  border: none !important;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(201, 31, 38, 0.5);
  transition: all 0.3s ease;
}

.footer-newsletter-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(201, 31, 38, 0.8);
}

/* Footer Bottom Bar */
.footer-bottom {
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 2;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6) !important;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #ffffff !important;
}

.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-back-to-top:hover {
  color: #C91F26 !important;
}

.footer-back-to-top i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: all 0.25s ease;
}

.footer-back-to-top:hover i {
  background: #C91F26;
  color: #ffffff;
  border-color: #C91F26;
  transform: translateY(-2px);
}

/* Footer Responsive */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 680px) {
  .footer-brand-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-bottom-links {
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* Floating Action Stack (Back to Top, WhatsApp, Enquiry) */
.sr-floating-actions {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 99990;
}

.floating-back-to-top {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background-color: #121212;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.floating-back-to-top.is-visible {
  display: inline-flex;
}

.floating-back-to-top:hover {
  background-color: #C91F26;
  transform: translateY(-2px);
}

.sr-floating-btn {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.sr-floating-btn:hover {
  transform: translateY(-2px);
}

.sr-floating-whatsapp {
  background-color: #25D366;
}

.sr-floating-whatsapp:hover {
  background-color: #1ebe5d;
}

.sr-floating-whatsapp i.fab,
.sr-floating-whatsapp i.fab::before {
  font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome" !important;
  font-weight: 400 !important;
}

.sr-floating-enquiry {
  background-color: #C91F26;
  font-size: 16px;
}

.sr-floating-enquiry:hover {
  background-color: #9E141A;
}

/* Quick Enquiry Modal */
.sr-enquiry-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999999;
}

.sr-enquiry-modal-overlay.is-open {
  display: flex;
}

.sr-enquiry-modal-box {
  width: 100%;
  max-width: 460px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
}

.sr-enquiry-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sr-enquiry-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.sr-enquiry-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.sr-enquiry-close-btn:hover {
  color: #ffffff;
}

.sr-enquiry-modal-body {
  padding: 20px 22px 22px;
}

.sr-enquiry-field {
  margin-bottom: 12px;
}

.sr-enquiry-field input,
.sr-enquiry-field select,
.sr-enquiry-field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 13.5px;
  font-family: 'Montserrat', sans-serif;
  outline: none;
  box-sizing: border-box;
}

.sr-enquiry-field select option {
  background: #0f172a;
  color: #ffffff;
}

.sr-enquiry-field input:focus,
.sr-enquiry-field select:focus,
.sr-enquiry-field textarea:focus {
  border-color: #C91F26;
}

.sr-enquiry-submit-btn {
  width: 100%;
  height: 44px;
  border-radius: 4px;
  border: none;
  background: #C91F26;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.sr-enquiry-submit-btn:hover {
  background: #9E141A;
}

@media (max-width: 576px) {
  .sr-floating-actions {
    right: 16px;
    bottom: 16px;
  }
  .floating-back-to-top,
  .sr-floating-btn {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
}
