body {
  font-family: system-ui, sans-serif;
  margin: 0;
  background-image: url(images/EcosavePay_bg.jpg);
  color: #111;
}

/* when the body has the contact-page class we remove the site-wide body
   background so only the contact background (in the ::before layer) is visible */
body.contact-page {
  background-image: none;
  background-color: #000; /* fallback behind the faded image */
}
.contact-page {
  /* create a stacking context so the pseudo-element can sit behind content */
  position: relative;
  z-index: 0;
  min-height: 100vh;
  overflow: hidden;
}

/* background placed in a pseudo-element so we can control its opacity */
.contact-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/contact_bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.20; /* slightly lighter — change this between 0 and 1 to tweak */
  pointer-events: none;
  z-index: -1;
}
.logo img {
  height: 85px; 
  width: auto;
  object-fit: contain;
}

.nav {
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav a {
  text-decoration: none;
  color: #eee;
  font-weight: 500;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 5%;
  gap: 40px;
}

.hero-content {

  max-width: 500px;
}
/* ---------- Contact Form Styling ---------- */

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 5%;
  gap: 200px;
}

.contact-text {
  flex: 1;
  color: #fff;
}

.contact-text h1 {
  position: absolute;
  top: 120px;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.contact-text span {
  color: #50bb5e;
}

.contact-text p {
  font-size: 1rem;
  color: #dcdcdc;
  max-width: 450px;
}

/* ===============================
   CONTACT FORM
=================================*/

.contact-hero-content {
  flex: 0 0 420px;
  background: #fff;
  padding: 40px 35px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  align-self: flex-start;
}

.contact-hero-content h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: #111;
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#contactForm .row {
  display: flex;
  gap: 16px;
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.95rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #fafafa;
  color: #333;
  transition: border 0.2s ease, background 0.2s ease;
}

#contactForm input:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: #50bb5e;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(80, 187, 94, 0.15);
}

#contactForm textarea {
  min-height: 90px;
  resize: vertical;
}

#contactForm button {
  width: 100%;
  background: linear-gradient(to right, #4fc76a, #1fa25a);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 14px 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}

#contactForm button:hover {
  background: linear-gradient(to right, #6bd07f, #30a17e);
  transform: translateY(-1px);
}

#formStatus {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 10px;
  color: #111;
}

/* ===============================
   RESPONSIVE DESIGN
=================================*/

@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
    text-align: center;
  }

  .contact-hero-content {
    flex: 1;
    width: 100%;
    margin-top: 40px;
  }

  .contact-text {
    text-align: center;
  }

  .contact-text p {
    margin: 0 auto;
  }
}
.hero h1 {
  position:absolute;
  top:150px;
  left:90px;
  font-size: 3.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #eee;
}

.hero p {
  position:absolute;
  top:400px;
  left:90px;
  font-size: 0.8rem;
  margin-bottom: 30px;
  color: #fff;
}

.buttons {
  display: flex;
  gap: 16px;
}

.btn-primary {
  padding: 14px 30px;
  background: #3faa4e;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  position:absolute;
  top:500px;
  left:90px;
}

.btn-primary:hover {
  background: #34a645;
}

.btn-secondary {
  padding: 14px 30px;
  background: #eee;
  color: #111;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  position:absolute;
  top:500px;
  left:290px;
}

.hero-graphic img {
  position:absolute;
  top:100px;
  right:90px;
  width: 550px;
  border-radius: 12px;
}
/* Transparent outlined button (matches Ecosave Pay style) */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid #ffffff;
  border-radius: 8px;
  color: #ffffff;
  background: transparent;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: all 0.25s ease-in-out;
  position: absolute;
  top: 500px;
  left:90px;
}
.btn-outline-1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid #ffffff;
  border-radius: 8px;
  color: #ffffff;
  background: transparent;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: all 0.25s ease-in-out;
  position: absolute;
  top: 500px;
  left: 300px;
}

/* Hover glow and subtle background fill */
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}
.btn-outline-1:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}


/* Optional: green border variant */
.btn-outline-green {
  border: 2px solid #3faa4e;  /* <-- Required for border to show */
  color: #3faa4e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  background: transparent;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: all 0.25s ease-in-out;
  position: absolute;
  top: 600px;
  left: 100px;
  z-index: 10;
}

.btn-outline-green:hover {
  background: rgba(63, 170, 78, 0.1);
  box-shadow: 0 0 10px rgba(1, 89, 12, 0.25);
}


