/* ============================================================
   Contact page (iletisim.html). The form is one running sentence
   in the display face; inputs sit inline on a hairline, like
   filling in the blanks of a brief.
   ============================================================ */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.contact-page { padding-top: clamp(36px, 6vw, 80px); }
.cp-head { margin-bottom: clamp(40px, 6vw, 80px); }
.cp-title {
  font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 10vw, 9rem);
  line-height: 0.9; letter-spacing: -0.045em;
}
.cp-title .line { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.cp-title .w { display: inline-block; }

.cp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 280px); gap: clamp(40px, 7vw, 120px); align-items: start; }
@media (max-width: 960px) { .cp-grid { grid-template-columns: 1fr; } }

/* ---- the sentence ---- */
.cp-form, .cp-done { grid-column: 1; }
.cp-line {
  font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 2.9rem);
  line-height: 1.5; letter-spacing: -0.025em; color: var(--paper); margin-bottom: clamp(10px, 1.6vw, 22px);
}
.cp-field { position: relative; display: inline-block; vertical-align: baseline; }
.cp-field input {
  font: inherit; letter-spacing: inherit; color: var(--cpm);
  background: transparent; border: none; border-bottom: 2px solid rgba(243, 240, 233, 0.28);
  padding: 0 2px; min-width: 3ch; max-width: 100%;
  transition: border-color .25s; /* width set by contact.js autosize */
  border-radius: 0;
}
.cp-field input::placeholder, .cp-msg textarea::placeholder { color: rgba(243, 240, 233, 0.5); opacity: 1; } /* 4.8:1 on ink, AA */
.cp-field input:hover { border-bottom-color: rgba(243, 240, 233, 0.5); }
.cp-field input:focus { outline: none; border-bottom-color: var(--cpm); }
.cp-field input:focus-visible { outline: none; }
.cp-field.is-invalid input, .cp-msg.is-invalid textarea { border-bottom-color: var(--cpm); }

.cp-err {
  position: absolute; left: 2px; top: 100%; white-space: nowrap;
  font-family: var(--label); font-weight: var(--label-weight); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cpm); line-height: 1.4; margin-top: 2px;
}
.cp-err:empty { display: none; }

/* ---- topics ---- */
.cp-topics { border: none; padding: 0; margin: clamp(14px, 2vw, 26px) 0; min-inline-size: 0; }
.cp-topics legend { padding: 0; margin-bottom: 14px; }
.cp-pills { display: flex; flex-wrap: wrap; gap: 10px; line-height: 1; }
.cp-pills label { position: relative; }
.cp-pills input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.cp-pills label > span {
  display: inline-block; font-family: var(--label); font-weight: var(--label-weight); font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--paper-dim); border: 1px solid var(--paper-faint); border-radius: 999px; padding: 9px 16px; line-height: 1.5;
  transition: border-color .25s, color .25s, background .25s;
}
.cp-pills label:hover > span { border-color: rgba(243, 240, 233, 0.4); color: var(--paper); }
.cp-pills input:checked + span { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.cp-pills input:focus-visible + span { outline: 2px solid var(--cpm); outline-offset: 3px; }

/* ---- message ---- */
.cp-msg { margin-top: clamp(18px, 2.6vw, 34px); position: relative; }
.cp-msg label { display: block; }
.cp-msg textarea {
  display: block; width: 100%; margin-top: 10px; resize: vertical; min-height: 4.6em;
  font-family: var(--body); font-weight: 400; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; letter-spacing: 0;
  color: var(--paper); background: transparent;
  border: none; border-bottom: 2px solid rgba(243, 240, 233, 0.28); border-radius: 0; padding: 10px 2px;
  field-sizing: content; max-height: 50vh; transition: border-color .25s;
}
.cp-msg textarea:focus { outline: none; border-bottom-color: var(--cpm); }
.cp-msg .cp-err { position: static; display: block; margin-top: 8px; }

.cp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- send ---- */
.cp-send { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; margin-top: clamp(34px, 5vw, 60px); }
.cp-submit {
  position: relative; overflow: hidden; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 2.8rem); letter-spacing: -0.03em; line-height: 1;
  color: var(--ink); background: var(--paper); border: none; border-radius: 999px;
  padding: 0.5em 1.05em 0.56em;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.cp-submit::before {
  content: ""; position: absolute; inset: 0; background: var(--cpm);
  transform: translateY(101%); transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.cp-submit:hover::before, .cp-submit:focus-visible::before { transform: translateY(0); }
.cp-submit-text { position: relative; }
.cp-submit:active { transform: scale(.97); }
.cp-submit[aria-busy="true"] { pointer-events: none; }
.cp-submit[aria-busy="true"]::before { transform: translateY(0); animation: cpSending 1.1s ease-in-out infinite alternate; }
@keyframes cpSending { from { opacity: .55; } to { opacity: 1; } }
.cp-kvkk { max-width: 42ch; font-size: 14px; color: var(--paper-dim); }
.cp-kvkk a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--cpm); text-underline-offset: 3px; }
.cp-status { margin-top: 22px; font-family: var(--label); font-weight: var(--label-weight); font-size: 12.5px; letter-spacing: 0.04em; color: var(--cpm); min-height: 1.4em; }
.cp-status a { color: var(--paper); text-decoration: underline; }

/* ---- done ---- */
.cp-done:focus { outline: none; }
.cp-done-line { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.04em; min-height: 1.1em; }
.cp-done-line .s { color: var(--cpm); }
.cp-done-sub { margin-top: 24px; font-size: clamp(16px, 1.5vw, 19px); color: var(--paper-dim); max-width: 44ch; }
.cp-done-sub a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--cpm); text-underline-offset: 3px; }
.cp-home { display: inline-block; margin-top: 36px; }

/* ---- aside ---- */
.cp-aside { grid-column: 2; grid-row: 1; display: grid; gap: 28px; padding-top: 0.6em; }
@media (max-width: 960px) { .cp-aside { grid-column: 1; grid-row: auto; border-top: 1px solid var(--paper-faint); padding-top: 36px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.cp-aside .col { display: flex; flex-direction: column; gap: 6px; }
.cp-aside .eyebrow { margin-bottom: 4px; color: var(--paper-dim); }
.cp-aside a { width: fit-content; transition: color .25s; }
.cp-aside a:hover { color: var(--cpm); }

/* entry animation start state is set by contact.js (only when motion is OK) */
