/* ==========================================================================
   SEDDIR — İş ortağı başvurusu (/is-ortagi-basvuru)
   Loaded by that page only, so the rest of the site keeps its asset hashes.
   Poster head in the brand's colour pairs, numbered steps as swatch tiles,
   a plain form on paper. No text-transform: capitals come from the template.
   ========================================================================== */
[data-page="apply"] { --head-bg: var(--c-red); --head-fg: var(--c-yellow); --foot-bg: var(--c-navy); --foot-fg: var(--c-pink); }

.apply { padding-inline: var(--inset); max-width: calc(880px + 2 * var(--inset)); margin-inline: auto; }
.apply__head { padding-top: 32px; }
.apply__title {
  font: 800 clamp(36px, 6.4vw, 96px)/.92 var(--ff-display); font-stretch: var(--wdth-wide);
  color: var(--c-navy); text-wrap: balance; overflow-wrap: anywhere;
}
.apply__intro { max-width: 620px; margin-top: 18px; font-size: clamp(16px, .4vw + 13px, 19px); line-height: 1.5; color: var(--ink-soft); }

.apply__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.apply__steps li { display: grid; gap: 14px; align-content: start; padding: 18px 18px 22px; background: var(--c-pink); color: var(--c-navy); font-weight: 600; line-height: 1.35; }
.apply__steps li:nth-child(2) { background: var(--c-yellow); color: var(--c-red); }
.apply__steps li:nth-child(3) { background: var(--c-green); color: var(--c-navy); }
.apply__steps b { font: 800 56px/.8 var(--ff-display); font-stretch: var(--wdth-wide); }

.apply__form { display: grid; gap: 18px; margin-top: 48px; padding: 28px; background: #fff; box-shadow: 0 2px 0 var(--line), 0 18px 40px rgb(0 0 0 / .06); }
.apply__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.apply__field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.apply__field small { font-weight: 500; color: var(--ink-soft); }
.apply__field em { font-style: normal; font-weight: 500; color: var(--ink-soft); }
.apply__field input, .apply__field textarea {
  width: 100%; padding: 12px 14px; font: 500 16px/1.4 var(--ff-body);   /* 16px: no zoom on iPhone */
  background: var(--c-paper); border: 2px solid transparent; border-bottom-color: var(--c-navy); border-radius: 0; color: var(--ink);
}
.apply__field textarea { resize: vertical; min-height: 96px; }
.apply__field input { text-overflow: ellipsis; }   /* a long example text (placeholder) ends in “…” in a narrow box */
.apply__field input:focus-visible, .apply__field textarea:focus-visible { outline: none; border-color: var(--c-navy); background: #fff; }
.apply__field [aria-invalid="true"] { border-color: var(--c-red); }

.apply__kind { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.apply__kind legend { width: 100%; padding: 0; margin-bottom: 8px; font: 800 20px/1.1 var(--ff-display); color: var(--c-navy); }
.apply__kind label { position: relative; }
.apply__kind input { position: absolute; opacity: 0; inset: 0; }
.apply__kind span { display: inline-block; padding: 12px 18px; font-weight: 700; border: 2px solid var(--c-navy); color: var(--c-navy); transition: background-color var(--dur-fast), color var(--dur-fast); }
.apply__kind input:checked + span { background: var(--c-navy); color: var(--c-paper); }
.apply__kind input:focus-visible + span { outline: 2px solid var(--c-red); outline-offset: 2px; }

.apply__thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.apply__thumbs:empty { display: none; }
.apply__thumbs li { position: relative; width: 96px; aspect-ratio: 3 / 4; background: var(--c-paper); }
.apply__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.apply__thumbs button { position: absolute; left: 4px; right: 4px; bottom: 4px; padding: 4px; font: 700 11px/1.2 var(--ff-body); background: rgb(0 0 0 / .7); color: #fff; }
.apply__pick { justify-self: start; position: relative; }
.apply__pick input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.apply__pick span { display: inline-block; padding: 11px 16px; font-weight: 700; letter-spacing: .04em; border: 2px dashed var(--c-navy); color: var(--c-navy); }
.apply__pick input:focus-visible + span { outline: 2px solid var(--c-red); outline-offset: 2px; }
.apply__pick[hidden] { display: none; }

.apply__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply__consent { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; align-items: flex-start; }
.apply__consent input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--c-navy); }
.apply__consent a { text-decoration: underline; text-underline-offset: 2px; }
.apply__error { font-size: 14px; font-weight: 700; color: var(--c-red); }
.apply__error:empty { display: none; }
.apply .btn { text-transform: none; }   /* the label is already in capitals (upTr) */
.apply__submit { justify-self: start; min-width: 240px; }
.apply__submit.is-busy { opacity: .6; pointer-events: none; }

.apply__done { display: grid; justify-items: center; gap: 14px; margin-top: 48px; padding: 48px 24px; text-align: center; background: var(--c-yellow); color: var(--c-red); }
.apply__done .mark { height: 72px; }
.apply__done h2 { font: 800 clamp(26px, 2vw + 16px, 40px)/1 var(--ff-display); }
.apply__done p { max-width: 460px; color: var(--c-navy); font-weight: 600; }
.apply__done:focus { outline: none; }

@media (max-width: 767.98px) {
  .apply__head { padding-top: 16px; }
  .apply__steps { grid-template-columns: 1fr; margin-top: 28px; gap: 8px; }
  .apply__steps li { grid-template-columns: 44px 1fr; align-items: center; padding: 14px 16px; }
  .apply__steps b { font-size: 40px; }
  .apply__form { margin-top: 28px; margin-inline: calc(-1 * var(--inset)); padding: 24px var(--inset); }
  .apply__grid { grid-template-columns: 1fr; }
  .apply__submit { justify-self: stretch; min-width: 0; }
}
