.contact-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  background: transparent !important;
}

.contact-hero .page-hero__overlay {
  display: none;
}

.contact-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 90px;
  padding-bottom: 90px;
}

.contact-hero .page-hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.05;
  font-weight: 700;
}

.contact-page {
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("/wp-content/themes/alamerswitchgear/assets/images/protections_qa-3.webp")
      center/cover no-repeat;
  color: #fff;
}

.contact-branches-section {
  padding: 72px 0 40px;
}

.contact-branches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.contact-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.contact-card__map {
  overflow: hidden;
  background: #ddd;
}

.contact-card__map iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
  filter: grayscale(1) brightness(1.02);
}

.contact-card__content {
  background: rgba(28, 28, 28, 0.78);
  backdrop-filter: blur(8px);
  padding: 22px 20px 24px;
  min-height: 285px;
}

.contact-card__title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.contact-card__address {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.7;
}

.contact-card__contact-block h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

.contact-card__contact-block p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.7;
}

.contact-card__contact-block strong {
  color: #fff;
  font-weight: 700;
}

.contact-map-link {
  display: inline-block;
  margin-top: 14px;
  color: #c79a3b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.contact-map-link:hover {
  opacity: 0.8;
}

.contact-form-wrap {
  padding: 36px 0 72px;
}

.contact-form-section {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-form-section h2 {
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.15;
  font-weight: 700;
}

.contact-form-box {
  max-width: 560px;
  margin: 0 auto;
}
.contact-form-box label {
  width: 100%;
}
.contact-form-box p {
  margin: 0 0 18px;
}

.contact-form-box input,
.contact-form-box textarea,
.contact-form-box select {
  width: 100%;
  border: 0;
  outline: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 15px;
  padding: 16px 18px;
  border-radius: 0;
  box-shadow: none;
}

.contact-form-box input::placeholder,
.contact-form-box textarea::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.contact-form-box textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form-box .wpcf7-submit,
.contact-form-box button,
.contact-form-box input[type="submit"] {
  min-width: 190px;
  height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: #ef1010;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.contact-form-box .wpcf7-submit:hover,
.contact-form-box button:hover,
.contact-form-box input[type="submit"]:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.contact-form-box .wpcf7-spinner {
  display: block;
  margin: 14px auto 0;
}

.contact-bottom-map {
  margin-top: 12px;
}

.contact-bottom-map iframe {
  display: block;
  width: 100%;
  height: 430px;
  border: 0;
  filter: grayscale(1) brightness(1.02);
}

@media (max-width: 1199px) {
  .contact-branches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .contact-hero {
    min-height: 240px;
  }

  .contact-hero__inner {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .contact-hero .page-hero__title {
    font-size: 42px;
  }

  .contact-branches-section {
    padding: 42px 0 20px;
  }

  .contact-branches {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .contact-card__map iframe {
    height: 280px;
  }

  .contact-card__content {
    min-height: auto;
    padding: 18px;
  }

  .contact-card__title {
    font-size: 26px;
  }

  .contact-card__address {
    font-size: 16px;
  }

  .contact-form-wrap {
    padding: 26px 0 46px;
  }

  .contact-form-section h2 {
    font-size: 32px;
  }

  .contact-bottom-map iframe {
    height: 320px;
  }
}
