/* X-Marathon contact page (com_contact override). Same layout as Adrenalin Quest, X-Marathon blue accent from xm.css variables. */
.contact h1,
.contact .page-header h1,
.contact .page-header h2 {
  font-weight: 800;
  font-size: 36px;
  text-transform: uppercase;
  color: var(--xm-heading);
  margin-bottom: 2rem;
  border: none;
  padding: 0;
}

.contact-map {
  width: 100%;
  height: 420px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(21,31,34,.1);
  margin-bottom: 2rem;
  background: #D5D8DA;
}
.contact-map iframe,
.contact-map > div {
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.contact-info-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 6px rgba(21,31,34,.06);
  border-top: 3px solid var(--xm-accent);
}
body.site .contact-info-card__heading {
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--xm-heading);
  font-family: inherit;
  margin-bottom: 12px;
}
.contact-info-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #4A4E50;
  margin-bottom: 2px;
}
.contact-info-card a {
  color: var(--xm-accent);
  text-decoration: none;
  transition: color .2s;
}
.contact-info-card a:hover { color: var(--xm-accent-dark); }

.contact-form-section {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(21,31,34,.06);
  margin-bottom: 2rem;
}
body.site .contact-form-section__title {
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--xm-heading);
  margin-bottom: 8px;
}
.contact-form-section__intro {
  font-size: 14px;
  color: #4A4E50;
  line-height: 1.6;
  margin-bottom: 12px;
}
.contact-form-section__intro a {
  color: var(--xm-accent);
  text-decoration: none;
  font-weight: 600;
}
.contact-form-section__required {
  font-size: 13px;
  font-style: italic;
  color: #2A4A52;
  margin-bottom: 24px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.contact-form-row--full { grid-template-columns: 1fr; }
.contact-form-group { display: flex; flex-direction: column; }
.contact-form-group label,
#contact-form label {
  font-weight: 700 !important;
  font-size: 13px !important;
  color: #1A1D1E !important;
  margin-bottom: 5px !important;
  float: none !important;
  text-align: left !important;
  width: auto !important;
  padding: 0 !important;
}
#contact-form .form-control,
#contact-form textarea {
  width: 100%;
  height: auto !important;
  padding: 12px 14px !important;
  border: 1px solid #D0D4D6 !important;
  border-radius: 4px !important;
  background-color: #EEF0EF !important;
  background-image: none !important;
  font-size: 14px !important;
  color: #1A1D1E !important;
  box-shadow: none !important;
  transition: border-color .2s, box-shadow .2s;
}
#contact-form .form-control:focus,
#contact-form textarea:focus {
  outline: none !important;
  border-color: var(--xm-accent) !important;
  box-shadow: 0 0 0 3px rgba(70,142,239,.15) !important;
}
#contact-form textarea.form-control {
  min-height: 180px !important;
  resize: vertical;
}

.contact-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.contact-captcha { flex-shrink: 0; }
.contact-form-actions__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-email-copy-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1A1D1E;
  cursor: pointer;
}
.contact-btn-send {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  cursor: pointer;
  transition: all .2s;
  background: var(--xm-accent) !important;
  color: #fff !important;
  border: 2px solid var(--xm-accent) !important;
}
.contact-btn-send:hover {
  background: var(--xm-accent-dark) !important;
  border-color: var(--xm-accent-dark) !important;
  color: #fff !important;
}

@media (max-width: 768px) {
  .contact-info-grid { grid-template-columns: 1fr; }
  .contact-form-row { grid-template-columns: 1fr; }
  .contact-map { height: 280px; }
  .contact-form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-captcha {
    display: flex;
    justify-content: center;
  }
  .contact-form-actions__right {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-btn-send {
    width: 100%;
    text-align: center;
  }
}
