/* /add — firma ekleme sayfası (yalnız bu görünümde yüklenir) */
.add-page { max-width: 1080px; padding-top: 18px; padding-bottom: 32px; }

/* Üst bölüm: faydalar + 3 adım */
.add-hero { margin-bottom: 22px; }
.add-hero .intro { font-size: 1.05rem; margin-bottom: 16px; }
.add-benefits { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.add-benefits li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--primary-soft); border-radius: var(--radius); }
.add-benefits li > span { font-size: 1.4rem; line-height: 1.2; }
.add-benefits strong, .add-steps strong { display: block; color: var(--primary-dark); }
.add-benefits small, .add-steps small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.add-steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.add-steps li { counter-increment: st; position: relative; padding: 4px 0 4px 44px; }
.add-steps li::before { content: counter(st); position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); color: var(--primary); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.add-steps-compact { grid-template-columns: 1fr; gap: 10px; margin-bottom: 18px; }

/* Form + yan sütun */
.add-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.add-req-note { margin: 0 0 10px; }
.add-confirm { display: flex; margin-bottom: 12px; padding: 10px 12px; background: var(--accent-soft); border-radius: var(--radius-sm); }
.add-sec { margin: 0 0 14px; padding: 16px 18px 6px; min-width: 0; }
.add-sec legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 4px; font-weight: 700; font-size: 1.05rem; }
.add-sec legend + * { clear: both; }
.add-num { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; }
.add-sec-hint { color: var(--muted); font-size: .88rem; margin: 0 0 12px; }
.add-hint { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.add-count { text-align: end; }
.add-link { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; cursor: pointer; }
.add-antispam { max-width: 360px; }
.add-form .field [aria-invalid="true"] { border-color: #d33; background: #fff7f7; }
.add-errors:focus { outline: 2px solid #d33; outline-offset: 2px; }
.add-errors a { color: inherit; text-decoration: underline; }

/* Canlı mükerrer kutusu */
.add-dup { margin: 4px 0 14px; padding: 12px 14px; border: 1px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius-sm); font-size: .9rem; }
.add-dup p { margin: 0 0 8px; }
.add-dup ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.add-dup li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; background: var(--surface); border-radius: var(--radius-sm); }
.add-dup-name { min-width: 0; overflow-wrap: anywhere; }
.add-dup-name small { display: block; color: var(--muted); }
.add-dup-tag { font-style: normal; font-size: .72rem; font-weight: 700; color: #7a5410; background: var(--accent-soft); padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.add-dup .btn { flex: 0 0 auto; white-space: nowrap; }

/* Gönder çubuğu + zorunlu alan ilerlemesi */
.add-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.add-progress { display: flex; flex-direction: column; gap: 4px; min-width: 180px; flex: 1 1 200px; }
.add-progress small { color: var(--muted); font-size: .8rem; }
.add-bar { display: block; height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.add-bar i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 999px; transition: width .25s; }

/* Önizleme */
.add-side { position: sticky; top: 132px; align-self: start; max-height: calc(100vh - 148px); overflow-y: auto; scrollbar-width: thin; }   /* kolonun kendisi yapışır (içerik kadar kısa kolonda içteki sticky kaymıyordu) */
.add-side .h-small { margin-top: 0; }
.add-preview { pointer-events: none; }
.add-preview .is-ph { color: var(--muted); font-style: italic; font-weight: 500; }
.add-preview-note { margin: 8px 0 16px; }
.add-tips ul { margin: 0; padding-inline-start: 18px; font-size: .88rem; color: var(--muted); }
.add-tips li { margin-bottom: 4px; }

/* Başarı ekranı */
.add-done { max-width: 680px; margin: 10px auto 24px; padding: 28px; text-align: start; }
.add-done-icon { width: 52px; height: 52px; border-radius: 50%; background: #e6f7ec; color: #14532d; font-size: 1.6rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.add-done-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.add-faq { max-width: 820px; margin-top: 24px; }

@media (max-width: 900px) {
  .add-layout { grid-template-columns: 1fr; }
  .add-side { position: static; max-height: none; overflow: visible; }
  .add-side-in { position: static; }
  .add-tips { display: none; }
  .add-preview-note { margin-bottom: 4px; }
}
@media (max-width: 720px) {
  .add-benefits, .add-steps { grid-template-columns: 1fr; gap: 8px; }
  .add-sec { padding: 14px 14px 4px; }
  /* mobilde gönder çubuğu ekranın altına yapışık */
  .add-submit { position: sticky; bottom: 0; z-index: 20; margin: 0 -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(16,24,40,.08); gap: 8px; }
  .add-submit .btn { width: 100%; }
  .add-dup li { flex-direction: column; align-items: flex-start; }
}
