/* ==========================================================================
   Contact Page  (ctct-*)
   Full-width — no sidebar.
   Reuses: srch-section, srch-outer, arch-breadcrumb.
   BEM prefix: ctct-*
   ========================================================================== */

/* ── CSS Variables ────────────────────────────────────────────────────────── */
:root {
  --ctct-sec-pad:      48px;
  --ctct-body-gap:     56px;
  --ctct-card-radius:  12px;
  --ctct-card-shadow:  0 1px 4px rgba(0,0,0,0.07);
  --ctct-card-border:  rgba(0,0,0,0.06);
  --ctct-card-pad:     32px;

  --ctct-title-col:    #111827;
  --ctct-text-col:     #374151;
  --ctct-muted-col:    #6b7280;
  --ctct-accent:       #e71d36;
  --ctct-accent-dark:  #c41230;

  --ctct-item-border:  rgba(0,0,0,0.07);
  --ctct-icon-bg:      rgba(231,29,54,0.07);

  --ctct-card-bg:      #ffffff;
  --ctct-input-bg:     #ffffff;
  --ctct-input-border: #e5e7eb;
  --ctct-input-ph:     #9ca3af;
  --ctct-input-text:   #111827;

  --ctct-note-bg:      #f9fafb;
  --ctct-note-border:  rgba(0,0,0,0.06);
}

body.dark-mode {
  --ctct-title-col:    rgba(255,255,255,0.92);
  --ctct-text-col:     rgba(255,255,255,0.75);
  --ctct-muted-col:    rgba(255,255,255,0.45);
  --ctct-accent:       #ff4d6d;
  --ctct-accent-dark:  #e71d36;

  --ctct-item-border:  rgba(255,255,255,0.08);
  --ctct-icon-bg:      rgba(255,77,109,0.10);

  --ctct-card-bg:      #111827;
  --ctct-card-border:  rgba(255,255,255,0.06);
  --ctct-card-shadow:  0 1px 6px rgba(0,0,0,0.45);
  --ctct-input-bg:     #1f2937;
  --ctct-input-border: rgba(255,255,255,0.10);
  --ctct-input-ph:     rgba(255,255,255,0.28);
  --ctct-input-text:   rgba(255,255,255,0.90);

  --ctct-note-bg:      #111827;
  --ctct-note-border:  rgba(255,255,255,0.06);
}

/* ── Page header ──────────────────────────────────────────────────────────── */
.ctct-hdr {
  padding: 22px 0 28px;
  border-bottom: 1px solid var(--arch-hdr-border);
  margin-bottom: 40px;
}

.ctct-hdr__title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ctct-title-col);
}

.ctct-hdr__subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ctct-muted-col);
  max-width: 520px;
}

/* ── Two-column body ─────────────────────────────────────────────────────── */
.ctct-body {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: var(--ctct-body-gap);
  align-items: start;
}

/* ── Info block (left column) ────────────────────────────────────────────── */
.ctct-info-block {
  position: sticky;
  top: calc(var(--hdr-height, 65px) + 16px);
}

.ctct-info-block__lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ctct-accent);
  margin-bottom: 10px;
}

.ctct-info-block__title {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ctct-title-col);
}

.ctct-info-block__desc {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.70;
  color: var(--ctct-muted-col);
}

/* ── Contact items list ──────────────────────────────────────────────────── */
.ctct-items {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.ctct-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ctct-item-border);
}

.ctct-item:first-child {
  border-top: 1px solid var(--ctct-item-border);
}

.ctct-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ctct-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ctct-accent);
}

.ctct-item__icon svg {
  display: block;
}

.ctct-item__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding-top: 2px;
}

.ctct-item__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ctct-muted-col);
}

.ctct-item__value {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ctct-text-col);
  text-decoration: none;
  word-break: break-word;
}

a.ctct-item__value {
  transition: color 0.2s ease;
}

a.ctct-item__value:hover {
  color: var(--ctct-accent);
}

/* ── Social icons (below items) ──────────────────────────────────────────── */
.ctct-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ctct-social__link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--ctct-card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--ctct-muted-col);
  text-decoration: none;
  background: var(--ctct-card-bg);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ctct-social__link:hover {
  color: var(--ctct-accent);
  border-color: var(--ctct-accent);
  background: var(--ctct-icon-bg);
}

/* ── Form card (right column) ────────────────────────────────────────────── */
.ctct-form-card {
  background: var(--ctct-card-bg);
  border: 1px solid var(--ctct-card-border);
  border-radius: var(--ctct-card-radius);
  box-shadow: var(--ctct-card-shadow);
  padding: var(--ctct-card-pad);
  transition: background-color 0.25s ease;
}

/* ── Status messages ─────────────────────────────────────────────────────── */
.ctct-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}

.ctct-status p {
  margin: 0;
}

.ctct-status--ok {
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.20);
  color: #15803d;
}

body.dark-mode .ctct-status--ok {
  background: rgba(22,163,74,0.10);
  border-color: rgba(22,163,74,0.22);
  color: #4ade80;
}

.ctct-status--error {
  background: rgba(220,38,38,0.07);
  border: 1px solid rgba(220,38,38,0.18);
  color: #b91c1c;
}

body.dark-mode .ctct-status--error {
  background: rgba(220,38,38,0.10);
  border-color: rgba(220,38,38,0.22);
  color: #f87171;
}

.ctct-status__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-top: 1px;
}

/* ── Form layout ─────────────────────────────────────────────────────────── */
.ctct-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Name + Email on one row */
.ctct-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ctct-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ctct-field__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ctct-text-col);
  line-height: 1.4;
}

.ctct-field__req {
  color: var(--ctct-accent);
  margin-left: 2px;
}

/* ── Inputs ──────────────────────────────────────────────────────────────── */
.ctct-field__input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--ctct-input-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: var(--ctct-input-bg);
  color: var(--ctct-input-text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.ctct-field__input::placeholder {
  color: var(--ctct-input-ph);
}

.ctct-field__input:focus {
  border-color: var(--ctct-accent);
  box-shadow: 0 0 0 3px rgba(231,29,54,0.10);
}

body.dark-mode .ctct-field__input:focus {
  box-shadow: 0 0 0 3px rgba(255,77,109,0.12);
}

.ctct-field__input--textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.65;
}

/* ── Honeypot — hidden from real users, traps bots ──────────────────────── */
.ctct-hp {
  position: absolute;
  left: -9999px;
  visibility: hidden;
  pointer-events: none;
}

/* ── Submit row ──────────────────────────────────────────────────────────── */
.ctct-submit {
  display: flex;
  align-items: center;
  padding-top: 4px;
}

.ctct-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  background: var(--ctct-accent);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.4;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.ctct-btn:hover {
  background: var(--ctct-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(231,29,54,0.28);
}

body.dark-mode .ctct-btn:hover {
  box-shadow: 0 4px 12px rgba(255,77,109,0.28);
}

.ctct-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(231,29,54,0.25);
}

.ctct-btn:active {
  transform: translateY(0);
}

/* ── Optional note/FAQ section ───────────────────────────────────────────── */
.ctct-note {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--ctct-note-bg);
  border: 1px solid var(--ctct-note-border);
  border-radius: var(--ctct-card-radius);
}

.ctct-note__title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ctct-title-col);
  line-height: 1.3;
}

.ctct-note__body {
  font-size: 14px;
  line-height: 1.70;
  color: var(--ctct-text-col);
}

.ctct-note__body p {
  margin: 0 0 10px;
  color: inherit;
}

.ctct-note__body p:last-child {
  margin-bottom: 0;
}

.ctct-note__body a {
  color: var(--ctct-accent);
}

.ctct-note__body a:hover {
  color: var(--ctct-accent-dark);
}

/* ── Responsive — Tablet (≤1024px) ──────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --ctct-sec-pad:  40px;
    --ctct-body-gap: 36px;
    --ctct-card-pad: 24px;
  }
}

/* ── Responsive — Tablet narrow (≤900px): single column ─────────────────── */
@media (max-width: 900px) {
  .ctct-body {
    grid-template-columns: 1fr;
  }

  .ctct-info-block {
    position: static;
  }
}

/* ── Responsive — Mobile (≤640px) ───────────────────────────────────────── */
@media (max-width: 640px) {
  :root {
    --ctct-sec-pad:  28px;
    --ctct-card-pad: 18px;
  }

  .ctct-row {
    grid-template-columns: 1fr;
  }

  .ctct-note {
    padding: 20px;
    margin-top: 32px;
  }

  .ctct-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Responsive — Mobile small (≤480px) ─────────────────────────────────── */
@media (max-width: 480px) {
  .ctct-hdr__title {
    font-size: 22px;
  }
}
