/* ════════════════════════════════
   EASYACRES — CONTACT PAGE
   Page-specific additions only. Header, easyacres-cta and footer
   reuse common.css / style.css as-is.
   Load AFTER reset.css, common.css, style.css.
════════════════════════════════ */

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
}

/* ────────────────────────────────
   CONTACT SPLIT — info column + form card
──────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.contact-layout h2 {
  font-size: clamp(28px, 3vw, 36px);
  margin-bottom: 16px;
}

.contact-info__lead {
  font-size: 16px;
  color: var(--graphite);
  max-width: 420px;
  margin-bottom: 40px;
}

.contact-info__list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-bottom: 40px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.contact-info__icon .icon {
  width: 20px;
  height: 20px;
}

.contact-info__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 4px;
}

.contact-info__item a,
.contact-info__item span:not(.contact-info__label) {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--navy);
}

.contact-info__item a:hover {
  color: var(--ocean);
}

.contact-hours {
  padding: 26px 28px;
  background: var(--ivory);
  border-radius: var(--radius-md);
}

.contact-hours__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
}

.contact-hours__row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--graphite);
  padding: 8px 0;
  border-top: 1px solid rgba(10, 26, 47, 0.08);
}

.contact-hours__row:first-of-type {
  border-top: none;
}

/* ────────────────────────────────
   FORM CARD
──────────────────────────────── */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 44px;
}

.contact-form-card h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.contact-form-card > p {
  font-size: 15px;
  color: var(--graphite);
  margin-bottom: 28px;
}

.contact-form__field {
  margin-bottom: 20px;
}

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

.contact-form__field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 8px;
}

.contact-form__field input[type="text"],
.contact-form__field input[type="email"],
.contact-form__field input[type="tel"],
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  border: 1px solid var(--surface);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--duration-fast);
}

.contact-form__field select {
  background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6B78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
    no-repeat right 14px center / 14px;
  appearance: none;
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--steel);
}

.contact-form__phone {
  display: flex;
  align-items: center;
  border: 1px solid var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.contact-form__phone span {
  padding: 13px 12px;
  font-size: 14px;
  color: var(--graphite);
  background: var(--ivory);
  border-right: 1px solid var(--surface);
}

.contact-form__phone input {
  border: none !important;
  border-radius: 0 !important;
}

.contact-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--graphite);
  margin-bottom: 24px;
  cursor: pointer;
}

/* Fully custom checkbox rather than relying on accent-color — native
   checkbox rendering (and how clearly the checkmark shows once ticked)
   varies enough across browsers/OSes that it wasn't reading as "checked"
   for everyone. appearance:none + a CSS-drawn checkmark on :checked
   guarantees the same, unmistakable look everywhere. */
.contact-form__consent input {
  appearance: none;
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  flex-shrink: 0;
  border: 2px solid var(--steel) !important;
  border-radius: 4px;
  background: var(--white) !important;
  cursor: pointer;
  position: relative;
  transition: background var(--duration-fast), border-color var(--duration-fast);
}

/* !important here isn't stylistic — some browsers keep painting a native
   checkbox background/border underneath author styles even with
   appearance:none unless these two properties are forced, which was the
   actual cause of the checkmark not reading as "checked" for some users. */
.contact-form__consent input:checked {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
}

.contact-form__consent input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.contact-form__consent a {
  color: var(--navy);
  text-decoration: underline;
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-form__submit {
  width: 100%;
}

/* ────────────────────────────────
   CONFIRMATION / ERROR POPUP
──────────────────────────────── */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 26, 47, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}

.contact-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.contact-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 22px;
  background: #e3f6ea;
  color: #1c6b39;
}

.contact-modal--error .contact-modal__icon {
  background: #fdeceb;
  color: #b3261e;
}

.contact-modal h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.contact-modal p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--graphite);
  margin-bottom: 26px;
}

.contact-modal .btn {
  width: 100%;
}

/* ────────────────────────────────
   FIND US — static image banner with an address overlay,
   linking out to Google Maps rather than embedding it.
──────────────────────────────── */
.contact-map {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
}

.contact-map__media {
  position: absolute;
  inset: 0;
}

.contact-map__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-map__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 26, 47, 0.88) 0%,
    rgba(10, 26, 47, 0.55) 55%,
    rgba(10, 26, 47, 0.2) 100%
  );
}

.contact-map__overlay {
  position: relative;
  z-index: 1;
  padding: 0 32px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.contact-map__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--surface);
  margin-bottom: 14px;
}

.contact-map__overlay h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 28px;
  max-width: 460px;
}

/* ────────────────────────────────
   RESPONSIVE
──────────────────────────────── */
@media (max-width: 1024px) {
  .contact-layout {
    display: flex;
    flex-direction: column-reverse;
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 991px) {
  .contact-form-card {
    padding: 28px;
  }

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

  .contact-map {
    min-height: 260px;
  }
}
