/* CONTACT SECTION */
.contact-section {
  padding: 80px 100px;
  background: url('../images/background1.png') center/cover no-repeat;
  min-height: calc(100vh - 80px);
}

/* LAYOUT */
.contact-layout {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

/* LEFT INFO */
.contact-info {
  color: #1f2f1f;
  min-height: 100px;
  font-size: 18px;
  line-height: 1.7;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.contact-info h1 {
  color: #2c4f40;
  font-size: 36px;
  margin-bottom: 25px;
  border-bottom: 3px solid #95bc7d;
  padding-bottom: 15px;
  justify-content: center;
  align-items: center;
}

.inquire-box {
  margin-top: 20px;
  padding: 22px 50px;
  background: #2c4f40;
  color: #95bc7d;
  font-size: 28px;
  font-weight: bold;
  border-radius: 15px;
}

/* FORM */
.form-container {
  background: #2c4f40;
  padding: 40px;
  border-radius: 20px;
  color: #95bc7d;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}

.form-container h2 {
  font-size: 30px;
  margin-bottom: 35px;
  border-bottom: 2px solid #a7d18c;
  padding-bottom: 15px;
}

/* GRID */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

/* INPUTS */
.form-container input,
.form-container textarea,
.form-container select {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: none;
  background: #d0dfc6;
  font-size: 16px;
  color: #2c4f40;
}

.form-container textarea {
  min-height: 120px;
  resize: vertical;
}

/* SELECT ARROW */
.form-container select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c4f40' stroke-width='3'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 45px;
}

/* BUTTON */
.form-footer {
  text-align: right;
}

.submit-btn {
  padding: 16px 45px;
  font-size: 18px;
  border-radius: 30px;
  border: none;
  background: #a7d18c;
  color: #2c4f40;
  font-weight: bold;
  cursor: pointer;
}

.submit-btn:hover {
  background: #8fbf7a;
  transform: translateY(-3px);
}

/* SUCCESS */
.success-message {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.message-content {
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
}

.message-content i {
  font-size: 60px;
  color: #4CAF50;
  margin-bottom: 20px;
}

.message-btn {
  margin-top: 20px;
  padding: 10px 30px;
  border: none;
  border-radius: 8px;
  background: #2c4f40;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.message-btn:hover {
  background: #49663d;
}

/* ===== MOBILE: STACK LEFT THEN RIGHT ===== */
@media (max-width: 768px) {

  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .contact-section {
    padding: 30px 16px;
    min-height: auto;
  }

  /* FORCE single column */
  .contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* ORDER: LEFT INFO FIRST */
  .contact-info {
    order: 1;
    width: 100%;
  }

  /* ORDER: FORM SECOND */
  .form-container {
    order: 2;
    width: 100%;
  }

  /* Make content mobile-friendly */
  .contact-info h1 {
    font-size: 26px;
  }

  .inquire-box {
    width: 100%;
    padding: 14px 16px;
    font-size: 18px;
    text-align: center;
  }

  /* Stack form fields */
  .form-grid {
    grid-template-columns: 1fr;
  }

  /* Full-width button */
  .form-footer {
    text-align: center;
  }

  .submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
  }
}
