/* Bayilik programı ve başvuru sihirbazı (site/bayilik.php) */

.by-sec .section-head { margin-bottom: 2.4rem; }
.by-muted { color: var(--ink-soft); }
.by-fine { color: var(--ink-soft); font-size: .8rem; margin: .6rem 0 0; display: flex; gap: .4rem; align-items: flex-start; }
.by-fine svg { width: 15px; height: 15px; flex: none; margin-top: .1rem; color: var(--basil); }
.by-opt { font-style: normal; font-weight: 500; color: var(--ink-soft); font-size: .78rem; margin-left: .25rem; }
.by-h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--ink); margin: .2rem 0 .6rem; line-height: 1.15; }

/* ---------- Hero */
.by-hero {
    padding: 4.5rem 0 3.5rem;
    background:
        radial-gradient(700px 420px at 88% 30%, rgba(22, 118, 164, .13), transparent 70%),
        radial-gradient(520px 360px at 0% 0%, rgba(240, 138, 75, .12), transparent 70%);
}
.by-hero-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 3rem; align-items: center; }
.by-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; color: var(--ink); margin: .4rem 0 1rem; letter-spacing: -.01em; }
.by-hero h1 em { font-style: italic; color: var(--tomato); }
.by-hero .lead { color: var(--ink-soft); font-size: 1.1rem; max-width: 36rem; margin: 0 0 1.6rem; }
.by-hero-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: var(--shadow-lg); display: grid; gap: .7rem; transform: rotate(1.5deg); }
.by-hc-top { display: flex; gap: .75rem; align-items: center; margin-bottom: .3rem; }
.by-hc-top b { display: block; color: var(--ink); }
.by-hc-top small { color: var(--ink-soft); font-size: .8rem; }
.by-hc-ico, .by-ben-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: var(--saffron); flex: none; }
.by-hc-ico svg, .by-ben-ico svg { width: 22px; height: 22px; }
.by-hc-stat { display: flex; justify-content: space-between; align-items: center; background: var(--cream); border-radius: 12px; padding: .75rem .95rem; }
.by-hc-stat small { color: var(--ink-soft); font-weight: 600; font-size: .82rem; }
.by-hc-stat strong { color: var(--ink); font-size: 1.15rem; }
.by-hc-stat.is-accent { background: var(--tomato-soft); }
.by-hc-stat.is-accent strong { color: var(--tomato-dark); }
.by-hc-bar { height: 8px; border-radius: 99px; background: var(--cream-2); overflow: hidden; }
.by-hc-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--basil), var(--tomato)); }
.by-hc-note { color: var(--ink-soft); font-size: .72rem; text-align: right; }

/* ---------- Avantajlar */
.by-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.by-ben { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; transition: transform .2s ease, box-shadow .2s ease; }
.by-ben:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.by-ben h3 { margin: 1rem 0 .4rem; font-size: 1.08rem; color: var(--ink); }
.by-ben p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

/* ---------- Süreç ve belgeler */
.by-flow { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: none; }
.by-flow li { position: relative; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; }
.by-flow li:not(:last-child)::after { content: ""; position: absolute; top: 2.15rem; right: -1rem; width: 1rem; height: 2px; background: var(--border-strong); }
.by-flow-no { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--tomato); color: #fff; font-weight: 800; }
.by-flow h3 { margin: .9rem 0 .35rem; font-size: 1.05rem; color: var(--ink); }
.by-flow p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.by-docs { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; }
.by-docs-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.1rem; }
.by-docs-head h3 { margin: 0; display: flex; gap: .5rem; align-items: center; color: var(--ink); font-size: 1.1rem; }
.by-docs-head h3 svg { color: var(--tomato); width: 22px; height: 22px; }
.by-docs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.6rem; }
.by-docs-list li { display: flex; gap: .65rem; align-items: flex-start; }
.by-docs-list li > svg { width: 20px; height: 20px; color: var(--basil); flex: none; margin-top: .1rem; }
.by-docs-list b { color: var(--ink); font-size: .95rem; }
.by-docs-list em { color: var(--ink-soft); font-style: normal; font-size: .82rem; }
.by-docs-list small { display: block; color: var(--ink-soft); font-size: .84rem; }

/* ---------- Sihirbaz */
.by-form { max-width: 860px; margin: 0 auto; }
.by-steps { list-style: none; margin: 0 0 1rem; padding: 0; display: none; grid-template-columns: repeat(5, 1fr); gap: .4rem; }
.by-js .by-steps { display: grid; }
.by-steps li { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; position: relative; cursor: default; color: var(--ink-soft); }
.by-steps li::before { content: ""; position: absolute; top: 17px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 2px; background: var(--border-strong); }
.by-steps li:first-child::before { display: none; }
.by-steps span { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); border: 2px solid var(--border-strong); font-weight: 800; font-size: .9rem; transition: all .2s ease; }
.by-steps b { font-size: .8rem; font-weight: 700; }
.by-steps li.is-done { cursor: pointer; color: var(--ink); }
.by-steps li.is-done span { background: var(--basil); border-color: var(--basil); color: #fff; }
.by-steps li.is-done::before, .by-steps li.is-active::before { background: var(--basil); }
.by-steps li.is-active { color: var(--ink); }
.by-steps li.is-active span { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 5px rgba(12, 33, 64, .1); }
.by-panel { max-width: none; margin: 0; padding: 2rem 2.2rem; }
.by-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.by-step + .by-step { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px dashed var(--border-strong); }
.by-js .by-step { display: none; }
.by-js .by-step + .by-step { margin-top: 0; padding-top: 0; border-top: 0; }
.by-js .by-step.is-active { display: block; animation: byIn .25s ease; }
@keyframes byIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.by-step legend { display: block; width: 100%; padding: 0; margin: 0 0 1.4rem; font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; color: var(--ink); }
.by-step legend span { display: block; font-family: var(--font); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tomato-dark); margin-bottom: .2rem; }
.by-nav { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.by-nav [data-prev], .by-nav [data-next] { display: none; }
.by-js .by-nav [data-prev], .by-js .by-nav [data-next] { display: inline-flex; }
.by-nav button { cursor: pointer; font-family: inherit; }
.by-step:not([data-step="5"]) .by-nav { display: none; }
.by-js .by-step .by-nav { display: flex; }
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .1); }
.form-group.has-error .ct-chips .ct-chip span { border-color: rgba(192, 57, 43, .45); }
.by-hint { display: block; margin-top: .3rem; font-size: .8rem; color: #6b7280; }
.by-hint.is-ok { color: #15803d; font-weight: 600; }
.form-group.has-error .by-hint { display: none; }
.by-form select { appearance: auto; }
.ct-chip input[type="checkbox"] + span::before { content: "+ "; opacity: .55; }
.ct-chip input[type="checkbox"]:checked + span::before { content: "✓ "; opacity: 1; }

/* Sözleşme adımı */
.by-howto { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.by-howto li { display: flex; gap: .7rem; background: var(--cream); border-radius: 14px; padding: .9rem; }
.by-howto li > span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: .82rem; }
.by-howto b { display: block; color: var(--ink); font-size: .9rem; }
.by-howto small { color: var(--ink-soft); font-size: .8rem; line-height: 1.4; display: block; margin-top: .15rem; }
.by-contract-acts { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.by-contract-acts .by-fine { margin: 0; }
.by-contract { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 1.2rem; background: var(--background); }
.by-contract summary { cursor: pointer; padding: .85rem 1.1rem; font-weight: 700; color: var(--ink); font-size: .92rem; }
.by-contract-body { max-height: 380px; overflow: auto; padding: 0 1.3rem 1.2rem; font-size: .86rem; color: #2b3647; border-top: 1px solid var(--border); }
.by-contract-body .sz-h { font-size: .86rem; color: var(--ink); margin: 1.1rem 0 .4rem; display: flex; gap: .5rem; text-transform: uppercase; }
.by-contract-body .sz-h span { color: var(--tomato-dark); }
.by-contract-body .sz-p { margin: 0 0 .4rem; }
.by-contract-body .sz-fill { font-weight: 700; color: var(--ink); }
.by-contract-body .sz-blank { display: inline-block; min-width: 9rem; border-bottom: 1px dotted var(--ink-soft); height: 1em; }
.by-contract-body .sz-parties, .by-contract-body .sz-signs { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: .5rem 0; }
.by-contract-body table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.by-contract-body caption { text-align: left; font-weight: 800; padding: .3rem 0; color: var(--ink); }
.by-contract-body th, .by-contract-body td { border: 1px solid var(--border); padding: .3rem .5rem; text-align: left; vertical-align: top; }
.by-contract-body .sz-sign { border: 1px solid var(--border); border-radius: 8px; padding: .6rem; }
.by-contract-body .sz-sign h4 { margin: 0 0 .4rem; font-size: .8rem; }
.by-contract-body .sz-sign p { margin: 0 0 .3rem; }
.by-contract-body .sz-sign small { display: block; color: var(--ink-soft); font-size: .7rem; }
.by-contract-body .sz-stamp { height: 48px; border: 1px dashed var(--border-strong); border-radius: 6px; font-size: .7rem; color: var(--ink-soft); display: grid; place-items: center; }
.by-contract-body .sz-list { margin: .2rem 0 .5rem 1.3rem; padding: 0; }

/* Evrak yükleme */
.by-up-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.by-up { border: 1px solid var(--border); border-radius: 16px; padding: 1rem; background: var(--paper); display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1rem; }
.by-up-grid .by-up { margin-bottom: 0; }
.by-up.is-hidden-type { display: none; }
.by-up.has-error { border-color: rgba(192, 57, 43, .55); box-shadow: 0 0 0 3px rgba(192, 57, 43, .08); }
.by-up.is-ok { border-color: rgba(22, 118, 164, .35); }
.by-up-head { display: flex; gap: .7rem; align-items: flex-start; }
.by-up-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--basil-soft); color: var(--basil); }
.by-up-ico svg { width: 19px; height: 19px; }
.by-up.is-ok .by-up-ico { background: var(--basil); color: #fff; }
.by-up-title { color: var(--ink); font-size: .95rem; margin-right: .35rem; }
.by-badge { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .15rem .45rem; border-radius: 6px; background: var(--cream-2); color: var(--ink-soft); vertical-align: 2px; }
.by-badge.is-req { background: var(--tomato-soft); color: var(--tomato-dark); }
.by-up-desc { margin: .25rem 0 0; color: var(--ink-soft); font-size: .8rem; line-height: 1.4; }
.by-drop { position: relative; display: flex !important; flex-direction: column; align-items: center; gap: .2rem; text-align: center; border: 2px dashed var(--border-strong); border-radius: 12px; padding: 1rem .8rem; cursor: pointer; transition: background .15s ease, border-color .15s ease; margin: 0 !important; font-weight: 500 !important; }
.by-drop:hover, .by-drop.is-over { background: var(--cream); border-color: var(--tomato); }
.by-drop:focus-within { border-color: var(--ink); }
.by-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100% !important; }
.by-js .by-drop input { pointer-events: none; }
.by-drop svg { width: 24px; height: 24px; color: var(--tomato); }
.by-drop span { color: var(--ink); font-size: .88rem; }
.by-drop small { color: var(--ink-soft); font-size: .74rem; }
.by-up.is-full .by-drop { display: none !important; }
.by-files { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.by-files:empty { display: none; }
.by-files li { display: flex; align-items: center; gap: .6rem; background: var(--cream); border-radius: 10px; padding: .45rem .55rem; }
.by-thumb { flex: none; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--paper); display: grid; place-items: center; color: var(--tomato-dark); font-size: .62rem; font-weight: 800; border: 1px solid var(--border); }
.by-files .by-fn { flex: 1; min-width: 0; }
.by-files .by-fn b { display: block; font-size: .82rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.by-files .by-fn small { color: var(--ink-soft); font-size: .74rem; }
.by-files button { flex: none; border: 0; background: none; color: var(--ink-soft); cursor: pointer; padding: .3rem; border-radius: 8px; display: grid; place-items: center; }
.by-files button:hover { background: rgba(192, 57, 43, .1); color: #c0392b; }
.by-files button svg { width: 17px; height: 17px; }
.by-total { font-size: .82rem; color: var(--ink-soft); margin: -.2rem 0 1rem; }
.by-total.is-over { color: #a82a1c; font-weight: 700; }

/* Özet ve onaylar */
.by-summary { background: var(--background); border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.3rem; margin: .5rem 0 1.2rem; }
.by-summary h4 { margin: 0 0 .7rem; display: flex; gap: .45rem; align-items: center; color: var(--ink); font-size: .98rem; }
.by-summary h4 svg { width: 18px; height: 18px; color: var(--basil); }
.by-summary dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; margin: 0; font-size: .86rem; }
.by-summary dt { color: var(--ink-soft); font-weight: 600; }
.by-summary dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.by-summary dd button { border: 0; background: none; color: var(--tomato-dark); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; padding: 0; margin-left: .4rem; }
.by-consents { display: grid; gap: .2rem; }
.by-consents .form-group { margin-bottom: .6rem; }
.by-sending { display: flex; gap: .5rem; align-items: center; justify-content: center; color: var(--ink-soft); font-weight: 600; font-size: .9rem; margin: 1rem 0 0; }
.by-sending svg { width: 18px; height: 18px; animation: bySpin 1s linear infinite; }
@keyframes bySpin { to { transform: rotate(360deg); } }
.by-help { text-align: center; color: var(--ink-soft); font-size: .88rem; margin: 1.2rem 0 0; }
.by-help a { color: var(--tomato-dark); font-weight: 700; }

/* Başarı ekranı */
.by-done { max-width: 640px; margin: 0 auto; text-align: center; padding: 2.4rem 2rem; }
.by-done h2 { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.9rem; margin: 0 0 .4rem; }
.by-done > p { color: var(--ink-soft); margin: 0 0 .5rem; }
.by-no { display: inline-block; font-size: 1.6rem; font-weight: 800; letter-spacing: .08em; color: var(--ink); background: var(--cream); border: 1px dashed var(--border-strong); border-radius: 14px; padding: .6rem 1.4rem; margin: .3rem 0 1.4rem; }
.by-next { list-style: none; margin: 0 0 1rem; padding: 0; text-align: left; display: grid; gap: .6rem; }
.by-next li { display: grid; grid-template-columns: 7rem 1fr; gap: .8rem; background: var(--background); border-radius: 12px; padding: .75rem 1rem; font-size: .9rem; }
.by-next b { color: var(--tomato-dark); }
.by-next span { color: var(--ink-soft); }
.by-done .by-fine { justify-content: center; margin-bottom: 1.4rem; }

/* ---------- Duyarlı */
@media (max-width: 980px) {
    .by-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .by-hero-card { max-width: 420px; transform: none; }
    .by-benefits { grid-template-columns: 1fr 1fr; }
    .by-flow { grid-template-columns: 1fr 1fr; }
    .by-flow li::after { display: none; }
}
@media (max-width: 680px) {
    .by-hero { padding: 2.5rem 0 2rem; }
    .by-benefits, .by-flow, .by-docs-list, .by-up-grid, .by-howto { grid-template-columns: 1fr; }
    .by-panel { padding: 1.3rem 1.1rem; }
    .by-steps b { font-size: .68rem; }
    .by-steps span { width: 30px; height: 30px; font-size: .8rem; }
    .by-steps li::before { top: 14px; left: calc(-50% + 18px); right: calc(50% + 18px); }
    .by-step legend { font-size: 1.3rem; }
    .by-nav { flex-wrap: wrap; }
    .by-nav .btn-primary { flex: 1; justify-content: center; }
    .by-summary dl { grid-template-columns: 1fr; gap: 0; }
    .by-summary dd { margin-bottom: .45rem; }
    .by-next li { grid-template-columns: 1fr; gap: .1rem; }
    .by-contract-body .sz-parties, .by-contract-body .sz-signs { grid-template-columns: 1fr; }
}
