/* ==========================================================================
   IRONBEASTS - CONTACT PAGE  (contact.css)
   Loaded on the page using page-templates/contact.php, on top of page.css.

   One centred column: a short welcome, the form on a soft grey card, a
   divider ("Or reach us directly"), then the store's email, phone and address
   as three small white cards, a little wider than the form. On a phone the
   cards stack. The fields wear the returns form's clothes, whose rules in
   page.css list them too; white on the grey card.
   ========================================================================== */

.contact-layout {
  display: flex;
  flex-direction: column;
  gap: var(--sp-7);
}

/* ---- The welcome above the form ----------------------------------------- */
.contact-intro {
  max-width: 40rem;
  margin: 0 auto var(--sp-6);
  text-align: center;
}

.contact-intro__eyebrow {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: var(--ls-7);
  text-transform: uppercase;
  color: var(--accent);
}

.contact-intro__title {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-fluid-xl);
  line-height: var(--lh-heading);
  color: var(--heading);
}

.contact-intro__text {
  margin: 0;
  font-size: var(--fs-16);
  line-height: var(--lh-loose);
  color: var(--text-muted);
}

/* ---- The form, on its card ----------------------------------------------- */
.contact-main {
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: clamp(1.25rem, 5vw, 2.75rem);
  background: var(--surface-2);
}

.contact-form__row {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 600px) {
  .contact-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin: 0;
}

.contact-form__field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-12);
  letter-spacing: var(--ls-6);
  line-height: var(--lh-snug);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Out of sight and out of reach, but still in the form for a robot to fill.
   Not display:none -- some robots skip fields that are. */
.contact-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
}

.contact-form__privacy {
  margin: 0;
  font-size: var(--fs-13);
  line-height: var(--lh-body);
  color: var(--text-muted);
}

.contact-form__privacy a {
  color: inherit;
  text-decoration: underline;
}

/* ---- After sending ------------------------------------------------------- */
.contact-notice {
  margin: 0 0 var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border-left: 2px solid var(--ib-green);
  background: var(--surface);
  font-size: var(--fs-14);
  line-height: var(--lh-body);
  color: var(--text);
}

/* Nothing was lost -- it is back in the fields -- so marked, not shouted. */
.contact-notice--error {
  border-left-color: var(--ib-red);
}

/* ---- Divider, then the details ------------------------------------------- */
.contact-aside {
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
}

/* A hairline each side of a short label. */
.contact-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: 0 0 var(--sp-6);
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: var(--ls-7);
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-divider::before,
.contact-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.contact-aside__list {
  display: grid;
  gap: var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .contact-aside__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.contact-aside__list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-4);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}

.contact-aside__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--heading);
}

.contact-aside__text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 0;
  font-size: var(--fs-15);
  line-height: var(--lh-body);
  color: var(--text);
  overflow-wrap: break-word;
}

.contact-aside__label {
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: var(--ls-6);
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-aside a {
  color: var(--heading);
  text-decoration: none;
  transition: color var(--t);
}

.contact-aside a:hover {
  color: var(--accent);
}
