/* Contact page. Mockup at 1920px: content from 181px (left) to 85px
   (right), 847px and 731px columns with a 76px gap. */
.oasis-contact {
  --pad-left: clamp(16px, 9.4vw, 181px);
  --pad-right: clamp(16px, 4.4vw, 85px);
  max-width: 1920px;
  margin-inline: auto;
  padding: clamp(40px, 5.7vw, 110px) var(--pad-right) clamp(20px, 2.24vw, 43px) var(--pad-left);
  color: var(--oasis-navy);
}

.oasis-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 847fr) minmax(0, 731fr);
  column-gap: clamp(32px, 3.96vw, 76px);
  align-items: start;
}

/* Smaller than the mockup (~30px) on request: at most 20px. */
.oasis-contact__address {
  font-size: clamp(1rem, 1.04vw, 1.25rem);
  font-style: normal;
  font-weight: 600;
  line-height: 1.66;
}

.oasis-contact__address strong {
  display: block;
  font-size: 1.25em;
  font-weight: 700;
  line-height: 1.25;
}

.oasis-contact__address a {
  color: inherit;
  text-decoration: none;
}

.oasis-contact__address a:hover {
  text-decoration: underline;
}

/* Form: 848px box, 3px border, 75px corners; ~28px labels; 56px fields
   24px apart. Subject, consent and the submit button are not in the mockup. */
.oasis-contact__form-wrap {
  --field-h: clamp(40px, 2.92vw, 56px);
  margin-top: clamp(32px, 4.95vw, 95px);
  font-size: clamp(1rem, 1.46vw, 1.75rem);
  scroll-margin-top: 24px;
}

.oasis-contact__form-title {
  margin: 0 0 0.35em;
  color: var(--oasis-blue-light);
  font-size: 1em;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.oasis-contact__notice {
  margin: 0 0 0.8em;
  padding: 0.6em 0.9em;
  border-left: 4px solid var(--oasis-orange);
  background: var(--oasis-grey);
  font-size: max(0.9rem, 0.65em);
  line-height: 1.4;
}

.oasis-contact__notice--sent {
  border-left-color: var(--oasis-green);
}

.oasis-contact__form {
  position: relative;
  padding: clamp(14px, 1.15vw, 22px) clamp(18px, 4.1vw, 79px) clamp(16px, 1.46vw, 28px) clamp(18px, 3.1vw, 60px);
  border: 3px solid var(--oasis-blue-light);
  border-radius: clamp(28px, 3.9vw, 75px);
}

.oasis-contact__fields {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.oasis-contact__fields:disabled {
  opacity: 0.5;
}

.oasis-contact__fields:disabled .oasis-btn-graphic {
  cursor: not-allowed;
  transform: none;
}

.oasis-contact__notice a {
  color: var(--oasis-blue-light);
  font-weight: 700;
}

.oasis-contact__honeypot {
  position: absolute;
  left: -9999px;
}

.oasis-contact__field {
  display: flex;
  gap: 0.6em;
  margin: 0 0 clamp(12px, 1.25vw, 24px);
}

.oasis-contact__field label {
  flex: 0 0 auto;
  /* Width of "Assunto", so all fields line up. */
  min-width: 4.1em;
  font-weight: 700;
  line-height: var(--field-h);
}

.oasis-contact__field--textarea label {
  line-height: 1.6;
}

.oasis-contact__field input,
.oasis-contact__field select,
.oasis-contact__field textarea {
  flex: 1;
  min-width: 0;
  height: var(--field-h);
  padding: 0 0.5em;
  border: 1px solid var(--oasis-blue-light);
  border-radius: 0;
  background: var(--oasis-white);
  color: var(--oasis-text);
  font-size: max(1rem, 0.7em);
}

.oasis-contact__field select {
  padding-right: 2.4em;
  appearance: none;
  background: var(--oasis-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14'%3E%3Cpath d='M1 1l11 11L23 1' fill='none' stroke='%231c3766' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 0.8em center / 1.1em auto;
}

.oasis-contact__field textarea {
  height: clamp(140px, 13.1vw, 252px);
  padding-block: 0.5em;
  resize: vertical;
}

.oasis-contact__field input:focus,
.oasis-contact__field select:focus,
.oasis-contact__field textarea:focus {
  outline: 2px solid var(--oasis-navy);
  outline-offset: 1px;
}

.oasis-contact__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8em 1.2em;
}

.oasis-contact__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  font-size: max(0.85rem, 0.6em);
  line-height: 1.4;
}

.oasis-contact__consent input {
  flex-shrink: 0;
  width: 1.1em;
  height: 1.1em;
  margin: 0.15em 0 0;
  accent-color: var(--oasis-blue-light);
}

.oasis-contact__consent a {
  color: var(--oasis-blue-light);
}

.oasis-contact__form .oasis-btn-graphic {
  padding: 0.6em 1.4em;
  border: 0;
  font-family: inherit;
  font-size: max(0.85rem, 0.65em);
}

/* 731×449px photo with ~140px corners; social links 97px below, indented
   108px, 32px icons, one every 76px. */
.oasis-contact__photo {
  width: 100%;
  aspect-ratio: 731 / 449;
  object-fit: cover;
  border-radius: clamp(40px, 7.3vw, 140px);
}

/* Dots 1371px wide at 1920px, positioned on the page (not on the off-centre
   content): in the mockup they start 261px from the left edge. */
.oasis-contact .oasis-contact__dots {
  --dots-w: min(71.4vw, 1371px);
  width: var(--dots-w);
  max-width: none;
  margin-left: calc(50% + (var(--pad-right) - var(--pad-left)) / 2 - var(--dots-w) / 2 - 1vw);
}

.oasis-contact__social {
  display: grid;
  gap: clamp(16px, 2.3vw, 44px);
  padding-top: clamp(32px, 5vw, 97px);
  padding-left: clamp(0px, 5.6vw, 108px);
}

.oasis-contact__social a {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 1.77vw, 34px);
  color: var(--oasis-green);
  font-size: clamp(0.95rem, 1.35vw, 1.625rem);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.oasis-contact__social a:hover {
  text-decoration: underline;
}

.oasis-contact__social svg {
  flex-shrink: 0;
  width: clamp(24px, 1.67vw, 32px);
  height: clamp(24px, 1.67vw, 32px);
}

/* Mobile (mockup at 389px): photo first, then address, the form with
   labels beside the fields, social links last. */
@media (max-width: 768px) {
  .oasis-contact {
    padding: 17px var(--oasis-gutter) 20px;
  }

  .oasis-contact__grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .oasis-contact__info,
  .oasis-contact__aside {
    display: contents;
  }

  .oasis-contact__photo {
    order: 1;
    width: 73.5%;
    margin-inline: auto;
    border-radius: 45px;
  }

  .oasis-contact__address {
    order: 2;
    margin-top: 24px;
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .oasis-contact__address strong {
    font-size: 1.25em;
  }

  .oasis-contact__form-wrap {
    --field-h: 30px;
    order: 3;
    margin-top: 30px;
    font-size: 0.8125rem;
  }

  .oasis-contact__form-title {
    margin-bottom: 4px;
  }

  .oasis-contact__form {
    padding: 12px 22px 16px 24px;
    border-width: 2px;
    border-radius: 30px;
  }

  .oasis-contact__field {
    margin-bottom: 8px;
  }

  .oasis-contact__field input,
  .oasis-contact__field select,
  .oasis-contact__field textarea {
    font-size: 1rem;
  }

  .oasis-contact__field textarea {
    height: 110px;
  }

  .oasis-contact__social {
    order: 4;
    gap: 22px;
    padding: 26px 0 0;
  }

  .oasis-contact__social a {
    gap: 18px;
    font-size: 0.875rem;
  }

  .oasis-contact__social svg {
    width: 20px;
    height: 20px;
  }

  .oasis-contact .oasis-contact__dots {
    --dots-w: 85%;
    margin-top: 36px;
    margin-left: auto;
  }
}
