/* =========================
   CONTACT PAGE (FINAL)
========================= */

:root {
  --contact-black: #000;
  --contact-white: #fff;
  --contact-text: #fff;
  --contact-input-bg: #fff;
  --contact-input-text: #1f1f1f;
  --contact-radius-pill: 999px;
  --contact-radius-card: 24px;
}

/* =========================
   HERO STRUCTURE
========================= */

.contact-hero {
  position: relative;
  width: 100%;
  min-height: 800px;
  margin-top: -100px;
  padding-top: 170px;
  overflow: hidden;
  background: #fff;
}

/* IMATGE */
.contact-hero__image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  /* controla alçada de la foto */
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
  z-index: 0;
}

/* OVERLAY */
.contact-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: rgba(0, 0, 0, 0.34);
  z-index: 1;
}

/* PART BLANCA */
.contact-hero__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  background: #fff;
  z-index: 0;
}

/* =========================
   CONTENT (PER SOBRE)
========================= */

.contact-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  padding-left: calc((100vw - 1400px) / 2 + 120px);
  padding-right: calc((100vw - 1400px) / 2 + 120px);

  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(520px, 620px);
  justify-content: space-between;
  align-items: start;
  gap: 60px;
}

/* =========================
   TEXT ESQUERRA
========================= */

.contact-hero__left {
  padding-top: 110px;
  color: var(--contact-text);
}

.contact-hero__title {
  margin: 0 0 18px 0;
  font-size: clamp(46px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 800;
  color: #fff;
}

.contact-hero__info p {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  color: #fff;
}

.contact-hero__info p+p {
  margin-top: 2px;
}

/* =========================
   CARD FORMULARI
========================= */

.contact-card {
  background: #000;
  border-radius: var(--contact-radius-card);
  padding: 56px 52px 44px;
  box-sizing: border-box;
  min-height: 720px;
  margin-bottom: 120px;
}

/* =========================
   FORMULARI
========================= */

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

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-field label {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

/* INPUTS */
.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 0;
  outline: none;
  background: var(--contact-input-bg);
  color: var(--contact-input-text);
  font-size: 15px;
  font-weight: 500;
}

.contact-field input {
  height: 48px;
  border-radius: var(--contact-radius-pill);
  padding: 10px 18px;
}

.contact-field textarea {
  min-height: 180px;
  border-radius: 14px;
  padding: 16px 18px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.contact-field--full {
  margin-top: 2px;
}

/* =========================
   BOTÓ
========================= */

.contact-form__btn {
  width: fit-content;
  min-width: 136px;
  height: 42px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

.contact-form__btn:hover {
  opacity: 0.92;
}

/* =========================
   CHECKBOX
========================= */

.contact-form__check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  color: #fff;
  font-size: 14px;
}

.contact-form__check input {
  width: 18px;
  height: 18px;
  accent-color: #fff;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1400px) {
  .contact-hero__inner {
    padding-left: 120px;
    padding-right: 120px;
  }
}

@media (max-width: 980px) {

  .contact-hero {
    margin-top: 0;
    padding-top: 40px;
    min-height: auto;
  }

  .contact-hero__image,
  .contact-hero__overlay {
    height: 420px;
  }

  .contact-hero__bottom {
    height: 140px;
  }

  .contact-hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .contact-hero__left {
    padding-top: 20px;
  }

  .contact-card {
    min-height: auto;
    padding: 28px 20px 24px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .contact-hero__title {
    font-size: 42px;
  }
}

.auth-error {
  font-size: 13px;
  color: #ffb3b3;
}

.contact-input {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  outline: none;
  background: #fff;
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 500;
  height: 48px;
  border-radius: 999px;
  padding: 10px 18px;
}

.contact-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  outline: none;
  background: #fff;
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 500;
  min-height: 180px;
  border-radius: 14px;
  padding: 16px 18px;
  resize: vertical;
}

.contact-checkbox-input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #fff;
}

.contact-input:focus,
.contact-textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.contact-error {
  font-size: 13px;
  color: #ffb3b3;
  margin-top: 4px;
}

.contact-input {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  outline: none;
  background: #fff;
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 500;
  height: 48px;
  border-radius: 999px;
  padding: 10px 18px;
}

.contact-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  outline: none;
  background: #fff;
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 500;
  min-height: 180px;
  border-radius: 14px;
  padding: 16px 18px;
  resize: vertical;
}

.contact-checkbox-input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #fff;
}

.contact-input:focus,
.contact-textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.contact-error {
  font-size: 13px;
  color: #ffb3b3;
  margin-top: 4px;
}

.contact-message {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.35;
}

.contact-message--success {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.contact-captcha {
  margin-top: 8px;
}

.contact-captcha .g-recaptcha {
  transform: scale(0.94);
  transform-origin: left top;
}