

/* ========================================================================================================================= */
/* ----------------- footer section ----------------*/
.footer-section {
  background: #1e1e1e;
  padding: 80px 6%;
  color: #d1d1d1;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.footer-left p {
  font-size: 16px;
  max-width: 420px;
  color: #b5b5b5;
}

.footer-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  max-width: 520px;
}

.footer-form input {
  background: transparent;
  border: 1px solid #3a3a3a;
  padding: 14px;
  color: #ffffff;
  font-size: 14px;
}

.footer-form input::placeholder {
  color: #888888;
}


.footer-form textarea {
  background: transparent;
  border: 1px solid #3a3a3a;
  padding: 14px;
  color: #ffffff;
  font-size: 14px;
  resize: none;
  height: 120px;
  /* message box height */
}

.footer-form textarea::placeholder {
  color: #888888;
}

.footer-form .full-width {
  grid-column: span 2;
  /* full width */
}

.footer-submit-btn {
  position: relative;
  grid-column: span 2;
  padding: 14px;
  border: none;
  background: linear-gradient(90deg, #c4efd3, #67a879, #4fa878);
  color: #074227;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer-submit-btn:hover:not(:disabled) {
  background: linear-gradient(90deg, #4fa878, #67a879, #c4efd3);
}

.footer-submit-btn:disabled {
  cursor: wait;
  opacity: 0.88;
}

.footer-submit-loader {
  display: none;
  width: 20px;
  height: 20px;
  margin: 0 auto;
  border: 3px solid rgba(7, 66, 39, 0.2);
  border-top-color: #074227;
  border-radius: 50%;
  animation: footer-form-spin 0.7s linear infinite;
}

.footer-submit-btn.is-loading .footer-submit-text {
  opacity: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.footer-submit-btn.is-loading .footer-submit-loader {
  display: block;
}

@keyframes footer-form-spin {
  to { transform: rotate(360deg); }
}

.footer-form input.is-invalid,
.footer-form textarea.is-invalid {
  border-color: #ff7f7f;
}

/* Footer form modal (matches contact page popup style) */
.footer-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 24, 18, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.footer-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.footer-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 40px 36px 36px;
  border-radius: 28px;
  background: linear-gradient(165deg, #ffffff 0%, #f4fff8 45%, #eefcf3 100%);
  border: 1px solid rgba(11, 93, 66, 0.12);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  text-align: center;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  transform: scale(0.94) translateY(16px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.footer-modal-overlay.is-open .footer-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.footer-modal-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 120%;
  height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(202, 255, 99, 0.35) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.9;
}

.footer-modal-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  border-radius: 28px;
}

.footer-modal-sparkles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(202, 255, 99, 0.9);
  box-shadow: 0 0 10px rgba(202, 255, 99, 0.6);
  opacity: 0;
  animation: footer-modal-sparkle 2.2s ease-in-out infinite;
}

.footer-modal-sparkles span:nth-child(1) { top: 18%; left: 12%; animation-delay: 0s; }
.footer-modal-sparkles span:nth-child(2) { top: 22%; right: 16%; animation-delay: 0.35s; }
.footer-modal-sparkles span:nth-child(3) { bottom: 28%; left: 20%; animation-delay: 0.7s; }
.footer-modal-sparkles span:nth-child(4) { bottom: 20%; right: 14%; animation-delay: 1s; }
.footer-modal-sparkles span:nth-child(5) { top: 45%; right: 10%; animation-delay: 1.4s; }

.footer-modal-overlay:not(.is-open) .footer-modal-sparkles span {
  animation: none;
  opacity: 0;
}

@keyframes footer-modal-sparkle {
  0%, 100% { transform: translate(0, 0) scale(0.4); opacity: 0; }
  30% { opacity: 1; transform: translate(4px, -6px) scale(1); }
  70% { opacity: 0.8; transform: translate(-3px, 4px) scale(0.85); }
}

.footer-modal--enter .footer-modal-sub,
.footer-modal--enter .footer-modal-title,
.footer-modal--enter .footer-modal-desc {
  animation: footer-modal-fade-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.footer-modal--enter .footer-modal-sub { animation-delay: 0.05s; }
.footer-modal--enter .footer-modal-title { animation-delay: 0.12s; }
.footer-modal--enter .footer-modal-desc { animation-delay: 0.2s; }

@keyframes footer-modal-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-modal-sub {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 600;
  color: #0b5d42;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.footer-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(4, 61, 45, 0.06);
  color: #043d2d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.footer-modal-close:hover {
  background: rgba(4, 61, 45, 0.12);
  transform: rotate(90deg);
}

.footer-modal-close i {
  font-size: 22px;
}

.footer-modal-icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0b5d42, #065a3a);
  color: #caff63;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 12px 32px rgba(11, 93, 66, 0.35);
  animation: footer-modal-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.footer-modal-icon::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(202, 255, 99, 0.45);
  animation: footer-modal-ring 1.6s ease-out infinite;
  pointer-events: none;
}

@keyframes footer-modal-ring {
  0% { transform: scale(0.92); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes footer-modal-pop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.footer-modal-title {
  position: relative;
  z-index: 1;
  font-size: 24px;
  font-weight: 700;
  color: #022d1f;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.footer-modal-desc {
  position: relative;
  z-index: 1;
  font-size: 15px;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 26px;
}

.footer-modal-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #0b5d42, #043d2d);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, gap 0.2s ease;
  box-shadow: 0 8px 24px rgba(11, 93, 66, 0.35);
}

.footer-modal-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 93, 66, 0.4);
  gap: 14px;
}

.footer-modal-cta i {
  font-size: 13px;
  opacity: 0.95;
}

.footer-form.footer-form--shake {
  animation: footer-form-shake 0.45s ease;
}

.footer-modal-icon.footer-modal-icon--error {
  background: linear-gradient(145deg, #b91c1c, #7f1d1d);
  color: #fecaca;
  box-shadow: 0 12px 32px rgba(185, 28, 28, 0.35);
}

.footer-modal-icon--error::after {
  display: none;
}

@keyframes footer-form-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}






/* footer devider */
.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: #1e1e1e;
  padding: 30px 0;
}

.footer-divider span {
  width: 300px;
  height: 1px;
  background: #444;
}

.footer-divider p {
  color: #aaa;
  font-size: 14px;
}

/* contact */
.footer-contact-section {
  background: #1e1e1e;
  padding: 50px 6%;
  text-align: center;
}

.footer-contact-section h2 {
  color: #fff;
  margin-bottom: 40px;
}

.footer-contact-box {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.footer-contact-item i {
  background: linear-gradient(135deg, #DFF5EA, #71c3a2, #367861);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;

  filter: drop-shadow(0 0 12px rgba(108, 207, 173, 0.45));
  font-size: 30px;
  margin-bottom: 10px;
}

.footer-contact-item a {
  display: block;
  color: #ffffff;
  font-size: 18px;
  text-decoration: none;
}

.footer-contact-item p {
  font-size: 14px;
  color: #aaa;
}

/* footer bottom */
.footer-bottom-bar {
  background: #141414;
  padding: 20px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #888;
  flex-wrap: wrap;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: #ffffff;
  color: #141414;
  font-size: 18px;
  margin-left: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.35s ease;
}

.footer-social a:hover {
  /* background: linear-gradient(90deg, #44DB34, #0f7a4d, #0a4a2d); */
  background: linear-gradient(90deg, #d5fee9, #77e4b9, #287c5f);
  color: #034f2d;
  box-shadow: 0 0 15px rgba(54, 176, 133, 0.6);
  transform: translateY(-5px) scale(1.05);
}



/* ================= FOOTER RESPONSIVE ================= */

/* TABLET VIEW */

@media (max-width:1024px) {

  .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: nowrap;
  }

  .footer-left {
    flex: 1;
  }

  .footer-right {
    flex: 1;
  }

  .footer-left h2 {
    font-size: 38px;
  }

  .footer-form {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .footer-divider span {
    width: 180px;
  }

}


/* MOBILE VIEW */

@media (max-width:768px) {

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  .footer-left h2 {
    font-size: 28px;
  }

  .footer-left p {
    margin: auto;
  }

  .footer-right {
    width: 100%;
    max-width: 560px;
  }

  /* FORM FULL WIDTH */

  .footer-form {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    gap: 14px;
  }

  .footer-form .full-width {
    grid-column: span 1;
  }

  /* INPUT FULL WIDTH */

  .footer-form input,
  .footer-form textarea {
    width: 100%;
    font-size: 16px;
    padding: 16px;
    border-radius: 10px;
  }

  .footer-form textarea {
    min-height: 140px;
  }

  .footer-submit-btn {
    grid-column: span 1;
    min-height: 52px;
    font-size: 16px;
    border-radius: 10px;
  }

  .footer-divider span {
    width: 80px;
  }

  .footer-contact-box {
    flex-direction: column;
    gap: 30px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-social a {
    margin: 5px;
  }

}