/* ==========================================================================
   MAPS TOWING — CONTACT PAGE
   ========================================================================== */

/* Layout */
.contact {
  display: flex;
  align-items: stretch;
  gap: 36px;
  padding: 72px var(--side-pad);
}

/* Info card (dark) */
.contact-info {
  flex: 0 0 650px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 40px;
  background: var(--graphite-850);
  border-radius: var(--r-16);
}

.contact-info__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-info__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-info__title {
  font-size: 44px;
  font-weight: 600;
  line-height: 50px;
  color: var(--graphite-50);
}

.contact-info__sub {
  font-size: 16px;
  line-height: 22px;
  color: var(--graphite-150);
}

.contact-info__rows {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-info__icn {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 1px solid var(--primary-1);
  border-radius: var(--r-40);
  background: var(--grad-secondary);
  box-shadow: 0 4px 28px rgba(255, 56, 0, 0.24);
}

.contact-info__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-info__label {
  font-size: 14px;
  line-height: 19px;
  color: var(--graphite-250);
}

.contact-info__value,
.contact-info__value a {
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--graphite-50);
  transition: color 0.2s var(--ease);
}

.contact-info__value a:hover {
  color: var(--primary-2);
}

/* Form card */
.contact-form {
  flex: 1 1 706px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  padding: 40px;
  background: var(--graphite-50);
  border: 1px solid var(--graphite-150);
  border-radius: var(--r-16);
}

.contact-form__row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.contact-form__row .field {
  flex: 1 1 0;
  min-width: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.field__label {
  font-size: 16px;
  line-height: 22px;
  color: var(--graphite-950);
}

.field__input {
  width: 100%;
  height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--graphite-200);
  border-radius: 32px;
  background: transparent;
  font-family: var(--font);
  font-size: 16px;
  line-height: 22px;
  color: var(--graphite-950);
  outline: none;
  transition: border-color 0.2s var(--ease);
}

.field__input::placeholder {
  color: var(--graphite-400);
}

.field__input:focus {
  border-color: var(--primary-1);
}

.field__select-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.field__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.field__select:invalid {
  color: var(--graphite-400);
}

.field__select-icn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.field__textarea {
  height: 138px;
  border-radius: 24px;
  resize: none;
}

/* Consent */
.contact-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  cursor: pointer;
}

.contact-form__consent span {
  font-size: 14px;
  line-height: 19px;
  color: var(--graphite-450);
}

.contact-form__consent a {
  color: var(--graphite-450);
  text-decoration: underline;
  transition: color 0.2s var(--ease);
}

.contact-form__consent a:hover {
  color: var(--primary-1);
}

.checkbox {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid var(--graphite-350);
  border-radius: 4px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.checkbox:checked {
  background: var(--grad-primary);
  border-color: transparent;
}

.checkbox:checked::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid var(--graphite-50);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.contact-form__submit .icn {
  width: 14px;
  height: 12px;
}


@media (max-width: 1023.98px) {
  .contact {
    flex-direction: column;
    gap: 24px;
    padding: 72px var(--side-pad-mobile);
  }

  .contact-info {
    flex: none;
    width: 100%;
    gap: 36px;
    padding: 36px 24px;
  }

  .contact-info__title {
    font-size: 32px;
    line-height: 38px;
  }

  .contact-info__icn {
    width: 48px;
    height: 48px;
  }

  .contact-info__icn .icn {
    width: 16px;
    height: 16px;
  }

  .contact-form {
    flex: none;
    padding: 24px;
  }

  .contact-form__row {
    flex-direction: column;
    gap: 16px;
  }

  .field__input {
    height: 48px;
  }

  .field__textarea {
    height: 138px;
  }

  .contact-form__consent span {
    font-size: 12px;
    line-height: 14px;
  }

  .contact-form__submit {
    width: 100%;
    height: 48px;
    padding: 12px 20px;
  }

}

/* ---- Contact form: honeypot + submit states (added for the real AJAX handler) ---- */
.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__submit.is-error {
  background: linear-gradient(90deg, #c0261c 0%, #e04a2e 100%);
  color: #fff;
  cursor: pointer;
}

/* Successful submission replaces the form without both columns remaining visible. */
.contact-form[hidden] {
  display: none;
}

.contact-form--thanks {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contact-form__thanks-title {
  font-size: 44px;
  font-weight: 600;
  line-height: 50px;
  color: var(--graphite-950);
}

.contact-form__thanks-text {
  max-width: 480px;
  font-size: 16px;
  line-height: 22px;
  color: var(--graphite-600);
}

.contact-form__thanks-call {
  margin-top: 8px;
}

@media (max-width: 767px) {
  .contact-form__thanks-title {
    font-size: 32px;
    line-height: 38px;
  }
}
