/*
 * The contact page (components/ContactPage.tsx + ContactFormBox.tsx), 2026-11-05. The hero is the program pages'
 * (components/PageHero.tsx, styles/hero.css). Two columns: the office (picture, address, contact lines) and the form in a soft box;
 * the map in a rounded frame under them.
 */

.acm-ct {
  --ct-soft: var(--accent-soft);
  --ct-line: var(--accent-line);
}
.acm-ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: 56px;
}

/* the office */
.acm-ct-place__img {
  margin: 0 0 16px;
}
.acm-ct-place__img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  box-shadow: var(--sh-card-hover);
}
.acm-ct-place__text {
  margin: 0;
}
.acm-ct-lines {
  margin-top: 22px;
}
.acm-ct .acm-ct-lines__title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--acm-ink);
}
.acm-ct-lines ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.acm-ct-lines li + li {
  border-top: 1px solid var(--accent-line);
}
.acm-ct .acm-ct-lines a,
.acm-ct-lines__plain {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--acm-ink);
  text-decoration: none;
}
.acm-ct .acm-ct-lines a:hover span:last-child {
  color: var(--accent);
}
.acm-ct-lines__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ct-soft);
  color: var(--accent);
  font-size: 14px;
}
.acm-ct-lines__icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* the form */
.acm-cf {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--ct-line);
  border-radius: var(--r-lg);
  background: var(--ct-soft);
}
.acm-cf label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: var(--acm-text-2);
}
.acm-ct .acm-cf input,
.acm-ct .acm-cf textarea {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--ct-line);
  border-radius: var(--r-sm);
  background: #fff;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--acm-ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.acm-ct .acm-cf input:focus,
.acm-ct .acm-cf textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 0, 206, 0.12);
}
.acm-ct .acm-cf textarea {
  min-height: 150px;
  resize: vertical;
}
.acm-cf__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.acm-ct .acm-cf__btn {
  align-self: flex-start;
  min-width: 180px;
}
.acm-ct .acm-cf__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px var(--accent);
}
.acm-ct .acm-cf__btn:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}
.acm-cf__spin {
  animation: acm-cf-spin 0.9s linear infinite;
}
@keyframes acm-cf-spin {
  to {
    transform: rotate(360deg);
  }
}
.acm-cf__msg {
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: #fee2e2;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: #991b1b;
}
.acm-cf--sent {
  align-items: flex-start;
  gap: 16px;
}
.acm-cf--sent p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--acm-ink);
}
.acm-ct .acm-cf__again {
  padding: 9px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  background: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
}

/* the map */
.acm-ct-map {
  margin-top: 56px;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card-hover);
}
.acm-ct-map iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
}

@media (max-width: 1024px) {
  .acm-ct-grid {
    gap: 32px;
  }
  .acm-cf {
    padding: 22px;
  }
}
@media (max-width: 767px) {
  .acm-ct-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .acm-cf {
    padding: 18px;
  }
  .acm-ct .acm-cf__btn {
    width: 100%;
  }
  .acm-ct-map {
    margin-top: 40px;
  }
  .acm-ct-map iframe {
    height: 320px;
  }
}
