.contact-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 180px);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* CONTACT HERO */

.contact-hero {
  padding: 230px 0 230px;
  background-image: url(/images/contact/contact-bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 100% 47%;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0)
  );
}

/* contenido */

.contact-hero-content {
  max-width: 520px;
  position: relative;
  z-index: 2;
}

/* texto */

.contact-hero-title {
  width: 100%;
  color: #1b667f;
  font-weight: 500;
  letter-spacing: -1px;
  text-transform: uppercase;
  -webkit-text-stroke: 2px #202020;
  font-family: "obviously", sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
}

/* CONTACT SECTION */

.contact-section {
  position: relative;
  padding: clamp(80px, 13vw, 25rem) 0;
  background-image: url(/images/bg-texture.png);
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-filler {
  width: 100%;
  height: 66px;
  display: block;
  position: absolute;
  left: 0;
  top: -4rem;
  background-image: url(/images/white-filler.svg);
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 5;
}

.contact-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(30px, 4vw, 60px);
  padding-bottom: 2rem;
  flex-wrap: wrap;
}

/* INFO */

.contact-info {
  flex: 1 1 420px;
  min-width: 280px;
}

.contact-title {
  font-family: "anton";
  color: #202020;
  font-size: 40px;
  font-weight: 700;
  line-height: 50px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.contact-description {
  margin-bottom: 30px;
  line-height: 1.6;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item h4 {
  font-size: 16px;
  margin-bottom: 5px;
  color: #1b667f;
}

/* FORM */

.contact-form-wrapper {
  flex: 1 1 420px;
  max-width: 650px;
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-group label {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  color: #1b667f;
  font-size: 14px;
  font-weight: 400;
  line-height: 25px;
  padding: 0 0 3px 6px;
  border-bottom: 2px solid #1b667f;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system;
  outline: none;
}

.form-group textarea {
  padding: 8px;
  border: 2px solid #1b667f;
}

.text-area-div {
  margin-top: 2rem;
}

textarea {
  resize: none;
  min-height: 160px;
}

.char-count {
  font-size: 12px;
  color: #777;
  text-align: right;
}

.error-message {
  height: 12px;
  font-size: 12px;
  color: #e74c3c;
  margin-top: 4px;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #e74c3c;
}

.form-group.success input,
.form-group.success textarea {
  border-color: #2ecc71;
}

.form-group.error .error-message {
  opacity: 1;
  transform: translateY(0);
}

.form-group.success .error-message {
  opacity: 0;
}

/* transición en inputs */
.form-group input,
.form-group textarea {
  transition:
    border-color 0.3s ease,
}

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

  .form-row {
    flex-direction: column;
  }

  .contact-info {
    margin-bottom: 50px;
  }

  .form-group label {
    text-align: left;
    margin-left: 4px;
  }
}

@media (max-width: 850px) {
  .contact-hero {
    min-height: 400px;
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 120px 0;
  }

  .contact-details {
    text-align: left;
  }
}
