/* Contact page: self-contained layout built on the shared header and footer. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.contact-page {
  --contact-ink: var(--text-main);
  --contact-muted: var(--text-muted);
  --contact-red: var(--brand-red);
  --contact-red-dark: var(--brand-red-dark);
  --contact-green: #12bf63;
  --contact-line: #e5e7eb;
  background: #fff;
  color: var(--contact-ink);
  overflow: hidden;
}

.contact-shell {
  width: min(1320px, calc(100% - 72px));
  margin-inline: auto;
}

/* Hero preserves the original van composition without extra DOM animation. */
.contact-hero {
  position: relative;
  min-height: 540px;
  display: grid;
  align-items: center;
  padding: 66px max(4vw, calc((100vw - 1320px) / 2));
  background: #fff url("../images/contact/contact-hero-desktop.png") center / cover no-repeat;
}

.contact-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0 27%, rgba(255, 255, 255, 0.76) 38%, transparent 58%);
}

.contact-hero__content {
  position: relative;
  z-index: 1;
  width: min(520px, 46vw);
}

.contact-hero__eyebrow {
  display: block;
  margin: 0 0 22px;
}

.contact-hero h1 {
  margin: 0;
  color: var(--contact-ink);
  font-size: clamp(48px, 4.2vw, 72px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.contact-hero h1 span {
  color: var(--contact-red);
}

.contact-hero__intro {
  max-width: 500px;
  margin: 24px 0 26px;
  color: var(--contact-muted);
  font-size: 17px;
  line-height: 1.55;
}

.contact-hero__cta {
  margin-top: 0;
}

.contact-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  color: #323846;
  font-size: 12px;
  font-weight: 700;
}

.contact-hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-hero__trust i {
  color: var(--contact-red);
}

.contact-hero__systems {
  position: absolute;
  z-index: 2;
  top: 54px;
  right: 3vw;
  width: 260px;
  display: grid;
  gap: 12px;
}

.hero-system-card {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid rgba(215, 218, 225, 0.84);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(8px);
}

.hero-system-card:nth-child(2) {
  position: absolute;
  top: 342px;
  right: 0;
  width: 260px;
}

.hero-system-card__icon {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #fff3f3;
  color: var(--contact-red);
}

.hero-system-card > span:last-child {
  display: grid;
  gap: 4px;
}

.hero-system-card small {
  color: #727987;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-system-card strong {
  color: #1f2937;
  font-size: 12px;
  line-height: 1.3;
}

/* Contact channels share one card pattern for consistent actions. */
.contact-channels {
  padding: clamp(32px, 2.4vw, 46px) 0 clamp(34px, 2.5vw, 48px);
  background: radial-gradient(circle at 50% 0%, rgba(225, 25, 25, 0.035), transparent 31%), #ffffff;
}

.section-heading {
  margin-bottom: 34px;
  text-align: center;
}

.section-heading p,
.operations-heading p {
  margin: 0 0 8px;
  color: #616978;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-heading h2,
.operations-heading h2 {
  margin: 0;
  font-size: clamp(34px, 3.3vw, 48px);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.contact-channel-grid {
  margin-top: clamp(22px, 1.55vw, 30px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 1.55vw, 31px);
}

@media (max-width: 760px) {
  .contact-channel-card.contact-channel-card--online {
    display: none;
  }
}

.contact-channel-card {
  position: relative;
  min-height: clamp(295px, 17vw, 325px);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: clamp(25px, 1.65vw, 32px) clamp(30px, 2vw, 40px) clamp(23px, 1.5vw, 29px);
  border: 1px solid #e5e8eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 31px rgba(11, 18, 24, 0.06);
  text-align: center;
  transition: transform 210ms ease, border-color 210ms ease, box-shadow 210ms ease;
}

.contact-channel-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--contact-red), transparent);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 210ms ease, transform 210ms ease;
}

.contact-channel-card:hover {
  border-color: rgba(225, 25, 25, 0.28);
  box-shadow: 0 17px 38px rgba(11, 18, 24, 0.09);
  transform: translateY(-3px);
}

.contact-channel-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.contact-channel-card__icon {
  width: clamp(62px, 3.55vw, 70px);
  height: clamp(62px, 3.55vw, 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(225, 25, 25, 0.42);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 7px 17px rgba(225, 25, 25, 0.08);
  color: var(--contact-red);
  font-size: clamp(24px, 1.5vw, 30px);
}

.contact-channel-card h3 {
  margin: clamp(17px, 1vw, 20px) 0 0;
  color: #0a0a0a;
  font-size: clamp(18px, 1.12vw, 22px);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.contact-channel-card > p {
  width: 82%;
  max-width: 390px;
  margin: 10px 0 0;
  color: #353b41;
  font-size: clamp(13px, 0.76vw, 15px);
  font-weight: 600;
  line-height: 1.48;
}

.contact-channel-card--online > p {
  width: 76%;
  max-width: 320px;
}

.contact-channel-card__detail {
  margin-top: 14px;
  color: var(--contact-red);
  font-size: clamp(16px, 0.95vw, 19px);
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-channel-card__button {
  width: 86%;
  height: clamp(46px, 2.7vw, 53px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border: 1px solid var(--contact-red);
  border-radius: 7px;
  background: linear-gradient(135deg, var(--contact-red), var(--contact-red-dark));
  box-shadow: 0 9px 19px rgba(225, 25, 25, 0.14);
  color: #fff;
  font-size: clamp(14px, 0.84vw, 17px);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-channel-card__button--outline {
  background: #fff;
  box-shadow: none;
  color: var(--contact-red);
}

.contact-channel-card__button:hover,
.contact-channel-card__button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 27px rgba(225, 25, 25, 0.23);
}

.contact-channel-card__button--outline:hover,
.contact-channel-card__button--outline:focus-visible {
  background: #fff5f5;
  color: var(--contact-red);
}

/* The form and coverage map use a balanced two-column operations layout. */
.contact-operations {
  padding: 74px 0 82px;
  background: linear-gradient(180deg, #fff, #f8f9fb);
}

.operations-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.operations-heading > span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--contact-line);
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  color: #424957;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.operations-heading > span i {
  color: var(--contact-green);
}

.contact-operations__grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(520px, 1.65fr);
  gap: 24px;
  align-items: stretch;
}

.contact-form-card,
.coverage-map {
  overflow: hidden;
  border: 1px solid var(--contact-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
}

.contact-form-card {
  padding: 28px;
}

.contact-form-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid #edf0f3;
}

.contact-form-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #fff1f1;
  color: var(--contact-red);
  font-size: 18px;
}

.contact-form-card__header h3 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 900;
}

.contact-form-card__header p {
  margin: 0;
  color: var(--contact-muted);
  font-size: 12px;
}

.contact-form {
  display: grid;
  gap: 15px;
  padding-top: 20px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form label > span:first-child {
  color: #343a46;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-form label small {
  color: #848b98;
  font-size: 9px;
  font-weight: 700;
  text-transform: none;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  outline: 0;
  background: #fbfcfd;
  color: #202632;
  font: inherit;
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.contact-form input,
.contact-form select {
  height: 46px;
  padding: 0 12px;
}

.contact-form textarea {
  min-height: 104px;
  padding: 12px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--contact-red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(225, 25, 25, 0.1);
}

.contact-form [aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

.contact-select-wrap {
  position: relative;
  display: block;
}

.contact-select-wrap select {
  appearance: none;
  padding-right: 34px;
}

.contact-select-wrap > i {
  position: absolute;
  top: 50%;
  right: 13px;
  color: #737b88;
  font-size: 11px;
  pointer-events: none;
  transform: translateY(-50%);
}

.contact-form__error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 7px;
  background: #fff5f5;
  color: #9b1c1c;
  font-size: 12px;
  line-height: 1.4;
}

.contact-form__success {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #b7e4c2;
  border-radius: 7px;
  color: #116329;
  background: #effaf2;
  font-size: 12px;
  line-height: 1.4;
}

.contact-form__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.contact-form__submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.contact-form__submit {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--contact-red), var(--contact-red-dark));
  box-shadow: 0 12px 24px rgba(225, 25, 25, 0.2);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.contact-form__submit:hover,
.contact-form__submit:focus-visible {
  background: var(--contact-red-dark);
}

/* Coverage is intentionally static and contains no external map embed. */
.coverage-map {
  display: grid;
  grid-template-rows: auto minmax(420px, 1fr) auto;
}

.coverage-map__topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid #edf0f3;
}

.coverage-map__topbar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coverage-map__topbar > div > span:last-child {
  display: grid;
  gap: 3px;
}

.coverage-map__topbar strong {
  font-size: 14px;
}

.coverage-map__topbar small {
  color: #747c89;
  font-size: 10px;
}

.coverage-map__status {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--contact-green);
  box-shadow: 0 0 0 5px rgba(18, 191, 99, 0.12);
}

.coverage-map__count {
  padding: 8px 11px;
  border: 1px solid #e6e9ed;
  border-radius: 8px;
  background: #fafbfc;
  color: #596170;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.coverage-map__canvas {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #f5f5f4 url("../images/contact/service-area-map.png") center / cover no-repeat;
}

.coverage-map__canvas::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 51% 55%, rgba(225, 25, 25, 0.17), transparent 22%);
}

.coverage-map__routes {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.coverage-map__route-lines use {
  fill: none;
  stroke: rgba(225, 25, 25, 0.5);
  stroke-width: 2;
  stroke-dasharray: 8 8;
  vector-effect: non-scaling-stroke;
}

.coverage-map__moving-van image {
  filter: drop-shadow(0 5px 5px rgba(15, 23, 42, 0.24));
}

.coverage-map__place,
.coverage-map__hub {
  position: absolute;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(223, 226, 231, 0.9);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.07);
  color: #252b36;
  font-size: 11px;
  font-weight: 900;
}

.coverage-map__hub {
  top: 55%;
  left: 50%;
  color: var(--contact-red);
  transform: translate(-50%, -50%);
}

.coverage-map__place--cedar { top: 11%; left: 19%; }
.coverage-map__place--round { top: 10%; right: 18%; }
.coverage-map__place--pflugerville { top: 34%; right: 5%; }
.coverage-map__place--south { right: 27%; bottom: 8%; }

.coverage-map__van {
  position: absolute;
  z-index: 1;
  display: none;
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 5px 5px rgba(15, 23, 42, 0.22));
}

.coverage-map__van--one { top: 25%; left: 29%; }
.coverage-map__van--two { top: 39%; right: 28%; }
.coverage-map__van--three { right: 32%; bottom: 17%; }

.coverage-map__legend {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 18px;
  border-top: 1px solid #edf0f3;
  color: #616978;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.coverage-map__legend i {
  margin-right: 5px;
  color: var(--contact-green);
}

.coverage-map__legend .fa-circle-info {
  color: var(--contact-red);
}

/* Tablet layout stacks operations before the controls become cramped. */
@media (max-width: 1100px) {
  .contact-hero {
    min-height: 510px;
    background-position: 58% center;
  }

  .contact-hero__systems {
    display: none;
  }

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

  .coverage-map {
    min-height: 540px;
  }
}

@media (max-width: 820px) {
  .contact-shell {
    width: min(100% - 34px, 680px);
  }

  .contact-hero {
    min-height: 740px;
    align-items: start;
    padding: 116px 24px 260px;
    background-image: url("../images/contact/contact-hero-mobile.png");
    background-position: center bottom;
    background-size: cover;
  }

  .contact-hero::after {
    background: linear-gradient(180deg, #fff 0 50%, rgba(255, 255, 255, 0.88) 62%, transparent 78%);
  }

  .contact-hero__content {
    width: min(520px, 100%);
  }

  .contact-hero h1 {
    font-size: clamp(42px, 10vw, 58px);
  }

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

  .contact-channel-card {
    min-height: 290px;
  }

  .operations-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Mobile keeps every field and action at a comfortable touch width. */
@media (max-width: 560px) {
  .contact-shell {
    width: calc(100% - 28px);
  }

  .contact-hero {
    min-height: 650px;
    padding: 110px 18px 210px;
    background-position: center calc(100% + 100px);
  }

  .contact-hero__eyebrow {
    margin-bottom: 14px;
    font-size: 10px;
  }

  .contact-hero h1 {
    font-size: clamp(38px, 12vw, 48px);
  }

  .contact-hero__intro {
    margin: 16px 0 18px;
    font-size: 14px;
  }

  .contact-hero__trust {
    gap: 8px 12px;
    margin-top: 12px;
    font-size: 9px;
  }

  .contact-channels {
    padding: 32px 0 54px;
  }

  .contact-operations {
    padding: 54px 0;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading h2,
  .operations-heading h2 {
    font-size: 32px;
  }

  .contact-channel-grid {
    gap: 16px;
  }

  .contact-channel-card {
    min-height: 280px;
    padding: 26px 20px 22px;
  }

  .operations-heading > span {
    min-height: 38px;
    max-width: 100%;
    white-space: normal;
  }

  .contact-form-card {
    padding: 20px 16px;
  }

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

  /* iOS zooms focused controls below 16px; native page zoom stays available. */
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
  }

  .coverage-map {
    min-height: 500px;
    grid-template-rows: auto minmax(360px, 1fr) auto;
  }

  .coverage-map__topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .coverage-map__canvas {
    min-height: 360px;
    background-position: 52% center;
  }

  .coverage-map__place,
  .coverage-map__hub {
    padding: 5px 7px;
    font-size: 9px;
  }

  .coverage-map__place--cedar { left: 6%; }
  .coverage-map__place--round { right: 5%; }
  .coverage-map__place--pflugerville { right: 2%; }
  .coverage-map__place--south { right: 12%; }

  .coverage-map__van {
    width: 46px;
    height: 46px;
  }

  .coverage-map__legend {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page *,
  .contact-page *::before,
  .contact-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .coverage-map__routes {
    display: none;
  }

  .coverage-map__van {
    display: block;
  }
}
