/**
 * HBR Data — İletişim (hd-contact) · DOSYA 07
 * Yalnızca contact.html'e özel stiller. Ortak katman (token'lar, header,
 * footer, sayfa hero, kicker, CTA) css/hd-core.css'tedir ve bu dosyadan
 * ÖNCE yüklenir. Bu sayfada css/style.css YÜKLENMEZ.
 * Form bileşeni (.hd-form/.hd-field/.hd-consent/.form-note vb.) bu
 * dosyada ve css/hd-workwithus.css'te bağımsız olarak tanımlıdır —
 * her sayfa kendi stylesheet'ini tek başına yükler, ortak katmana
 * form bileşeni eklenmemiştir.
 */

/* ---------- Durum rengi (yalnızca bu dosyada kullanılır) ---------- */
:root { --hd-error: #B3261E; }

:root[data-hd-theme="dark"] { --hd-error: #FF8A80; }

@media (prefers-color-scheme: dark) {
  :root:not([data-hd-theme="light"]) { --hd-error: #FF8A80; }
}

/* ---------- İki sütunlu iletişim ızgarası ---------- */
.hd-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

/* ---------- Sol sütun: başlık + kanal bilgisi ---------- */
.hd-contact-channels {
  display: flex;
  flex-direction: column;
  margin-top: clamp(32px, 5vw, 48px);
}

.hd-channel {
  border-top: 1px solid var(--hd-line);
  padding: 20px 0;
}

.hd-channel-label {
  font-family: var(--hd-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hd-ink-soft);
  margin-bottom: 8px;
}

.hd-channel-line { margin-bottom: 10px; }

.hd-channel-mail {
  font-family: var(--hd-font-mono);
  font-size: 1.1rem;
  color: var(--hd-emerald);
  text-decoration: none;
}

.hd-channel-mail:hover { color: var(--hd-btn-bg-hover); }

.hd-channel-value { color: var(--hd-ink); font-size: 0.95rem; }

/* ---------- Form bloğu: 1px çerçeveli kart ---------- */
.hd-form {
  border: 1px solid var(--hd-line);
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
}

.hd-field { display: flex; flex-direction: column; margin-bottom: 20px; }

.hd-label {
  font-family: var(--hd-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hd-ink-soft);
  margin-bottom: 8px;
}

.hd-optional { text-transform: none; letter-spacing: 0; font-size: 11px; color: var(--hd-ink-soft); }

.required { color: var(--hd-emerald); font-weight: 600; margin-left: 2px; }

.hd-field input[type="text"],
.hd-field input[type="email"],
.hd-field input[type="tel"],
.hd-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  background: var(--hd-paper-2);
  border: 1px solid var(--hd-line);
  color: var(--hd-ink);
  font-family: var(--hd-font-body);
  font-size: 0.95rem;
  border-radius: 0;
}

.hd-field textarea { min-height: 130px; padding-top: 12px; resize: vertical; }

.hd-field input::placeholder,
.hd-field textarea::placeholder { color: var(--hd-ink-soft); opacity: 1; }

.hd-field input:focus,
.hd-field textarea:focus {
  outline: 2px solid var(--hd-emerald);
  outline-offset: 2px;
  border-color: var(--hd-emerald);
}

/* ---------- Honeypot: ekran okuyucudan ve görsel akıştan gizli ---------- */
.honeypot-wrap {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Onay satırı ---------- */
.hd-consent {
  border-top: 1px solid var(--hd-line);
  padding-top: 20px;
  margin-top: 4px;
  margin-bottom: 24px;
}

.hd-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.hd-consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--hd-emerald);
}

.hd-consent-label span { color: var(--hd-ink-soft); font-size: 0.85rem; line-height: 1.55; }

.hd-consent-label a { color: var(--hd-ink); text-decoration-color: var(--hd-line); }

.hd-consent-label a:hover { color: var(--hd-emerald); text-decoration-color: var(--hd-emerald); }

/* ---------- Gönderim durumu ---------- */
.form-note {
  font-family: var(--hd-font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--hd-ink-soft);
}

.form-note:not(:empty) { margin-bottom: 16px; }

.form-note.success, .form-note.form-note-success { color: var(--hd-emerald); }

.form-note.error, .form-note.form-note-error { color: var(--hd-error); }

.form-note.info { color: var(--hd-ink-soft); }

.hd-form-submit { align-self: flex-start; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hd-contact-grid { grid-template-columns: 1fr; row-gap: 48px; }
  .hd-contact-channels { margin-top: 32px; }
}

@media (max-width: 480px) {
  .hd-form-submit { align-self: stretch; width: 100%; }
}
