/* ════════════════════════════════════════════════════════════════
   onlinesiparisler — KATIL · "Sen de Katıl" section styles
   Namespace: .kt-
   Inherits all design tokens from draft.css :root
   ════════════════════════════════════════════════════════════════ */

/* ─────────────── section shell ─────────────── */
.katil {
  padding-block: var(--sec-y);
  background:
    radial-gradient(40rem 28rem at 94% 8%,  rgba(168, 191, 160, 0.16), transparent 60%),
    radial-gradient(34rem 22rem at 2%  92%, rgba(201, 104,  63, 0.06), transparent 56%),
    var(--porcelain);
  border-top: 1px solid var(--line);
}

/* ─────────────── two-column grid ─────────────── */
.kt-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

/* ─────────────── narrative column ─────────────── */
.kt-narrative {
  position: sticky;
  top: 7.5rem;
}

.kt-lede {
  margin-top: 1.8rem;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--ink-soft);
  line-height: 1.72;
  max-width: 46ch;
}

/* benefit list — mirrors .coach-steps */
.kt-benefits {
  margin-top: 2.6rem;
  display: flex;
  flex-direction: column;
}

.kt-benefit {
  display: flex;
  gap: 1.4rem;
  align-items: baseline;
  padding-block: 1.35rem;
  border-top: 1px solid var(--line);
}
.kt-benefit:last-child {
  border-bottom: 1px solid var(--line);
}

.kt-benefit em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--clay);
  flex: none;
  min-width: 2rem;
}

.kt-benefit strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  display: block;
  line-height: 1.15;
}

.kt-benefit span {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
  display: block;
  margin-top: 0.2rem;
  max-width: 46ch;
}

/* ─────────────── form card ─────────────── */
.kt-card {
  box-shadow: var(--shadow-float);
  transition: box-shadow 0.6s var(--spring);
}
.kt-card:hover {
  box-shadow: var(--shadow-hover);
}

.kt-core {
  padding: clamp(1.6rem, 3vw, 2.3rem);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.kt-form-intro {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ─────────────── form layout ─────────────── */
.kt-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative; /* for honeypot absolute positioning */
}

/* honeypot — visually removed, kept off a11y tree */
.kt-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ─────────────── fields ─────────────── */
.kt-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.kt-field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.kt-req {
  color: var(--clay);
  margin-left: 0.1rem;
}

.kt-opt {
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.kt-field input,
.kt-field textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 0.72rem 0.95rem;
  transition:
    border-color 0.4s var(--spring),
    box-shadow   0.4s var(--spring),
    background-color 0.4s var(--spring);
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
}

.kt-field input:focus,
.kt-field textarea:focus {
  outline: none;
  border-color: var(--herbalife);
  box-shadow: var(--focus);
  background: #fff;
}

.kt-field input[aria-invalid="true"],
.kt-field textarea[aria-invalid="true"] {
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(201, 104, 63, 0.18);
}

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

/* ─────────────── error messages ─────────────── */
.kt-err {
  font-size: 0.82rem;
  color: var(--clay);
  font-weight: 500;
  line-height: 1.4;
}

.kt-err-generic {
  margin-top: -0.25rem;
}

/* ─────────────── KVKK consent ─────────────── */
.kt-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.55;
  cursor: pointer;
  margin-top: 0.25rem;
}

.kt-consent input[type="checkbox"] {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
  accent-color: var(--herbalife);
  cursor: pointer;
  /* reset width override from .kt-field input rule */
  width: 1.15rem !important;
}

.kt-consent .text-link {
  color: var(--leaf);
}

/* ─────────────── submit button states ─────────────── */
.kt-submit {
  margin-top: 0.6rem;
}

.kt-submit.is-busy,
.kt-submit:disabled {
  opacity: 0.65;
  pointer-events: none;
}

/* ─────────────── WhatsApp fallback ─────────────── */
.kt-wa-fallback {
  margin-top: 1.3rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ─────────────── success state ─────────────── */
.kt-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.6rem 0.5rem 0.8rem;
  gap: 0.8rem;
}
/* honor the hidden attribute — display:flex above would otherwise beat the UA
   [hidden]{display:none}, leaking the success state in before submit */
.kt-success[hidden] { display: none; }

.kt-check {
  display: grid;
  place-items: center;
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 50%;
  background: rgba(0, 158, 73, 0.12);
  color: var(--herbalife);
  margin-bottom: 0.4rem;
}

.kt-success-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.1;
  color: var(--ink);
}

.kt-success-sub {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 42ch;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

/* single column below 900px — mirrors .coach-grid breakpoint */
@media (max-width: 900px) {
  .kt-wrap {
    grid-template-columns: 1fr;
  }
  .kt-narrative {
    position: static;
  }
}

@media (max-width: 560px) {
  .kt-benefit {
    gap: 1rem;
  }
  .kt-benefit em {
    font-size: 1.1rem;
    min-width: 1.7rem;
  }
  .kt-benefit strong {
    font-size: 1.2rem;
  }
}

/* ═══════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .kt-card,
  .kt-field input,
  .kt-field textarea,
  .kt-submit {
    transition: none;
  }
}
