/* ===== FORM SAYFALARI (Teklif Al, Etüt Ekipman Bilgi Formu) ===== */
.fx-sec{background:var(--bg-soft)}
.fx-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:clamp(24px,3vw,40px);align-items:start}
.fx-grid>*{min-width:0}
.fx-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:28px;padding:clamp(22px,3.2vw,44px);box-shadow:var(--shadow-sm)}
.fx-card-head{margin-bottom:8px}
.fx-card-head .h2{font-size:clamp(26px,2.6vw,34px)}
.fx-card-head p{margin-top:10px;color:var(--muted)}
.fx-card-head b{color:#C2410C}
.fx-set{border:0;margin:0;padding:28px 0 6px;border-top:1px solid var(--line);margin-top:24px}
.fx-set legend{display:flex;align-items:center;gap:12px;float:left;width:100%;margin-bottom:18px;font-family:var(--f-head);font-weight:600;font-size:18px;color:var(--ink)}
.fx-set legend+*{clear:both}
.fx-n{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--brand-50);color:var(--brand-700);font-size:14px;font-weight:700;flex:none}
.field label small{font-weight:400;color:var(--muted);font-size:12.5px}
.fx-unit{position:relative}
.fx-unit input{padding-right:56px}
.fx-unit span{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:13px;color:var(--muted)}
.fx-hint{margin-top:12px;font-size:14.5px;color:var(--muted)}
.fx-hint a{color:var(--brand-700);text-decoration:underline}
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chip{position:relative;cursor:pointer}
.chip input{position:absolute;opacity:0;width:1px;height:1px}
.chip span{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 16px;border-radius:999px;border:1.5px solid #8A9BB0;background:#fff;font-family:var(--f-head);font-size:14px;font-weight:500;color:var(--ink-2);transition:background-color .15s,border-color .15s,color .15s}
.chip span::before{content:"";width:16px;height:16px;border-radius:5px;border:1.5px solid #8A9BB0;transition:inherit}
.chip:hover span{border-color:var(--brand-600)}
.chip input:checked+span{background:var(--brand-50);border-color:var(--brand-700);color:var(--brand-700)}
.chip input:checked+span::before{background:var(--brand-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat;border-color:var(--brand-700)}
.chip input:focus-visible+span{outline:3px solid var(--brand);outline-offset:2px}
.fx-err{margin-top:10px;font-size:14px;color:#B91C1C;font-weight:500}
.field.invalid input,.field.invalid select,.field.invalid textarea{border-color:#DC2626;background:#FEF2F2}
.fx-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:120px;padding:18px;border-radius:16px;border:2px dashed #8A9BB0;background:var(--bg-soft);text-align:center;cursor:pointer;transition:border-color .2s,background-color .2s}
.fx-drop:hover,.fx-drop.over{border-color:var(--brand-700);background:var(--brand-50)}
.fx-drop .ico{width:30px;height:30px;color:var(--brand-700)}
.fx-drop span{font-size:15px;color:var(--ink-2)}
.fx-drop b{color:var(--brand-700)}
.fx-drop small{font-size:13px;color:var(--muted)}
.fx-file{position:absolute;width:1px;height:1px;opacity:0}
.fx-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.fx-submit{width:100%;margin-top:20px}
.fx-done{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:36px 20px}
.fx-done:not([hidden]){animation:fxIn .4s var(--ease)}
@keyframes fxIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.fx-done .ico{width:64px;height:64px;color:var(--leaf)}
.fx-done h3{font-size:24px}
.fx-done p{color:var(--muted);max-width:440px}
.fx-done a{color:var(--brand-700);font-weight:600}
.fx-side{position:sticky;top:110px;display:grid;gap:16px}
.fx-box{padding:22px;border-radius:22px;background:#fff;border:1px solid var(--line)}
.fx-box>b{display:block;font-family:var(--f-head);font-weight:600;font-size:16px;color:var(--ink);margin-bottom:12px}
.fx-box.dark{background:linear-gradient(150deg,var(--navy-800),var(--navy-900));border-color:transparent;color:#C9D7E8}
.fx-box.dark>b{color:#fff}
.fx-steps{display:grid;gap:14px}
.fx-steps li{display:flex;gap:12px}
.fx-steps li>span{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;border:1.5px solid var(--brand);color:#fff;font-family:var(--f-head);font-size:13px;font-weight:700}
.fx-steps b{display:block;color:#fff;font-family:var(--f-head);font-weight:600;font-size:14.5px}
.fx-steps p{font-size:13.5px;color:#A9BCD3;line-height:1.45}
.fx-line{display:flex;align-items:center;gap:10px;min-height:44px;font-size:15px;color:var(--ink-2);border-top:1px solid var(--line)}
.fx-line:first-of-type{border-top:0}
.fx-line .ico{width:20px;height:20px;color:var(--brand-700)}
.fx-line:hover{color:var(--brand-700)}
.fx-box.badge{text-align:center}
.fx-box.badge img{height:52px;width:auto;margin:0 auto 10px}
.fx-box.badge p{font-size:14px;color:var(--muted)}
.fx-box.badge b{color:var(--ink)}

/* --- Etüt formu: adımlar --- */
.ew-top{position:sticky;top:76px;z-index:20;margin:-8px -8px 0;padding:14px 8px 12px;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.ew-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;counter-reset:ew}
.ew-steps button{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:44px;padding:4px 2px;text-align:left;font-family:var(--f-head);font-size:12.5px;font-weight:500;color:var(--muted);counter-increment:ew}
.ew-steps button::before{content:"";display:block;width:100%;height:5px;border-radius:5px;background:var(--line);transition:background-color .3s}
.ew-steps button[aria-current="step"]{color:var(--brand-700)}
.ew-steps button[aria-current="step"]::before{background:var(--brand)}
.ew-steps button.done::before{background:var(--leaf)}
.ew-steps button.done{color:var(--ink-2)}
.ew-meta{display:flex;justify-content:space-between;gap:12px;margin-top:8px;font-size:12.5px;color:var(--muted)}
.ew-save{display:inline-flex;align-items:center;gap:6px}
.ew-save::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--leaf)}
.ew-panel{padding-top:26px}
.ew-panel[hidden]{display:none}
.ew-panel>h3{font-size:22px;display:flex;gap:12px;align-items:center}
.ew-panel>p.ew-desc{margin:6px 0 18px;color:var(--muted)}
.ew-group{margin-top:26px;padding:20px;border-radius:20px;border:1px solid var(--line);background:var(--bg-soft)}
.ew-group>h4{display:flex;align-items:center;gap:10px;font-family:var(--f-head);font-weight:600;font-size:16.5px;color:var(--ink);margin:0 0 4px}
.ew-group>h4 .ico{width:22px;height:22px;color:var(--brand-700)}
.ew-group>p{font-size:14px;color:var(--muted);margin-bottom:14px}
.rep-row{position:relative;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;padding:14px 46px 14px 14px;border-radius:14px;background:#fff;border:1px solid var(--line);margin-bottom:10px;counter-increment:rr}
.rep-list{counter-reset:rr}
.rep-row::before{content:counter(rr);position:absolute;left:-10px;top:-10px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--navy-800);color:#fff;font-family:var(--f-head);font-size:12px;font-weight:600}
.rep-row .field label{font-size:12.5px}
.rep-row .field input,.rep-row .field select{min-height:42px;padding:9px 10px;font-size:15px}
.rep-del{position:absolute;right:8px;top:8px;display:grid;place-items:center;width:32px;height:32px;border-radius:8px;color:var(--muted)}
.rep-del:hover{background:#FEF2F2;color:#B91C1C}
.rep-del .ico{width:18px;height:18px}
.rep-add{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 16px;border-radius:999px;border:1.5px dashed var(--brand-700);color:var(--brand-700);font-family:var(--f-head);font-size:14px;font-weight:500;background:#fff}
.rep-add:hover{background:var(--brand-50)}
.rep-empty{font-size:14px;color:var(--muted);margin-bottom:10px}
.yrs{overflow-x:auto;border:1px solid var(--line);border-radius:16px;background:#fff}
.yrs table{width:100%;border-collapse:collapse;min-width:560px}
.yrs th,.yrs td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;font-size:14.5px}
.yrs thead th{background:var(--navy-800);color:#fff;font-family:var(--f-head);font-weight:500;font-size:13.5px}
.yrs tbody th{font-family:var(--f-head);font-weight:500;color:var(--ink);white-space:nowrap}
.yrs input{width:100%;min-height:40px;padding:8px 10px;border-radius:10px;border:1.5px solid #8A9BB0;font:inherit;font-size:15px;text-align:right}
.yrs input:focus{outline:2px solid var(--brand-700);outline-offset:1px}
.ew-radio{display:flex;flex-wrap:wrap;gap:8px}
.ew-nav{display:flex;justify-content:space-between;gap:12px;margin-top:30px;padding-top:22px;border-top:1px solid var(--line)}
.ew-nav .btn[hidden]{display:none}
.ew-intro{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;border-radius:16px;background:var(--brand-50);border:1px solid var(--brand-100);font-size:15px;color:var(--ink-2);margin-top:18px}
.ew-intro .ico{width:24px;height:24px;color:var(--brand-700);flex:none;margin-top:2px}
.ew-sum{display:grid;gap:8px;margin-top:14px}
.ew-sum li{display:flex;justify-content:space-between;gap:12px;padding:10px 14px;border-radius:12px;background:var(--bg-soft);font-size:14.5px}
.ew-sum b{color:var(--ink)}
.ew-print{margin-left:auto}
@media (max-width:1000px){.fx-grid{grid-template-columns:1fr}.fx-side{position:static}}
@media (max-width:600px){.ew-steps button{font-size:0;gap:0}.ew-steps button::after{content:attr(data-short);font-size:11px}.rep-row{grid-template-columns:1fr 1fr}.ew-nav .btn{flex:1}.ew-top{top:64px}}
@media print{.header,.footer,.wa,.ew-top,.ew-nav,.fx-side,.page-hero,.rep-add,.rep-del,.skip,.fx-drop{display:none!important}.ew-panel[hidden]{display:block!important}.fx-card{box-shadow:none;border:0;padding:0}.fx-sec{background:#fff;padding:0}}
.fx-card [hidden],.fx-card[hidden]{display:none!important}
.fx-card .field{position:relative}.fx-file{left:0;top:0;clip:rect(0 0 0 0);overflow:hidden}
