/* HERO */
.contact-hero {
  background: #3c3b3b;
  padding: 100px 5% 30px;
  margin-left: 3%;
  min-height: 220px;
}

.contact-hero h1 {
  font-size: clamp(3.5rem, 5vw + 1.5rem, 6.5rem);
  font-weight: 300;
  color: #fff;
  line-height: 1;
  margin-bottom: 14px;
}

.contact-hero h2 {
  font-size: 20px;
  font-weight: 700;
  color: #ffa700;
  max-width: 380px;
  line-height: 1.35;
}

/* CONTENT WRAPPER */
.contact-wrapper {
  margin-bottom: 30px;
  margin-left: 3%;
}

/* TEAL INTRO */
.contact-intro {
  background: #3c585f;
  clip-path: polygon(0 50px, 100% 0, 100% 100%, 0 100%);
  padding: 70px 5% 50px 3%;
}

.contact-intro p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.7;
  max-width: 420px;
}

/* FORM AREA */
.contact-form-area {
  background: #c9d1d3;
  padding: 50px 5%;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
  margin-bottom: 24px;
}

.form-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2px;
}

.contact-input {
  background: #dce4e6;
  border: none;
  border-bottom: 1px solid #a0b0b5;
  padding: 14px 16px;
  font-family: "Sansation", sans-serif;
  font-size: 19px;
  color: #537780;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 2px;
}

.contact-input:focus {
  border-bottom-color: #ffa700;
}

.contact-input::placeholder {
  color: #6a888e;
}

.form-right {
  display: flex;
}

.contact-textarea {
  background: #dce4e6;
  border: none;
  border-bottom: 1px solid #a0b0b5;
  padding: 14px 16px;
  font-family: "Sansation", sans-serif;
  font-size: 19px;
  color: #537780;
  width: 100%;
  height: 100%;
  min-height: 230px;
  outline: none;
  resize: none;
  transition: border-color 0.2s;
}

.contact-textarea:focus {
  border-bottom-color: #ffa700;
}

.contact-textarea::placeholder {
  color: #6a888e;
}

/* CHECKBOX + SEND */
.contact-form-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 40px;
}

.contact-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 19px;
  color: #537780;
  line-height: 1.5;
  max-width: 500px;
}

.contact-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #ffa700;
}

.btn-send {
  background: #ffa700;
  color: #fff;
  border: none;
  padding: 14px 48px;
  font-family: "Sansation", sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s;
}

.btn-send:hover {
  background: #e09500;
}

/* MAP + ADDRESS */
.contact-map-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.contact-map {
  display: flex;
  width: 100%;
  min-height: 320px;
}

.contact-map iframe {
  width: 100%;
  flex-grow: 1;
  min-height: 320px;
  display: block;
}

.contact-address {
  padding: 20px 0;
}

.contact-address p {
  font-size: 19px;
  color: #537780;
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-address a {
  color: #537780;
  text-decoration: none;
  font-weight: 600;
  font-size: 19px;
}

.contact-address a:hover {
  color: #ffa700;
}

@media (max-width: 768px) {
  .contact-hero {
    margin-left: 0;
    padding: 70px 5% 0;
  }

  .contact-hero h1 {
    font-size: 48px;
  }

  .contact-wrapper {
    margin-right: 0;
  }

  .contact-intro {
    clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%);
    padding: 40px 5% 36px;
    margin-top: -30px;
  }

  .contact-form-area {
    padding: 36px 5%;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-textarea {
    min-height: 160px;
  }

  .contact-form-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .btn-send {
    width: 100%;
    text-align: center;
  }

  .contact-map-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Mensaje tras enviar el formulario (mailer.php → ?sent=1 / ?error=1) */
.contact-alert {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-left: 4px solid;
  font-size: 15px;
  line-height: 1.5;
}
.contact-alert--sent {
  background: #e6f4ea;
  border-color: #2e7d32;
  color: #1b5e20;
}
.contact-alert--error {
  background: #fdecea;
  border-color: #c62828;
  color: #8e1c1c;
}
