/* =============================================================
   CONTACT PAGE - tabbed forms (Enquiry / Quotation) + office card.
   BEM prefix .ct-*.
   ============================================================= */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── HERO STRIP ───────────────────────────────────────────── */
.ct-hero {
  background: #0A0809;
  color: #FFFFFF;
  position: relative;
  padding: calc(var(--header-h, 76px) + clamp(40px, 5vw, 64px)) clamp(20px, 4vw, 80px) clamp(36px, 4vw, 56px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
/* Breadcrumb is absolutely positioned within .ct-hero - override the
   au-breadcrumb default centering to sit inside our hero padding. */
.ct-hero .au-breadcrumb {
  position: absolute;
  top: calc(var(--header-h, 76px) + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container, 1320px);
  padding: 0 clamp(20px, 4vw, 80px);
}
.ct-hero__inner {
  max-width: var(--container, 1320px);
  margin: 0 auto;
}
/* Mobile: the .mnav is sticky (already in flow), so the breadcrumb
   must NOT add the full header-h again or it drops ~44px too low vs
   other pages. Match the standard .au-breadcrumb mobile position and
   pull the hero title up to sit close beneath it. */
@media (max-width: 767px) {
  .ct-hero {
    padding-top: calc(var(--header-h-sm, 60px) + 28px);
  }
  .ct-hero .au-breadcrumb {
    top: calc(var(--header-h-sm, 60px) - 16px);
  }
}
.ct-hero__title {
  font-family: "Raleway", sans-serif;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0 0 12px;
}
.ct-hero__title em {
  font-style: normal;
  color: var(--accent, #F58220);
}
.ct-hero__lede {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  margin: 0;
  max-width: 60ch;
}


/* ── FORMS WRAPPER ────────────────────────────────────────── */
.ct-forms {
  background: #0A0809;
  color: #FFFFFF;
  padding: clamp(40px, 5vw, 72px) 0;
}
.ct-forms__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
}


/* ── TABS ─────────────────────────────────────────────────── */
.ct-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: rgba(255,255,255,0.06);
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.ct-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.78);
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: clamp(16px, 2vw, 22px) clamp(16px, 2vw, 28px);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.ct-tab:hover { color: #FFFFFF; background: rgba(255,255,255,0.04); }
.ct-tab.is-active {
  background: var(--accent, #F58220);
  color: #FFFFFF;
}
.ct-tab:focus-visible { outline: 2px solid var(--accent, #F58220); outline-offset: -2px; }


/* ── PANE ─────────────────────────────────────────────────── */
.ct-pane {
  padding: clamp(28px, 3vw, 40px);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 0;
  border-radius: 0 0 10px 10px;
}
.ct-pane[hidden] { display: none; }
.ct-pane__title {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #FFFFFF;
  margin: 0 0 6px;
}
.ct-pane__sub {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  color: rgba(255,255,255,0.65);
  margin: 0 0 clamp(20px, 2.4vw, 28px);
}


/* ── FORM GRID ────────────────────────────────────────────── */
.ct-form { display: contents; }
.ct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 1.6vw, 20px);
}
.ct-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ct-field--full { grid-column: 1 / -1; }
.ct-label {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
}
.ct-req { color: var(--accent, #F58220); margin-left: 3px; }
.ct-input {
  width: 100%;
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  line-height: 1.4;
  color: #FFFFFF;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 200ms ease, background 200ms ease;
}
.ct-input::placeholder { color: rgba(255,255,255,0.4); }
.ct-input:hover { border-color: rgba(255,255,255,0.22); }
.ct-input:focus {
  outline: none;
  border-color: var(--accent, #F58220);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(245,130,32,0.18);
}
.ct-input:invalid:not(:placeholder-shown) {
  border-color: rgba(237,26,59,0.55);
}
textarea.ct-input { resize: vertical; min-height: 120px; }
select.ct-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 4.5L6 7.5L9 4.5' stroke='%23F58220' stroke-width='1.6' stroke-linecap='round' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 38px;
}
/* Native select option list inherits OS styling; force readable
   palette on dark backgrounds via the page-level color-scheme hint */
.ct-input { color-scheme: dark; }
.ct-input--file {
  padding: 10px 14px;
  cursor: pointer;
}
.ct-help {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.55);
  margin: 4px 0 0;
}

/* honeypot - rendered off-screen for bots */
.ct-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* ── CONSENT CHECKBOX ─────────────────────────────────────── */
.ct-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-top: clamp(20px, 2.4vw, 28px);
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
  overflow-wrap: anywhere;
}
.ct-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.30);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: border-color 150ms ease, background 150ms ease;
}
.ct-consent input[type="checkbox"]:checked {
  background: var(--accent, #F58220);
  border-color: var(--accent, #F58220);
}
.ct-consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 2px;
  width: 5px; height: 9px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ct-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent, #F58220);
  outline-offset: 2px;
}
.ct-consent a {
  color: var(--accent, #F58220);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}


/* ── ACTIONS ─────────────────────────────────────────────── */
.ct-actions {
  margin-top: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* AJAX submit feedback (contact-form.js writes into .ct-status) */
.ct-status {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  line-height: 1.4;
}
.ct-status:empty { display: none; }
.ct-status--pending {
  color: #5a5a5a;
  background: rgba(0, 0, 0, 0.04);
}
.ct-status--success {
  color: #1b5e20;
  background: rgba(46, 125, 50, 0.10);
  border: 1px solid rgba(46, 125, 50, 0.30);
}
.ct-status--error {
  color: #b3261e;
  background: rgba(179, 38, 30, 0.08);
  border: 1px solid rgba(179, 38, 30, 0.30);
}
.ct-btn.is-loading {
  opacity: 0.7;
  cursor: progress;
}
.ct-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease, color 200ms ease;
}
.ct-btn--primary {
  background: var(--accent, #F58220);
  color: #FFFFFF;
}
.ct-btn--primary:hover {
  background: var(--accent-ink, #C56614);
  transform: translateY(-1px);
}
.ct-btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.30);
}
.ct-btn--ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.50);
  color: #FFFFFF;
}
.ct-btn svg { transition: transform 200ms ease; }
.ct-btn:hover svg { transform: translateX(2px); }


/* ── OFFICE BLOCK ────────────────────────────────────────── */
.ct-office {
  background: #0A0809;
  color: #FFFFFF;
  padding: clamp(48px, 5vw, 80px) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.ct-office__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
}
.ct-office__card {
  padding: clamp(28px, 3vw, 40px);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
}
.ct-office__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #F58220);
  margin: 0 0 18px;
}
.ct-office__company {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 8px;
}
.ct-office__address {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  line-height: 1.55;
  font-style: normal;
  color: rgba(255,255,255,0.78);
  margin: 0 0 18px;
}
.ct-office__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 18px;
}
.ct-office__list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: baseline;
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  color: rgba(255,255,255,0.85);
}
.ct-office__list-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.ct-office__list a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 200ms ease;
}
.ct-office__list a:hover { color: var(--accent, #F58220); }


/* ── MOBILE ─────────────────────────────────────────────── */
@media (max-width: 767px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-field--full { grid-column: 1; }
  /* Tabs already at 2-col 1fr/1fr - stays usable on mobile since
     it's only two short labels. If labels ever grow, switch to
     grid-template-columns: 1fr here too. */
  .ct-tab { padding: 14px 12px; font-size: var(--fs-s); }
}


/* ── LIGHT MODE ─────────────────────────────────────────── */
[data-theme="light"] .ct-hero,
[data-theme="light"] .ct-forms,
[data-theme="light"] .ct-office {
  background: #FAFAF8;
  color: #231F20;
  border-top-color: rgba(35,31,32,0.06);
  border-bottom-color: rgba(35,31,32,0.06);
}
[data-theme="light"] .ct-hero__title,
[data-theme="light"] .ct-pane__title,
[data-theme="light"] .ct-office__company {
  color: #231F20;
}
[data-theme="light"] .ct-hero__lede,
[data-theme="light"] .ct-pane__sub,
[data-theme="light"] .ct-office__address,
[data-theme="light"] .ct-office__list li {
  color: rgba(35, 31, 32, 0.8);
}
[data-theme="light"] .ct-tabs {
  background: rgba(35,31,32,0.06);
}
[data-theme="light"] .ct-tab {
  color: rgba(35, 31, 32, 0.8);
}
[data-theme="light"] .ct-tab:hover {
  color: #231F20;
  background: rgba(35,31,32,0.04);
}
[data-theme="light"] .ct-pane {
  background: rgba(35,31,32,0.03);
  border-color: rgba(35,31,32,0.10);
}
[data-theme="light"] .ct-label {
  color: rgba(35, 31, 32, 0.8);
}
[data-theme="light"] .ct-input {
  color: #231F20;
  background: #FFFFFF;
  border-color: rgba(35,31,32,0.16);
  color-scheme: light;
}
[data-theme="light"] .ct-input:hover { border-color: rgba(35,31,32,0.30); }
[data-theme="light"] .ct-input:focus {
  background: #FFFFFF;
  border-color: var(--accent, #F58220);
  box-shadow: 0 0 0 3px rgba(245,130,32,0.18);
}
[data-theme="light"] .ct-input::placeholder { color: rgba(35, 31, 32, 0.42); }
[data-theme="light"] .ct-help,
[data-theme="light"] .ct-consent,
[data-theme="light"] .ct-office__list-label {
  color: rgba(35, 31, 32, 0.58);
}
[data-theme="light"] .ct-consent input[type="checkbox"] {
  border-color: rgba(35,31,32,0.30);
  background: #FFFFFF;
}
[data-theme="light"] .ct-consent input[type="checkbox"]:checked {
  background: var(--accent, #F58220);
  border-color: var(--accent, #F58220);
}
[data-theme="light"] .ct-office__card {
  background: #FFFFFF;
  border-color: rgba(35,31,32,0.10);
}
[data-theme="light"] .ct-office__list {
  border-top-color: rgba(35,31,32,0.10);
}
[data-theme="light"] .ct-office__list a {
  color: rgba(35, 31, 32, 0.8);
}
[data-theme="light"] .ct-btn--ghost {
  color: #231F20;
  border-color: rgba(35,31,32,0.30);
}
[data-theme="light"] .ct-btn--ghost:hover {
  background: rgba(35,31,32,0.04);
  border-color: rgba(35,31,32,0.50);
}
