/* === FORM Section === */
.form {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  min-height: 600px;
  margin: 0;
  padding: 0;
  border-top: 2px solid #15143E;
  border-bottom: 2px solid #15143E;
}

.form-section {
  flex: 1 1 40%;
  max-width: 40%;
  margin: 0;
  padding: 2rem;
  background: #fffffff1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form::after {
  content: "";
  flex: 1 1 60%;
  max-width: 60%;
  background-image: url("../../assets/images/img0.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 600px;
  display: block;
}

.form-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #0f4726;
}

.form-section p {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #555;
}

input, textarea {
  width: 100%;
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.hidden {
  display: none;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}


button {
  width: auto;
  display: block;
  margin: 1rem auto 0 auto;
  background-color: #187940;
  color: #fff;
  border: none;
  padding: 0.75em 1.5em;
  font-weight: 600;
  border-radius: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background-color: #29C86C;
}

/* Subtle placeholder color */
::placeholder {
  color: #666;
  opacity: 1;
  font-weight: 500;
}

/* Optional: slight focus highlight */
input:focus, textarea:focus {
  outline: none;
  border-color: #004a91;
  box-shadow: 0 0 3px rgba(0,74,145,0.3);
}


@media (max-width: 768px) {
  .form {
    flex-direction: column;
  }

  .form-section,
  .form::after {
    max-width: 100%;
    flex: 1 1 auto;
    min-height: 300px;
  }

  /* Make image appear first on mobile */
  .form-section {
    order: 2;
  }

  .form::after {
    order: 1;
  }
}