/* ─── CONTACT — project / drawing form + sample-box form (iletisim.htm, en/contact.htm; contact.js) ───
   Bone hero with the project form on a raised card; the sample box is the page's one night band.
   Fields use the bottom-rule pattern; every colour is a semantic token, so the night band flips them. */

/* hero: copy + studio facts left, the project form right */
.ct-hero {
  max-width: var(--maxw); margin: 0 auto; box-sizing: border-box;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-8);
  padding: 152px var(--pad-x) var(--s-10); align-items: start;
}
.ct-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(56px, 6vw, 104px);
  line-height: 0.95; letter-spacing: -0.02em; color: var(--ink); margin: var(--s-4) 0 var(--s-6); }
.ct-title em { font-style: italic; color: var(--accent); }
.ct-lede { font-size: var(--t-body); line-height: 1.75; color: var(--ink-2); max-width: 460px; margin: 0 0 var(--s-8); text-wrap: pretty; }

/* studio facts: the System-page spec rows */
.ct-facts { margin: 0; max-width: 460px; border-top: 1px solid var(--ink); }
.ct-facts div { display: grid; grid-template-columns: 9rem 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--border); }
.ct-facts div[hidden] { display: none; }
.ct-facts dt { font-size: var(--t-label); letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--ink-muted); padding-top: 3px; }
.ct-facts dd { margin: 0; font-size: var(--t-body); line-height: 1.6; color: var(--ink); }
.ct-facts a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--border-strong); }
.ct-facts a:hover { color: var(--accent); border-color: var(--accent); }

/* the form card */
.ct-card { background: var(--surface); padding: var(--s-7); box-sizing: border-box; }
.ct-card__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 2.6vw, 40px); line-height: 1.1;
  color: var(--ink); margin: 0 0 var(--s-6); }

.ct-form { display: grid; gap: var(--s-6); margin: 0; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.ct-field { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.ct-field label { font-size: var(--t-label); letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--ink-2); }
.ct-field input, .ct-field select, .ct-field textarea {
  width: 100%; box-sizing: border-box; margin: 0;
  background: transparent; color: var(--ink);
  font-family: var(--font-body); font-weight: 300; font-size: var(--t-body); line-height: 1.5;
  padding: 10px 0 12px; border: 0; border-bottom: 1px solid var(--border-strong); border-radius: 0;
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--dur-1) var(--ease);
}
.ct-field textarea { min-height: 120px; resize: vertical; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: var(--ink-muted); opacity: 1; }
.ct-field input:hover, .ct-field select:hover, .ct-field textarea:hover { border-bottom-color: var(--ink-2); }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { border-bottom-color: var(--accent); }
.ct-field select {
  padding-right: 24px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%235F574C' stroke-width='1' stroke-linecap='square'><path d='M1 1l4 4 4-4'/></svg>");
  background-repeat: no-repeat; background-position: right 2px center; background-size: 10px 6px;
}
.night .ct-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%23A79E8E' stroke-width='1' stroke-linecap='square'><path d='M1 1l4 4 4-4'/></svg>");
}
.ct-field select option { background: var(--surface); color: var(--ink); }
/* dark band: native controls, autofill and the picker follow the night palette */
.night .ct-field input, .night .ct-field select, .night .ct-field textarea { color-scheme: dark; }
.ct-field input:-webkit-autofill, .ct-field input:-webkit-autofill:hover, .ct-field input:-webkit-autofill:focus,
.ct-field textarea:-webkit-autofill, .ct-field select:-webkit-autofill {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--surface) inset; -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
  transition: background-color 9999s ease-out 0s;
}
.ct-help { font-size: var(--t-body-sm); line-height: 1.6; color: var(--ink-muted); margin: var(--s-1) 0 0; }
.ct-help a { color: var(--ink-2); }

.ct-submit { justify-self: start; border: 0; cursor: pointer; margin-top: var(--s-2); }
.ct-submit:disabled { cursor: progress; opacity: 0.75; }
.ct-note { font-size: var(--t-body-sm); line-height: 1.6; color: var(--ink-muted); margin: 0; }
.ct-status { font-size: var(--t-body-sm); line-height: 1.6; color: var(--ink); margin: 0;
  padding: var(--s-3) var(--s-4); border: 1px solid var(--accent); background: rgba(var(--ink-rgb), 0.04); }
.ct-req { color: var(--accent); }
.ct-legend { margin: 0; }
.ct-status:empty { padding: 0; border: 0; background: none; margin: 0; }
.ct-status:focus-visible { outline: 2px solid var(--focus-color); outline-offset: 2px; }
.ct-submit[aria-disabled="true"] { cursor: progress; opacity: 0.75; }
.ct-status.is-error { border-color: var(--accent-error); }

/* sample box: the night band */
.ct-sample { padding: var(--s-10) var(--pad-x); color-scheme: dark; }
/* inner width = the hero's content box (its max-width includes its own side padding) */
.ct-sample__inner { max-width: calc(var(--maxw) - 2 * var(--pad-x)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-8); align-items: start; }
.ct-sample__h { font-family: var(--font-display); font-weight: 300; font-size: clamp(38px, 3.4vw, 60px); line-height: 1.02;
  color: var(--ink); margin: var(--s-4) 0 var(--s-5); }
.ct-sample__h em { font-style: italic; color: var(--accent); }
.ct-sample__p { font-size: var(--t-body); line-height: 1.8; color: var(--ink-2); max-width: 500px; margin: 0 0 var(--s-4); }
.ct-sample__free { font-size: var(--t-label); letter-spacing: var(--tr-wider); text-transform: uppercase; color: var(--accent); margin: 0 0 var(--s-7); }
.ct-sample__fig { margin: 0; }
.ct-sample__fig img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 1073; object-fit: cover; background: var(--bg-alt); }
.ct-sample .ct-card { border: 1px solid var(--border); }

/* phones and portrait tablets: one column */
@media (orientation: portrait), (max-width: 820px) {
  .ct-hero { grid-template-columns: 1fr; gap: var(--s-7); padding: 104px var(--pad-x-sm) var(--s-8); }
  .ct-lede { margin-bottom: var(--s-6); }
  .ct-sample { padding: var(--s-9) var(--pad-x-sm) var(--s-8); } /* top clears the fixed nav when #numune / #sample is the target */
  .ct-sample__inner { grid-template-columns: 1fr; gap: var(--s-7); }
}
@media (max-width: 560px) {
  .ct-row { grid-template-columns: 1fr; }
  .ct-card { padding: var(--s-6) var(--s-5); margin: 0 calc(-1 * var(--s-2)); }
  .ct-facts div { grid-template-columns: 1fr; gap: var(--s-1); }
  .ct-submit { justify-self: stretch; justify-content: center; }
}

/* unfilled content: loud on purpose, so it cannot ship unnoticed */
.ph { outline: 2px dashed var(--accent); outline-offset: 3px; }
