.contact-hero {
  position: relative;
  width: 100%;
  height: 65vh; /* image takes about half screen height */
  min-height: 300px; /* minimum height for smaller screens */
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url("img/hero-contact.jpg") 50% 30% / cover no-repeat; /* replace with your image */
}

/* OVERLAY */
.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* CONTENT */
.contact-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin-left: 18%;
  padding-right: 20px;
  color: white;
}

.contact-hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 25px;
}

/* SUBTEXT */
.contact-hero-content p {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  opacity: 0.85;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 35px;
  max-width: 550px;
}

.contact-section {
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  padding: 60px 0;
}

.contact-container {
  width: 90%;
  max-width: 1100px;
  display: flex;
  gap: 60px;
}

.contact-left {
  flex: 1;
}

.contact-left h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact-left p {
  color: #555;
  line-height: 1.6;
}

.contact-form {
  flex: 1;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.required {
  color: red;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #22322b;
  box-shadow: 0 0 0 2px rgba(34, 50, 43, 0.1);
}

.error-message {
  color: red;
  font-size: 0.8rem;
}

.input-error {
  border-color: red !important;
}

/* BUTTON */
.contact-button {
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: #22322b;
  color: white;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-button:hover {
  background: #1a2621;
}

/* LOADER */
.btn-loader {
  width: 18px;
  height: 18px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  display: none;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.contact-button.loading .btn-text {
  display: none;
}

.contact-button.loading .btn-loader {
  display: block;
}

/* SUCCESS */
.success-message {
  color: #22322b;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.success-message.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column; /* 🔥 stack */
    gap: 30px;
  }

  .contact-hero-content {
    margin-left: 0;
    padding: 0 20px;
    text-align: center;
  }

  .contact-left h2 {
    font-size: 2rem;
    text-align: center;
  }

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

  .contact-form {
    padding: 25px;
  }
}
