/* Contact page – simple redesign.
   Load this AFTER style.css / contact.css / bAlcss.css.
   All rules are scoped to .xc-page so the header and footer are not affected. */

.xc-page {
  --xc-ink: #1a1a1a;
  --xc-muted: #6b6b6b;
  --xc-line: #d9d9d9;
  --xc-soft: #f6f6f6;
  --xc-red: #841c14;
  --xc-red-dark: #6a150f;

  margin: 0; /* overrides the old "main { margin: 7rem 0 }" */
  padding: 8rem 0 5rem; /* clears the fixed navbar */
  background: #fff;
  color: var(--xc-ink);
  font-family: "Manrope", sans-serif;
}

.xc-page *,
.xc-page *::before,
.xc-page *::after {
  box-sizing: border-box;
}

.xc-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Heading ---------- */
.xc-page h1 {
  font-family: "Arya", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.6rem;
}
.xc-intro {
  margin: 0 0 3rem;
  max-width: 54ch;
  color: var(--xc-muted);
  line-height: 1.6;
}

/* ---------- Two columns ---------- */
.xc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}

/* ---------- Form ---------- */
.xc-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.25rem;
}
.xc-field {
  margin-bottom: 1.25rem;
}
.xc-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.xc-field label span {
  color: var(--xc-red);
}

.xc-page .xc-input {
  display: block;
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--xc-ink);
  background: #fff;
  border: 1px solid var(--xc-line);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.xc-page .xc-input:focus {
  border-color: var(--xc-red);
  box-shadow: 0 0 0 3px rgba(132, 28, 20, 0.12);
}
.xc-page textarea.xc-input {
  min-height: 130px;
  resize: vertical;
}

.xc-privacy {
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--xc-muted);
}
.xc-privacy a {
  color: inherit;
  text-decoration: underline;
}

.xc-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.xc-send {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: var(--xc-red);
  padding: 0.8rem 2rem;
  border-radius: 6px;
  transition: background 0.2s;
}
.xc-send:hover {
  background: var(--xc-red-dark);
}
.xc-send:focus-visible {
  outline: 3px solid var(--xc-ink);
  outline-offset: 2px;
}
.xc-send[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* Status message (same id the script uses) */
#formMessage {
  display: none;
  flex: 1 1 200px;
  max-width: none;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: none;
  background: #eef7ee !important;
  color: #1d5a2a;
  border: 1px solid #bfdcc3;
}
#formMessage.showMessage {
  display: block;
  animation: xcFade 0.3s ease;
}
#formMessage.is-error {
  background: #fdeeed !important;
  color: #8a1c14;
  border-color: #f0c4c0;
}
@keyframes xcFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Contact details ---------- */
.xc-info h2 {
  font-family: "Arya", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
}
.xc-info dl {
  margin: 0;
}
.xc-info dt {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--xc-muted);
}
.xc-info dd {
  margin: 0 0 1.4rem;
  line-height: 1.6;
}
.xc-info address {
  margin: 0;
  font-style: normal;
}
.xc-info a {
  color: var(--xc-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--xc-line);
  transition: color 0.2s, border-color 0.2s;
}
.xc-info a:hover {
  color: var(--xc-red);
  border-color: var(--xc-red);
}
.xc-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.xc-info .xc-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1rem;
  color: var(--xc-ink);
  border: 1px solid var(--xc-line);
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.xc-info .xc-social a:hover,
.xc-info .xc-social a:focus-visible {
  background: var(--xc-red);
  border-color: var(--xc-red);
  color: #fff;
}

/* ---------- Map ---------- */
.xc-map {
  margin-top: 4rem;
  border: 1px solid var(--xc-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--xc-soft);
}
.xc-map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .xc-page { padding-top: 7rem; }
  .xc-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 575px) {
  .xc-wrap { padding: 0 16px; }
  .xc-row { grid-template-columns: 1fr; }
  .xc-map iframe { height: 320px; }
  .xc-send { width: 100%; }
}