/* Netefor — contact page */
@import url("styles.css");

/* ========== HERO ========== */
.contact-hero {
  padding: 88px 0 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 50% 60% at 30% 20%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 50% 60% at 30% 20%, black 20%, transparent 75%);
  pointer-events: none;
  opacity: 0.6;
}
.contact-hero .container { position: relative; }
.contact-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 14px 0 20px;
  text-wrap: balance;
}
.contact-hero h1 .accent { color: var(--accent); }
.contact-hero-sub {
  font-size: 17px;
  color: var(--muted-2);
  max-width: 620px;
  margin: 0;
  line-height: 1.55;
}
.contact-hero-sub strong { color: var(--text); font-weight: 500; }

/* ========== PAGE LAYOUT ========== */
.contact-page {
  padding: 64px 0 96px;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* ========== FORM CARD ========== */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
}
.form-card-head { margin-bottom: 28px; }
.form-card-head h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.form-card-head .muted {
  color: var(--muted-2);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

/* ========== FORM STRUCTURE ========== */
.q-form { display: grid; gap: 22px; }
.q-row { display: grid; gap: 22px; }
.q-row-2 {
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* ========== FLOATING-LABEL FIELDS ========== */
.q-field {
  position: relative;
  display: block;
}
.q-field input,
.q-field select,
.q-field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  padding: 22px 14px 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}
.q-field textarea {
  resize: vertical;
  line-height: 1.5;
  min-height: 140px;
  padding-top: 26px;
}
.q-field input::placeholder,
.q-field textarea::placeholder { color: transparent; }

.q-field .q-label {
  position: absolute;
  left: 14px;
  top: 15px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
  transition: all 0.15s ease;
  background: transparent;
  padding: 0;
  letter-spacing: 0;
}
.q-field input:focus,
.q-field select:focus,
.q-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #1a1c23;
}
.q-field input:focus ~ .q-label,
.q-field input:not(:placeholder-shown) ~ .q-label,
.q-field textarea:focus ~ .q-label,
.q-field textarea:not(:placeholder-shown) ~ .q-label,
.q-field select:focus ~ .q-label,
.q-field select.has-value ~ .q-label {
  top: 6px;
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.q-field input:focus ~ .q-label,
.q-field textarea:focus ~ .q-label,
.q-field select:focus ~ .q-label {
  color: var(--accent);
}

/* select chevron */
.q-select .q-chev {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}
.q-select select {
  padding-right: 36px;
  cursor: pointer;
}
.q-select select option {
  background: var(--surface-2);
  color: var(--text);
}

/* textarea counter */
.q-field-textarea .q-counter {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--surface-2) 40%);
  padding: 4px 6px 2px 10px;
  border-radius: 4px;
}
.q-field-textarea .q-counter.near { color: var(--accent); }
.q-field-textarea .q-counter.max { color: var(--danger); }

/* inline hint (e.g. email invalid) */
.q-hint {
  display: block;
  min-height: 1em;
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 6px;
  color: var(--danger);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.15s, transform 0.15s;
}
.q-hint.visible { opacity: 1; transform: none; }

/* ========== FIELDSETS + CHIPS ========== */
.q-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
.q-legend {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0;
  margin-bottom: 10px;
  display: block;
}
.q-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.q-chip {
  position: relative;
  cursor: pointer;
}
.q-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.q-chip span {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted-2);
  font-size: 13px;
  font-family: var(--sans);
  transition: all 0.15s ease;
  user-select: none;
}
.q-chip:hover span {
  color: var(--text);
  border-color: rgba(255,255,255,0.25);
}
.q-chip input:checked ~ span {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
}
.q-chip input:focus-visible ~ span {
  box-shadow: 0 0 0 3px rgba(245,158,11,0.2);
}

/* ========== KVKK CONSENT ========== */
.q-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.55;
}
.q-consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.q-consent-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: transparent;
  transition: all 0.15s ease;
  margin-top: 1px;
}
.q-consent input:checked ~ .q-consent-box {
  background: var(--accent);
  border-color: var(--accent);
  color: #0e0f11;
}
.q-consent input:focus-visible ~ .q-consent-box {
  box-shadow: 0 0 0 3px rgba(245,158,11,0.25);
}
.q-consent:hover .q-consent-box {
  border-color: rgba(255,255,255,0.25);
}
.q-consent-text a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}
.q-consent-text a:hover {
  text-decoration-color: var(--accent);
  color: var(--accent);
}

/* ========== HONEYPOT ========== */
.q-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ========== ACTIONS + STATUS ========== */
.q-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 4px;
}
#cf-submit[disabled] {
  opacity: 0.7;
  cursor: wait;
}
.cf-status {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  min-height: 1.2em;
  line-height: 1.4;
}
.cf-status[data-state="error"] { color: var(--danger); }
.cf-status[data-state="success"] { color: var(--success); }

/* ========== SUCCESS STATE ========== */
.form-success {
  text-align: center;
  padding: 28px 12px;
  animation: successIn 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}
@keyframes successIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.form-success-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--success);
  display: grid;
  place-items: center;
}
.form-success h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.form-success p {
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto 24px;
}
.form-success p strong { color: var(--text); font-weight: 500; }
.form-success-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ========== ASIDE CARDS ========== */
.contact-col-aside {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 88px;
}
.aside-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 22px 20px;
}
.aside-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.aside-card-head h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.aside-card .cm-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.aside-link {
  display: block;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.aside-link:hover { color: var(--accent); }
.aside-note {
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}
.aside-note strong { color: var(--text); font-weight: 500; }

.aside-card-cta {
  background: linear-gradient(180deg, rgba(245,158,11,0.05), transparent 60%);
  border-color: rgba(245,158,11,0.2);
}
.aside-btn {
  margin-top: 14px;
  width: 100%;
  justify-content: center;
}

.aside-faq {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 2px;
}
.aside-faq li a {
  display: block;
  padding: 8px 0;
  font-size: 13px;
  color: var(--muted-2);
  border-top: 1px dashed var(--border);
  line-height: 1.4;
  transition: color 0.12s ease, padding 0.15s ease;
}
.aside-faq li:first-child a { border-top: 0; padding-top: 4px; }
.aside-faq li a:hover {
  color: var(--text);
  padding-left: 4px;
}
.aside-faq-more {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  display: inline-block;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  width: 100%;
}
.aside-faq-more:hover { color: #fbbf43; }

/* nav active state */
.nav-links a.active {
  color: var(--text);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .contact-hero { padding: 56px 0 40px; }
  .contact-page { padding: 36px 0 72px; }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-col-aside {
    position: static;
  }
  .form-card { padding: 24px 20px; }
  .q-row-2 { grid-template-columns: 1fr; }
}
