/* İletişim — the page where a brief begins.
   Same 38/62 grid as the rest of the site, read the other way round: the
   visitor writes on the right, and on the left a split-flap ticket — a
   departures row for their own campaign — fills in as they type (KİM,
   ŞEHİR, MECRA, BÜTÇE, MASA, DURUM). Under the form, the office card. Mechanics
   in contact.js; the flaps are the site's flapboard.js. */

/* ---- hero: the second line of the title changes ---- */
.ct-hero h1 [data-flap] + [data-flap] { color: var(--sc-ink-soft); }
.ct-hero h1 [data-flap] + [data-flap] .flap-glyph { color: var(--sc-ink-soft); }

/* ---- the grid ---- */
.ct-body { padding: clamp(56px, 8vh, 96px) clamp(20px, 5vw, 48px) clamp(24px, 4vh, 48px); }
.ct-grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 62%);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.ct-aside { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 36px; }

/* ---- the ticket: a departures row for this brief ---- */
.ct-ticket {
  background: var(--sc-surface); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.12);
}
.ct-ticket__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px clamp(16px, 2vw, 24px);
  font: 500 11px/1 var(--sc-font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--sc-ink-soft);
  border-bottom: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.28);
}
.ct-ticket__head b { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--sc-ink); }
.ct-ticket__head b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sc-accent); }
.ct-ticket__rows { list-style: none; margin: 0; padding: 0 clamp(16px, 2vw, 24px); }
.ct-ticket__row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; align-items: center;
  padding: 15px 0; border-top: 1px solid rgba(255,255,255,.08);
}
.ct-ticket__row:first-child { border-top: 0; }
.ct-ticket__k { font: 500 11px/1 var(--sc-font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--sc-ink-soft); }
.ct-ticket__v { min-width: 0; font: 600 clamp(1rem, 1.3vw, 1.2rem)/1 var(--sc-font-display); letter-spacing: .02em; color: var(--sc-ink); }
.ct-ticket__v [data-flap] { flex-wrap: nowrap; overflow: hidden; }
.ct-ticket__v .flap-cell { width: .84em; margin: 0 .035em; }
.ct-ticket__v.is-empty .flap-glyph { color: rgba(242,242,242,.28); }
.ct-ticket__row--status .ct-ticket__v .flap-glyph { color: var(--sc-ink); }
.ct-ticket.is-sent .ct-ticket__row--status .ct-ticket__v .flap-cell { box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 1px 0 rgba(0,0,0,.6); }
.ct-ticket__foot {
  padding: 14px clamp(16px, 2vw, 24px) 16px; border-top: 1px solid rgba(255,255,255,.08);
  font: 400 13px/1.5 var(--sc-font-text); color: var(--sc-ink-soft);
}
.ct-ticket__foot b { color: var(--sc-ink); font-weight: 500; }

/* what happens after a send: numbered steps, under the ticket and again
   on the thanks card (where step 01 is already done) */
.ct-hint h2 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font: 500 12px/1 var(--sc-font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--sc-ink-soft);
}
.ct-hint h2::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sc-accent); }
.ct-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(242,242,242,.14); counter-reset: step; }
.ct-steps li {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; row-gap: 4px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid rgba(242,242,242,.1);
  font: 400 14px/1.45 var(--sc-font-text); color: var(--sc-ink-soft);
}
.ct-steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); grid-row: span 2; font: 500 11px/1 var(--sc-font-text); letter-spacing: .1em; }
.ct-steps b { color: var(--sc-ink); font-weight: 500; }
.ct-steps--done { margin: 0 0 28px; max-width: 54ch; }
.ct-steps--done li:first-child::before { content: "✓"; color: var(--sc-accent); }
.ct-grid:has(.ct-form.is-sent) .ct-hint { display: none; }

/* ---- the form ---- */
.ct-form { min-width: 0; }
.ct-form h2 {
  margin: 0 0 8px;
  font: 600 clamp(1.5rem, 2.4vw, 2.1rem)/1.02 var(--sc-font-display); text-transform: uppercase; letter-spacing: .01em; color: var(--sc-ink);
}
.ct-form__lede { margin: 0 0 36px; font: 400 clamp(.98rem, 1.15vw, 1.08rem)/1.65 var(--sc-font-text); color: var(--sc-ink-soft); max-width: 58ch; }
.ct-form__lede a { color: var(--sc-ink); text-decoration: none; border-bottom: 1px solid rgba(242,242,242,.3); }
.ct-form__lede a:hover { border-color: var(--sc-ink); }

.ct-fs { margin: 0 0 34px; padding: 0; border: 0; min-width: 0; }
.ct-fs__k {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 0;
  font: 500 12px/1 var(--sc-font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--sc-ink-soft);
}
.ct-fs__k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sc-accent); }
.ct-fs__k small { margin-left: auto; letter-spacing: .08em; font-weight: 400; text-transform: none; }

.ct-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.ct-field { display: flex; flex-direction: column; gap: 6px; padding: 12px 0 14px; border-bottom: 1px solid rgba(242,242,242,.14); min-width: 0; }
.ct-field--wide { grid-column: 1 / -1; }
.ct-field label { font: 500 11px/1 var(--sc-font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--sc-ink-soft); }
.ct-field label em { font-style: normal; color: var(--sc-ink); }
.ct-field input, .ct-field textarea {
  width: 100%; margin: 0; padding: 6px 0; border: 0; outline: 0; background: transparent;
  color: var(--sc-ink); font: 400 clamp(1rem, 1.2vw, 1.1rem)/1.4 var(--sc-font-text);
  border-radius: 0; -webkit-appearance: none; appearance: none;
}
.ct-field textarea { resize: vertical; min-height: 120px; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: rgba(154,154,159,.55); }
.ct-field:focus-within { border-bottom-color: var(--sc-accent); }
.ct-field:focus-within label { color: var(--sc-ink); }
.ct-field.is-invalid { border-bottom-color: #ff8a80; }
.ct-field.is-invalid label { color: #ff8a80; }
.ct-field input:-webkit-autofill { -webkit-text-fill-color: var(--sc-ink); -webkit-box-shadow: 0 0 0 1000px var(--sc-canvas) inset; }

/* chips: the site's pill outline, as a toggle */
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chip { position: relative; }
.ct-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ct-chip span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 4px; border: 1px solid rgba(242,242,242,.18);
  font: 500 13px/1 var(--sc-font-text); letter-spacing: .02em; color: var(--sc-ink-soft);
  transition: color 160ms, border-color 160ms, background 160ms;
  pointer-events: none;
}
.ct-chip span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(242,242,242,.3); transition: background 160ms; }
.ct-chip:hover span { color: var(--sc-ink); border-color: rgba(242,242,242,.4); }
.ct-chip input:checked + span { background: var(--bp-btn); color: var(--bp-btn-ink); border-color: var(--bp-btn); }
.ct-chip input:checked + span::before { background: var(--bp-btn-ink); }
.ct-chip input:focus-visible + span { outline: 2px solid var(--sc-accent); outline-offset: 2px; }

/* the send row */
.ct-send { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.ct-send .bp-pill { padding: 16px 34px; font-size: 15px; border: 0; cursor: pointer; }
.ct-send .bp-pill[disabled] { opacity: .5; cursor: default; }
.ct-send__note { margin: 0; font: 400 13px/1.5 var(--sc-font-text); color: var(--sc-ink-soft); max-width: 40ch; }
.ct-send__note b, .ct-thanks p b { color: var(--sc-ink); font-weight: 500; }
.ct-send__note a { color: var(--sc-ink); text-decoration: none; border-bottom: 1px solid rgba(242,242,242,.3); }
.ct-err { margin: 10px 0 0; font: 400 13px/1.5 var(--sc-font-text); color: #ff8a80; }
.ct-err:empty { display: none; }

/* thanks: replaces the form after a send */
.ct-thanks { display: none; padding: 8px 0 0; }
.ct-form.is-sent .ct-thanks { display: block; }
.ct-form.is-sent form, .ct-form.is-sent > h2, .ct-form.is-sent > .ct-form__lede { display: none; }
.ct-thanks h2 { margin-bottom: 14px; }
.ct-thanks p { margin: 0 0 24px; font: 400 clamp(.98rem, 1.15vw, 1.08rem)/1.65 var(--sc-font-text); color: var(--sc-ink-soft); max-width: 54ch; }
.ct-thanks p a { color: var(--sc-ink); text-decoration: none; border-bottom: 1px solid rgba(242,242,242,.3); }
.ct-thanks .bp-pill--outline { cursor: pointer; }

/* ---- the office card ---- */
.ct-office { padding: clamp(24px, 4vh, 48px) clamp(20px, 5vw, 48px) clamp(80px, 12vh, 140px); }
.ct-office__wrap { max-width: 1240px; margin: 0 auto; }
.ct-office__head {
  display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 62%); gap: clamp(32px, 6vw, 96px); align-items: end;
  margin-bottom: clamp(24px, 3vh, 36px);
}
.ct-office__kicker {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font: 500 12px/1 var(--sc-font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--sc-ink-soft);
}
.ct-office__kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sc-accent); }
.ct-office__head h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: .98; }
.ct-office__head p { margin: 0; font: 400 clamp(.95rem, 1.15vw, 1.08rem)/1.6 var(--sc-font-text); color: var(--sc-ink-soft); max-width: 50ch; }
.ct-office__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ct-office__cell {
  display: flex; flex-direction: column; gap: 14px; padding: 24px clamp(18px, 2.6vw, 32px) 26px;
  background: var(--sc-surface); border-radius: 12px; color: var(--sc-ink); text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1); transition: box-shadow 220ms var(--sc-ease-out), transform 300ms var(--sc-ease-out);
}
.ct-office__cell[href]:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.35); transform: translateY(-2px); }
.ct-office__cell small { font: 500 11px/1 var(--sc-font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--sc-ink-soft); }
.ct-office__cell b, .ct-office__cell address { font: 600 clamp(1.05rem, 1.5vw, 1.3rem)/1.2 var(--sc-font-display); text-transform: uppercase; letter-spacing: .02em; font-style: normal; }
.ct-office__cell address { font-size: clamp(1rem, 1.2vw, 1.15rem); }
.ct-office__cell a { color: var(--sc-ink); text-decoration: none; }
.ct-office__cell > a > b { display: block; }
.ct-office__cell .ct-office__go {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font: 500 12px/1 var(--sc-font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--sc-ink-soft);
  padding-bottom: 3px; border-bottom: 1px solid rgba(242,242,242,.28); transition: color 160ms, border-color 160ms;
}
.ct-office__cell:hover .ct-office__go { color: var(--sc-ink); border-color: var(--sc-ink); }
.ct-office__cell .ct-office__go::after { content: "→"; }

@media (max-width: 960px) {
  /* one column: the form first, then the ticket it filled, then the group's pages */
  .ct-grid { grid-template-columns: 1fr; gap: 40px; }
  .ct-aside { position: static; gap: 28px; order: 2; }
  .ct-hint { display: none; }
  .ct-office__head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .ct-office__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ct-fields { grid-template-columns: 1fr; }
  .ct-ticket__row { grid-template-columns: 56px minmax(0, 1fr); padding: 12px 0; }
  .ct-ticket__v { font-size: .95rem; }
}
