/* Contact page — Reach Out + form + map location */

.contact-page-section {
  padding: 64px 0 56px;
  background: #fff;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
  gap: 48px 64px;
  align-items: start;
}

.contact-info-card {
  border: 1px solid #e9ebef;
  border-radius: 16px;
  padding: 36px 32px 32px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(17, 17, 17, .04);
}

.contact-info-card h2,
.contact-form-card h2,
.contact-location__title {
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--legend-black, #111);
}

.contact-info-card__intro,
.contact-form-card__intro {
  color: #6b7280;
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 32px;
  max-width: 36ch;
}

.contact-form-card__intro {
  max-width: 42ch;
  margin-bottom: 28px;
}

.contact-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

.contact-info-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #f0f2f5;
  display: grid;
  place-items: center;
  color: #111111;
  flex-shrink: 0;
  line-height: 1;
}

.contact-info-icon [class^="icon-aurexo-"],
.contact-info-icon [class*=" icon-aurexo-"] {
  font-size: 20px;
  line-height: 1;
  display: block;
}

.contact-info-list strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--legend-black, #111);
}

.contact-info-list span,
.contact-info-list a {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
  text-decoration: none;
}

.contact-info-list a + a {
  margin-top: 2px;
}

.contact-info-list a:hover {
  color: var(--legend-black, #111);
}

.contact-social {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #e9ebef;
}

.contact-social strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--legend-black, #111);
}

.contact-social__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-social__links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #e2e5ea;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--legend-black, #111);
  text-decoration: none;
  font-size: 15px;
  transition: border-color .2s, transform .2s, background .2s;
}

.contact-social__links a:hover {
  border-color: #c5cad3;
  background: #f8f9fb;
  transform: translateY(-2px);
}

.contact-form-card {
  padding: 0;
  min-width: 0;
}

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

.contact-field label {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--legend-black, #111);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 15px 18px;
  font-size: 15px;
  font-family: inherit;
  background: #f3f4f6;
  color: var(--legend-black, #111);
  transition: border-color .2s, background .2s, box-shadow .2s;
  box-sizing: border-box;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: #d8dce3;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, .04);
}

.contact-field textarea {
  min-height: 168px;
  resize: vertical;
}

.contact-field--full {
  grid-column: 1 / -1;
}

.contact-submit {
  grid-column: 1 / -1;
  margin-top: 8px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 17px 24px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: var(--legend-black, #111);
  cursor: pointer;
  transition: transform .2s, background .2s;
  font-family: inherit;
}

.contact-submit:hover {
  transform: translateY(-1px);
  background: #1f2937;
}

.contact-alert {
  grid-column: 1 / -1;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.contact-alert--success {
  background: #ecfdf3;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.contact-alert--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Location + map (Aurexo-style) */
.contact-location-section {
  --map-accent: #b8d933;
  --map-accent-dark: #9bc424;
  padding: 0 0 72px;
  background: #fff;
}

.contact-location__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px 24px;
  margin-bottom: 24px;
}

.contact-location__address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  color: #6b7280;
  max-width: 520px;
  line-height: 1.5;
}

.contact-location__pin {
  flex-shrink: 0;
  font-size: 18px;
  color: #111111;
  margin-top: 1px;
}

.contact-directions-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--map-accent-dark, #9bc424);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.contact-directions-link:hover {
  color: var(--map-accent, #b8d933);
}

.contact-map-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--legend-line, #e8eaee);
  background: #eef0f3;
  min-height: 520px;
  isolation: isolate;
}

.contact-map {
  width: 100%;
  height: 520px;
  z-index: 1;
}

.contact-map .leaflet-top.leaflet-right {
  top: 18px;
  right: 18px;
}

.contact-map .leaflet-control-zoom {
  border: 0;
  box-shadow: 0 8px 24px rgba(17, 17, 17, .12);
  border-radius: 12px;
  overflow: hidden;
}

.contact-map .leaflet-control-zoom a {
  width: 38px;
  height: 38px;
  line-height: 38px;
  font-size: 18px;
  color: var(--legend-black, #111);
  background: #fff;
  border-bottom: 1px solid var(--legend-line, #e8eaee);
}

.contact-map .leaflet-control-zoom a:last-child {
  border-bottom: 0;
}

.contact-map .leaflet-control-attribution {
  background: rgba(255, 255, 255, .88);
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 10px;
  margin: 0 12px 10px;
}

.contact-map-marker {
  position: relative;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 0;
}

.contact-map-marker__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: rgba(184, 217, 51, .28);
  animation: contact-map-pulse 2.2s ease-out infinite;
}

.contact-map-marker__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  background: var(--map-accent, #b8d933);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
}

@keyframes contact-map-pulse {
  0% {
    transform: scale(0.55);
    opacity: 0.85;
  }
  70% {
    transform: scale(1);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Map popup card */
.contact-map-popup {
  position: absolute;
  z-index: 500;
  left: 28px;
  bottom: 28px;
  width: min(340px, calc(100% - 56px));
  transition: opacity .25s, transform .25s;
}

.contact-map-popup.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.contact-map-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--legend-black, #111);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  transition: transform .2s;
}

.contact-map-popup__close:hover {
  transform: scale(1.05);
}

.contact-map-popup__card {
  display: block;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(17, 17, 17, .16);
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
}

.contact-map-popup__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(17, 17, 17, .2);
}

.contact-map-popup__media {
  aspect-ratio: 16 / 10;
  background: #f3f4f6;
  overflow: hidden;
}

.contact-map-popup__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-map-popup__media--logo {
  aspect-ratio: auto;
  padding: 28px 24px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-map-popup__media--logo img {
  width: auto;
  max-width: 180px;
  max-height: 72px;
  object-fit: contain;
}

.contact-map-popup__body {
  padding: 16px 18px 18px;
}

.contact-map-popup__title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--legend-black, #111);
}

.contact-map-popup__subtitle {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--legend-gray, #6b7280);
}

.contact-map-popup__phone {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--legend-black, #111);
  text-decoration: none;
}

.contact-map-popup__phone:hover {
  color: var(--map-accent-dark, #9bc424);
}

.contact-map-popup__meta {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.contact-map-popup__meta li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--legend-gray, #6b7280);
}

.contact-map-popup__meta i {
  font-size: 14px;
  color: var(--legend-black, #111);
  opacity: .75;
}

.contact-map-popup__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--legend-black, #111);
  text-decoration: none;
}

.contact-map-popup__card:hover .contact-map-popup__cta {
  color: var(--map-accent-dark, #9bc424);
}

.contact-map-popup__cta-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--map-accent, #b8d933);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: background .2s;
}

.contact-map-popup__card:hover .contact-map-popup__cta-icon {
  background: var(--map-accent-dark, #9bc424);
}

@media (max-width: 991px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info-card {
    max-width: 100%;
  }

  .contact-info-card__intro,
  .contact-form-card__intro {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .contact-page-section {
    padding: 40px 0 32px;
  }

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

  .contact-map-wrap,
  .contact-map {
    min-height: 380px;
    height: 380px;
  }

  .contact-map-popup {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-width: none;
  }

  .contact-map-popup__media {
    aspect-ratio: 16 / 11;
  }

  .contact-location-section {
    padding-bottom: 48px;
  }
}
