/* ==========================================================================
   Sonex Branding — Contact page
   ========================================================================== */

.contact {
  position: relative;
  min-height: 521px;
  display: flex;
  gap: 147px;
  padding: 10px;
  max-width: var(--container);
  margin-inline: auto;
}

/* Soft green glow washing out from the centre of the section */
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image: radial-gradient(at center center, #000000 73%, #237C38 100%);
  pointer-events: none;
}

.contact__details,
.contact__form {
  position: relative;
  z-index: 1;
  flex: 1 1 50%;
  min-width: 0;
  padding: 10px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* --------------------------------------------------------------------------
   Left column — headings, contact rows, socials
   -------------------------------------------------------------------------- */

.contact__eyebrow {
  font-family: var(--f-display);
  font-size: 38px;
  font-weight: var(--fw-semibold);
  line-height: 42px;
  color: var(--c-green-hover);
}

.contact__title {
  font-family: "Open Sans", sans-serif;
  font-size: 44px;
  font-weight: var(--fw-bold);
  line-height: 45px;
  letter-spacing: 0.8px;
  color: #E1E1E1;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 19px;
  margin-top: 16px;
  text-align: start;
  width: 100%;
}

.info-row__icon {
  flex: 0 0 auto;
  display: inline-block;
  padding: 0.5em;
  font-size: 28px;
  line-height: 1;
  border-radius: 6px;
  background-color: var(--c-green-hover);
  transition: background-color var(--t-fast);
}

.info-row__icon svg {
  width: 1em;
  height: 1em;
  fill: var(--c-white);
}

.info-row__title {
  margin-block-end: 3px;
  font-family: var(--f-display);
  font-size: 25px;
  font-weight: var(--fw-bold);
  color: var(--c-green-hover);
  transition: color 0.2s ease;
}

.info-row__title a {
  text-decoration: underline;
}

.info-row:hover .info-row__title {
  color: var(--c-white);
}

.info-row__text {
  font-family: var(--f-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  line-height: 1.3em;
  letter-spacing: 0.5px;
  word-spacing: 2px;
  color: var(--c-white);
}

.contact__follow {
  margin-top: 8px;
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--c-green-hover);
}

.contact__social {
  display: flex;
  gap: 21px;
}

.contact__social a {
  display: inline-flex;
  padding: 0.4em;
  font-size: 27px;
  line-height: 1;
  border-radius: 10%;
  background-color: transparent;
}

.contact__social svg {
  width: 1em;
  height: 1em;
  fill: var(--c-white);
  transition: fill var(--t-fast);
}

.contact__social a:hover svg {
  fill: var(--c-green);
}

/* --------------------------------------------------------------------------
   Right column — the enquiry form
   -------------------------------------------------------------------------- */

.contact__form {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 20px;
  padding: 10px;
  background-color: var(--c-black);
}

.form-field {
  margin-bottom: 20px;
}

.form-field:last-of-type {
  margin-bottom: 0;
}

.form-label,
.form-legend {
  display: block;
  padding: 0;
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 21px;
  color: rgba(255, 255, 255, 0.85);
}

.form-required {
  color: var(--c-error);
}

.form-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

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

.form-row > div {
  flex: 1 1 50%;
  min-width: 0;
}

.form-sublabel {
  display: block;
  margin-top: 5px;
  font-size: var(--fs-small);
  line-height: 19px;
  color: #75A652;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0 14px;
  font-family: var(--f-body);
  font-size: var(--fs-small);
  line-height: 19px;
  color: var(--c-white);
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 3px;
  transition: border-color var(--t-fast);
}

.form-input {
  height: 43px;
}

.form-textarea {
  min-height: 120px;
  padding-block: 12px;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--c-green);
  outline: none;
}

/* Shown by the validation script when a required field is left empty */
.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: var(--c-error);
}

.form-error {
  display: none;
  margin-top: 5px;
  font-size: 14px;
  color: var(--c-error);
}

.form-error.is-shown {
  display: block;
}

.form-submit {
  margin-top: 10px;
  min-height: 41px;
  padding: 0 15px;
  font-size: 17px;
  color: var(--c-white);
  background-color: #317D31;
  border: 0;
  border-radius: 3px;
  transition: background-color var(--t-fast);
}

.form-submit:hover {
  background-color: var(--c-green);
}

.form-status {
  margin-top: 12px;
  font-size: var(--fs-small);
  color: var(--c-green-light);
}

.form-status.is-success {
  color: var(--c-green-light);
}

.form-status.is-error {
  color: var(--c-error);
}

/* Spam trap — clipped rather than display:none, since plenty of bots skip
   fields that are display:none but fill in ones that are merely hidden.
   Clip is used instead of a negative offset so it cannot affect layout. */
.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .contact {
    gap: 34px;
  }

  .info-row__text {
    line-height: 1.4em;
  }
}

@media (max-width: 767px) {
  .contact {
    flex-direction: column;
  }

  .info-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .info-row__title {
    margin-block-end: 11px;
  }

  .contact__social {
    justify-content: center;
  }

  .contact__form {
    padding: 19px;
  }

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

/* --------------------------------------------------------------------------
   Location map
   -------------------------------------------------------------------------- */

.contact-map {
  max-width: var(--container);
  margin-inline: auto;
  padding: 10px;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}
