/**
 * Contact Us — hero + card layout + CF7 + map.
 */

.contact-us-page {
  background: #fff;
}

/* ----- Hero ----- */
.contact-us-hero {
  position: relative;
  min-height: 500px;
  height: 60vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.contact-us-hero__media {
  position: absolute;
  inset: 0;
}

.contact-us-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.contact-us-hero__media--fallback {
  background: linear-gradient(135deg, rgb(22, 78, 108) 0%, rgb(30, 108, 147) 50%, rgb(25, 90, 125) 100%);
}

.contact-us-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.contact-us-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1rem 1rem 2rem;
}

.contact-us-hero__content {
  max-width: 56rem;
  margin: 0 auto;
}

.contact-us-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.contact-us-hero__sub {
  margin: 0 0 1rem;
  font-size: clamp(0.875rem, 1.6vw, 1.125rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.contact-us-hero__badge {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.contact-us-hero__badge-line {
  margin: 0;
}

.contact-us-hero__badge-line--primary {
  color: #fff;
  font-weight: 600;
  font-size: 1.125rem;
}

.contact-us-hero__badge-line--secondary {
  margin-top: 0.25rem;
  color: #dbeafe;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ----- Main body ----- */
.contact-us-body {
  padding: 3rem 0 2rem;
  background: #fff;
}

@media (min-width: 1024px) {
  .contact-us-body {
    padding: 4rem 0 2rem;
  }
}

.contact-us-body__inner {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .contact-us-body__inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .contact-us-body__inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.contact-us-body__grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-us-body__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

.contact-us-body__heading {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #111827;
}

.contact-us-body__lede {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #4b5563;
}

/* ----- Info cards ----- */
.contact-us-cards {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .contact-us-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-us-card--duo {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .contact-us-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
  }
}

.contact-us-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.contact-us-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.contact-us-card--duo {
  padding: 1.35rem 1.5rem;
}

.contact-us-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
}

.contact-us-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  flex-shrink: 0;
  color: #fff;
}

.contact-us-card__icon--phone {
  background: rgb(30, 108, 147);
}

.contact-us-card__icon--map {
  background: #7c3aed;
}

.contact-us-card__icon--clock {
  background: #ea580c;
}

.contact-us-card__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

/* Definition list — Phone & Email (always stacked: label, then value on its own line) */
.contact-us-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-us-dl__row {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.contact-us-dl__row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.contact-us-dl__dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.contact-us-dl__dd {
  margin: 0;
  width: 100%;
}

.contact-us-dl__link {
  display: inline-block;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
  line-height: 1.45;
}

.contact-us-dl__link--phone {
  color: rgb(30, 108, 147);
}

.contact-us-dl__link--phone:hover,
.contact-us-dl__link--phone:focus {
  text-decoration: underline;
  color: rgb(25, 90, 125);
}

.contact-us-dl__link--email {
  color: #15803d;
  /* Wrap without horizontal scroll; <wbr> after @ prefers a clean break */
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.contact-us-dl__link--email:hover,
.contact-us-dl__link--email:focus {
  text-decoration: underline;
  color: #166534;
}

/* Address */
.contact-us-address {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-style: normal;
  color: #374151;
  font-size: 1rem;
  line-height: 1.55;
}

.contact-us-address__school {
  font-weight: 700;
  color: #111827;
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}

.contact-us-address__line {
  display: block;
}

/* Hours */
.contact-us-hours {
  padding-top: 0.25rem;
}

.contact-us-hours__days {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: #111827;
  font-size: 1.0625rem;
}

.contact-us-hours__time {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ea580c;
}

/* School tours blurb */
.contact-us-tours {
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.35rem;
  background: #f9fafb;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
}

.contact-us-tours__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

.contact-us-tours__text {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
}

.contact-us-tours__link {
  font-weight: 600;
  color: rgb(30, 108, 147);
  text-decoration: none;
}

.contact-us-tours__link:hover,
.contact-us-tours__link:focus {
  text-decoration: underline;
}

/* ----- Send us a message / Contact Form 7 ----- */
.contact-us-form-wrap {
  margin-top: 2rem;
  padding: 1.35rem 1.25rem 1.5rem;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

@media (min-width: 640px) {
  .contact-us-form-wrap {
    padding: 1.5rem 1.5rem 1.75rem;
  }
}

.contact-us-form-wrap__title {
  margin: 0 0 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

.contact-us-form__placeholder {
  margin: 0;
  padding: 1rem 1.25rem;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 0.5rem;
  color: #92400e;
  font-size: 0.9375rem;
}

/* CF7 root + reset (plugins often set inline-block on wraps) */
.contact-us-form {
  max-width: 100%;
}

.contact-us-form *,
.contact-us-form *::before,
.contact-us-form *::after {
  box-sizing: border-box;
}

.contact-us-form .wpcf7 {
  margin: 0;
}

.contact-us-form form.wpcf7-form {
  margin: 0;
  max-width: 100%;
}

/* CF7 wraps each field in <p> */
.contact-us-form .wpcf7-form p {
  margin: 0 0 1.15rem;
  width: 100%;
}

.contact-us-form .wpcf7-form p:last-child {
  margin-bottom: 0;
}

.contact-us-form span.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  margin: 0;
}

.contact-us-form input[type='text'],
.contact-us-form input[type='email'],
.contact-us-form input[type='tel'],
.contact-us-form input[type='url'],
.contact-us-form input[type='number'],
.contact-us-form input[type='date'],
.contact-us-form select,
.contact-us-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #111827;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  vertical-align: middle;
}

.contact-us-form select {
  appearance: auto;
  min-height: 2.75rem;
}

.contact-us-form input:focus,
.contact-us-form select:focus,
.contact-us-form textarea:focus {
  outline: none;
  border-color: rgb(30, 108, 147);
  box-shadow: 0 0 0 3px rgba(30, 108, 147, 0.18);
}

.contact-us-form textarea {
  min-height: 160px;
  resize: vertical;
  display: block;
}

.contact-us-form label,
.contact-us-form .wpcf7-form label {
  display: block;
  margin: 0 0 0.4rem;
  font-weight: 600;
  font-size: 0.8125rem;
  color: #374151;
  line-height: 1.35;
}

/* Checkbox / acceptance */
.contact-us-form .wpcf7-acceptance label,
.contact-us-form .wpcf7-list-item-label {
  display: inline;
  font-weight: 500;
  font-size: 0.875rem;
}

.contact-us-form .wpcf7-list-item {
  margin: 0;
}

.contact-us-form input[type='checkbox'],
.contact-us-form input[type='radio'] {
  width: auto;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.contact-us-form input[type='submit'],
.contact-us-form button[type='submit'],
.contact-us-form input.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 8rem;
  margin-top: 0.25rem;
  padding: 0.55rem 1.35rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: #fff;
  background: rgb(30, 108, 147);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.contact-us-form input[type='submit']:hover,
.contact-us-form button[type='submit']:hover,
.contact-us-form input.wpcf7-submit:hover {
  background: rgb(25, 90, 125);
}

.contact-us-form input[type='submit']:focus-visible,
.contact-us-form button[type='submit']:focus-visible {
  outline: 2px solid rgb(30, 108, 147);
  outline-offset: 2px;
}

.contact-us-form .ajax-loader,
.contact-us-form .wpcf7-spinner {
  margin-left: 0.5rem;
  vertical-align: middle;
}

.contact-us-form .wpcf7-not-valid-tip {
  display: block;
  font-size: 0.8125rem;
  color: #b91c1c;
  margin-top: 0.35rem;
  line-height: 1.35;
}

.contact-us-form .wpcf7-response-output {
  margin: 1.15rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.45;
  clear: both;
}

.contact-us-form .wpcf7-mail-sent-ok {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.contact-us-form .wpcf7-validation-errors,
.contact-us-form .wpcf7-mail-sent-ng {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Page content fallback (shortcode in editor) */
.contact-us-form--page-content {
  margin-top: 0;
}

/* ----- Sidebar (Book tour card: book-tour-cta-card.css) ----- */
.contact-us-body__aside {
  position: relative;
}

@media (min-width: 1024px) {
  .contact-us-body__aside {
    position: sticky;
    top: 2rem;
  }
}

/* ----- Map ----- */
.contact-us-map {
  padding: 2rem 0 4rem;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.contact-us-map__inner {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1024px) {
  .contact-us-map__inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.contact-us-map__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #111827;
  text-align: center;
}

.contact-us-map__frame {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  height: 22rem;
  background: #e5e7eb;
}

@media (min-width: 768px) {
  .contact-us-map__frame {
    height: 24rem;
  }
}

.contact-us-map__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-us-map__directions {
  margin: 1.25rem 0 0;
  text-align: center;
}
