/* ==============================
   Newsletter Signup Section 
   ============================== */
.newsletter-signup {
  background: #BCE1EB;
  /* Light blue from Figma */
  padding: 53px;
  /* 64px all around */
}

.newsletter-signup .mc4wp-form {
  max-width: 1312px;
  /* Exact width from Figma */
  margin: 0 auto;
  /* Keep max width but content left inside */
  text-align: left;
}

/* Heading */
.newsletter-signup h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 120%;
  color: #000;
  margin-bottom: 24px;
  text-align: left;
}

/* Subtext */
.newsletter-signup p {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 150%;
  color: #000;
  margin-bottom: 32px;
  text-align: left;
}

/* Form row */
.newsletter-signup form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
  /* ✅ aligns everything left */
  margin-bottom: 16px;
}

/* Inputs */
.newsletter-signup input[type="text"],
.newsletter-signup input[type="email"] {
  height: 48px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 16px;
  line-height: 150%;
  min-width: 146px;
  box-sizing: border-box;
}

/* Email wider */
.newsletter-signup input[type="email"] {
  flex: 2;
  min-width: 365px;
}

/* Submit button */
.newsletter-signup input[type="submit"] {
  height: 48px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  min-width: 119px;
  transition: all 0.3s ease;
}

.newsletter-signup input[type="submit"]:hover {
  background: #146782;
  border-color: #146782;
  color: #fff;
}

/* Disclaimer */
.newsletter-signup .mc4wp-form p:last-of-type {
  font-size: 12px;
  line-height: 150%;
  color: #383838;
  margin-top: 8px;
  text-align: left;
  /* ✅ left aligned */
}

#mc4wp-form-1 {
  padding: 0;
  margin: 0;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
  .newsletter-signup {
    padding: 32px 20px;
  }

  .newsletter-signup h2 {
    font-size: 28px;
    line-height: 130%;
  }

  .newsletter-signup p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .newsletter-signup form {
    flex-direction: column;
    gap: 12px;
  }

  .newsletter-signup input[type="text"],
  .newsletter-signup input[type="email"],
  .newsletter-signup input[type="submit"] {
    width: 100%;
    min-width: unset;
  }

  .newsletter-signup input[type="submit"] {
    margin-top: 8px;
  }
}


/* ===========================
   Terms & Conditions Modal
=========================== */
.terms-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.6);
}

.terms-content {
  background: #fff;
  margin: 5% auto;
  padding: 30px 40px;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  font-family: 'Roboto', sans-serif;
  color: #000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

.terms-content h2 {
  margin-top: 0;
  color: #146782;
  font-weight: 700;
  margin-bottom: 15px;
}

.terms-scroll {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 10px;
  line-height: 1.6;
}

.close-btn {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 26px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #146782;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Small hover underline for link */
#openTerms {
  color: #000;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

#openTerms:hover {
  color: #146782;
}

/* Responsive modal */
@media (max-width: 768px) {
  .terms-content {
    padding: 20px;
  }
}