/* ============================================================
   CONTACT PAGE
   ============================================================ */

/* Content is always visible (opacity:1); the entrance animates transform
   only, so it can never leave content hidden — robust + screenshot-safe. */
.ct-hero [data-reveal],
.ct-main [data-reveal] {
  opacity: 1;
  animation: ctRise 640ms var(--ease-out) both;
}
.ct-main .ct-form-card[data-reveal] { animation-delay: 80ms; }
.ct-main .ct-aside[data-reveal] { animation-delay: 160ms; }
@keyframes ctRise {
  from { transform: translateY(22px); }
  to   { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .ct-hero [data-reveal],
  .ct-main [data-reveal] { animation: none; }
}

/* ---- Hero ---- */
.ct-hero {
  position: relative;
  padding-top: calc(var(--sec-pad-y) + 36px);
  padding-bottom: 64px;
  background: linear-gradient(180deg, #FCFDFF 0%, #F1F5FC 100%);
  overflow: hidden;
}
.ct-hero .hero-grid { background-size: 48px 48px; }
.ct-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
/* Breadcrumb — same style as the product pages (.mp-breadcrumb) */
.ct-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jobit-blue);
  margin-bottom: 22px;
}
.ct-breadcrumb a {
  color: var(--fg-muted);
  text-decoration: none;
}
.ct-breadcrumb a:hover { color: var(--jobit-blue); }
.ct-breadcrumb svg { color: var(--neutral-400); }
.ct-hero h1 {
  font-size: 49px;
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--fg-strong);
  margin: 18px 0 18px;
  text-wrap: balance;
}
.ct-hero h1 em {
  font-style: normal;
  color: var(--jobit-blue);
}
.ct-hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 600px;
  margin: 0;
  text-wrap: pretty;
}

/* ---- Main split ---- */
.ct-main {
  position: relative;
  padding-bottom: var(--sec-pad-y);
  background: var(--bg);
}
.ct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 28px;
  position: relative;
  z-index: 3;
}

/* ---- Form card ---- */
.ct-form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(28px, 3.4vw, 48px);
}
.ct-form-card h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  margin: 0 0 6px;
}
.ct-form-card .ct-lead {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0 0 28px;
  max-width: 46ch;
}

.ct-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.ct-field { display: flex; flex-direction: column; gap: 7px; }
.ct-field.is-full { grid-column: 1 / -1; }
.ct-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg-strong);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ct-field label .req { color: var(--jobit-blue); }
.ct-field .opt {
  font-weight: 500;
  color: var(--fg-subtle);
  font-size: 12px;
}
.ct-field input,
.ct-field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--fg-strong);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  width: 100%;
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
}
.ct-field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.ct-field input::placeholder,
.ct-field textarea::placeholder { color: var(--fg-subtle); }
.ct-field input:hover,
.ct-field textarea:hover { border-color: var(--border-strong); }
.ct-field input:focus,
.ct-field textarea:focus {
  outline: none;
  background: var(--bg);
  border-color: var(--jobit-blue);
  box-shadow: var(--shadow-focus);
}
.ct-field.has-error input,
.ct-field.has-error textarea {
  border-color: var(--danger);
  background: var(--danger-bg);
}
.ct-error {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--danger);
}

.ct-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.ct-form-foot .ct-privacy {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fg-subtle);
  max-width: 38ch;
}
.ct-form-foot .ct-privacy a { color: var(--jobit-blue); text-decoration: none; }
.ct-form-foot .ct-privacy a:hover { text-decoration: underline; }
.ct-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ct-submit svg { transition: transform var(--dur-base) var(--ease-out); }
.ct-submit:hover svg { transform: translateX(3px); }

/* ---- Success state ---- */
/* The success panel and the form toggle via the [hidden] attribute (set by
   initContactForm). A class rule must override the success display, otherwise
   .ct-success { display:flex } beats the UA [hidden] rule and it shows by default. */
.ct-form-card form[hidden],
.ct-success[hidden] { display: none; }
.ct-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 8px 0;
  min-height: 360px;
  justify-content: center;
}
.ct-success-mark {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: grid; place-items: center;
  animation: ctPop 420ms var(--ease-spring) backwards;
}
@keyframes ctPop { from { transform: scale(0); opacity: 0; } }
.ct-success h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--fg-strong); margin: 0; }
.ct-success p { font-size: 16px; line-height: 1.55; color: var(--fg-muted); margin: 0; max-width: 44ch; }

/* ---- Info column ---- */
.ct-aside { display: flex; flex-direction: column; gap: 20px; }

/* Blue contact-methods panel */
.ct-methods {
  position: relative;
  background: var(--jobit-blue);
  border-radius: var(--r-2xl);
  padding: clamp(26px, 2.6vw, 36px);
  overflow: hidden;
  box-shadow: var(--shadow-brand);
}
.ct-methods-wm {
  position: absolute;
  right: -40px; bottom: -56px;
  width: 220px;
  opacity: 0.12;
  pointer-events: none;
}
.ct-methods h3 {
  position: relative; z-index: 2;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 4px;
}
.ct-methods .ct-methods-sub {
  position: relative; z-index: 2;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
  margin: 0 0 22px;
}
.ct-method {
  position: relative; z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out);
}
.ct-method:first-of-type { border-top: none; }
.ct-method:hover { transform: translateX(3px); }
.ct-method-ic {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.14);
  display: grid; place-items: center;
  transition: background var(--dur-base) var(--ease-out);
}
.ct-method:hover .ct-method-ic { background: rgba(255,255,255,0.24); }
.ct-method-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ct-method-lbl { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.72); letter-spacing: 0.01em; }
.ct-method-val { font-size: 15.5px; font-weight: 700; color: #fff; white-space: nowrap; }
.ct-method-arrow { margin-left: auto; color: rgba(255,255,255,0.6); transition: transform var(--dur-base) var(--ease-out); }
.ct-method:hover .ct-method-arrow { transform: translateX(3px); color: #fff; }

/* Address / visit card with map */
.ct-visit {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.ct-visit-body { padding: 20px 22px 22px; }
.ct-visit-body .ct-visit-lbl {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--jobit-blue);
  margin: 0 0 8px;
}
.ct-visit-body address {
  font-style: normal;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--fg-strong);
  font-weight: 600;
}
.ct-visit-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.ct-visit-meta .mi { font-size: 13px; color: var(--fg-muted); }
.ct-visit-meta .mi strong { color: var(--fg-strong); font-weight: 600; }
.ct-route {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-size: 14px; font-weight: 700; color: var(--jobit-blue);
  text-decoration: none;
}
.ct-route:hover { color: var(--jobit-blue-600); }
.ct-route svg { transition: transform var(--dur-base) var(--ease-out); }
.ct-route:hover svg { transform: translateX(3px); }

/* Hours strip */
.ct-hours {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
}
.ct-hours-ic {
  flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--jobit-blue-50); color: var(--jobit-blue);
  display: grid; place-items: center;
}
.ct-hours-body { display: flex; flex-direction: column; gap: 1px; }
.ct-hours-body .h-lbl { font-size: 13px; font-weight: 700; color: var(--fg-strong); }
.ct-hours-body .h-val { font-size: 13px; color: var(--fg-muted); }
.ct-hours .ct-status {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--success);
}
.ct-hours .ct-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-bg);
}

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .ct-grid { grid-template-columns: 1fr; margin-top: 28px; }
  /* Stacked: show the right-hand column above the left-hand one */
  .ct-grid .ct-aside { order: 1; }
  .ct-grid .ct-form-card { order: 2; }
  .ct-grid.form-right .ct-form-card { order: 1; }
  .ct-grid.form-right .ct-aside { order: 2; }
}
@media (max-width: 560px) {
  .ct-field-grid { grid-template-columns: 1fr; }
  .ct-form-foot { flex-direction: column; align-items: stretch; }
  .ct-form-foot .ct-submit { width: 100%; justify-content: center; }
}
