/* Contact page — info cards + form/map */

.mg-contact {
  padding: 3rem 0 4rem;
  background: #fff;
}

.mg-contact__info {
  margin-bottom: 2.5rem;
}

.mg-contact-card {
  text-align: center;
  margin-bottom: 0;
  padding: 2.5rem 1.35rem 2.15rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  height: 100%;
  border: 0;
  transition: box-shadow 0.35s ease;
}

.mg-contact-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.mg-contact-card__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border: 1px solid var(--mg-primary);
  border-radius: 50%;
  color: var(--mg-primary);
  overflow: hidden;
  transition: color 0.5s ease-in-out;
}

.mg-contact-card__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mg-primary);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.5s ease-in-out;
  z-index: -1;
}

.mg-contact-card:hover .mg-contact-card__icon {
  color: #fff;
}

.mg-contact-card:hover .mg-contact-card__icon::before {
  transform: scale(1);
}

.mg-contact-card h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.35rem;
  text-transform: none;
  letter-spacing: 0;
}

.mg-contact-card p,
.mg-contact-card a {
  display: block;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.75;
  color: #687188;
  text-decoration: none;
}

.mg-contact-card a:hover,
.mg-contact-card a:focus-visible {
  color: var(--mg-primary);
}

.mg-contact__body {
  align-items: stretch;
}

.mg-contact-form-panel__title {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: var(--mg-ink);
  margin: 0 0 1.35rem;
  text-transform: capitalize;
}

.mg-contact-form .form-control {
  min-height: 50px;
  border-radius: 4px;
  border-color: #ececec;
  background: #fff;
  font-size: 0.95rem;
}

.mg-contact-form .form-control:focus {
  border-color: var(--mg-primary);
  box-shadow: 0 0 0 3px var(--mg-primary-soft);
}

.mg-contact-form textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.mg-contact-form .btn-mg {
  min-width: 180px;
  margin-top: 0.25rem;
}

.mg-contact-map {
  position: relative;
  width: 100%;
  min-height: 460px;
  overflow: hidden;
  background: #f3f3f3;
}

.mg-contact-map iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
}

@media (max-width: 991.98px) {
  .mg-contact {
    padding: 2rem 0 3rem;
  }

  .mg-contact-map,
  .mg-contact-map iframe {
    min-height: 300px;
    height: 300px;
  }
}
