/* Cold Works Production — başvuru sayfası */
:root {
  color-scheme: light;
  --bg: #E9EEF1; --surface: #FFFFFF; --surface-2: #F3F6F8; --ink: #1B2733; --muted: #5B6B7A; --line: #CBD5DD;
  --accent: #1F6F8B; --accent-ink: #FFFFFF; --accent-soft: #D6EBF2; --warn: #B5541C; --warn-soft: #F7E3D6; --ok: #2E7D5B;
  --rail: #18222E; --ice: #7CC7E0;
  --f-head: "Barlow Condensed", "Arial Narrow", sans-serif; --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --bg: #11181F; --surface: #1A242E; --surface-2: #151E27; --ink: #E4ECF1; --muted: #8DA0B0; --line: #2C3A47;
    --accent: #7CC7E0; --accent-ink: #10202A; --accent-soft: #1D3A47; --warn: #E8A15A; --warn-soft: #3A2A1C; --ok: #6CC49A; }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); font: 400 16px/1.6 var(--f-body);
  background: radial-gradient(1100px 520px at 85% -5%, var(--accent-soft), transparent 60%), var(--bg); }
body::before { content: ""; position: fixed; left: 0; top: 0; bottom: 0; width: 6px; background: repeating-linear-gradient(180deg, var(--ice) 0 52px, #A9DDEE 52px 60px, var(--ice) 60px 120px); animation: flow 6s linear infinite; z-index: 2; }
@keyframes flow { to { background-position: 0 -240px; } }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.frost { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .7; }
.wrap { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 56px 22px 40px; }

.hero { margin-bottom: 30px; }
.house { margin: 0; color: var(--accent); font-weight: 600; font-size: .95rem; animation: rise .7s both; }
h1 { font-family: var(--f-head); font-weight: 700; font-size: clamp(3rem, 9vw, 5rem); line-height: .95; margin: 6px 0 16px; animation: rise .8s .1s both; }
.lede { color: var(--muted); max-width: 60ch; margin: 0; animation: rise .8s .2s both; }
.tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .82rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); animation: rise .5s both; }
.tags li:nth-child(n) { animation-delay: calc(.3s + var(--i, 0) * 50ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; box-shadow: 0 20px 44px -30px rgba(24,34,46,.5); animation: rise .8s .3s both; }
fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
legend { font-family: var(--f-head); font-size: 1.4rem; font-weight: 600; padding: 0; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
legend span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 .85rem var(--f-body); background: var(--rail); color: var(--ice); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; flex: 1 1 200px; min-width: 0; }
.field.narrow { flex: 0 0 110px; }
.field > span { font-size: .87rem; color: var(--muted); font-weight: 500; }
.field em { font-style: normal; opacity: .8; font-weight: 400; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; width: 100%; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
[aria-invalid="true"] { border-color: var(--warn); }
textarea { resize: vertical; }
.err { color: var(--warn); font-size: .85rem; margin: 2px 0 0; font-weight: 500; }
.err.banner { background: var(--warn-soft); border-left: 4px solid var(--warn); padding: 10px 14px; border-radius: 6px; margin: 0 0 20px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: .92rem; transition: all .2s; }
.chip span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line); transition: all .2s; }
.chip:hover span { border-color: var(--accent); transform: translateY(-1px); }
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); font-weight: 500; }
.chip input:checked + span::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--accent-soft); animation: pop .3s cubic-bezier(.2,1.4,.4,1); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes pop { from { transform: scale(.4); } }

.parent { display: none; background: var(--warn-soft); border-radius: 10px; padding: 16px 18px 6px; border-left: 4px solid var(--warn); }
.parent.is-open { display: block; animation: rise .45s both; }
.parent legend span { background: var(--warn); color: #fff; }
.hint { margin: 0 0 12px; font-size: .9rem; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; cursor: pointer; font-size: .93rem; }
.check-row input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--accent); }

.kvkk { margin: 6px 0 10px; font-size: .88rem; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: var(--surface-2); }
.kvkk summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.kvkk p { margin: 10px 0 0; }

.btn { margin-top: 10px; width: 100%; padding: 14px; border: 0; border-radius: 8px; cursor: pointer; font: 600 1.05rem var(--f-body); background: var(--accent); color: var(--accent-ink); transition: transform .15s, box-shadow .2s, filter .2s; position: relative; overflow: hidden; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px var(--accent); filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.is-busy { pointer-events: none; opacity: .85; }
.btn.is-busy::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 40%; background: rgba(255,255,255,.8); animation: busy 1s ease-in-out infinite; }
@keyframes busy { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

.done { text-align: center; }
.done h2 { font-family: var(--f-head); font-size: 2rem; margin: 6px 0 8px; }
.done p { color: var(--muted); max-width: 52ch; margin: 0 auto 10px; }
.small { font-size: .88rem; }
.check { width: 64px; height: 64px; }
.check circle { fill: none; stroke: var(--ok); stroke-width: 3; stroke-dasharray: 150; stroke-dashoffset: 150; animation: draw .6s ease-out .3s forwards; }
.check path { fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .35s ease-out .85s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.foot { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 26px; }

@media (max-width: 600px) { .wrap { padding-top: 36px; } .card { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .frost { display: none; } }
legend { float: left; width: 100%; }
legend + * { clear: both; }
