:root {
  --ap-hero: #FFF6DC;
  --ap-fg: #1E1A12;
  --ap-muted: #6B6455;
  --ap-glow: rgba(255, 176, 31, 0.62);
  --ap-display: linear-gradient(180deg, #B86A00, #8A5A00);
  --ap-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ap-danger: #C62828;
  --ap-tint: rgba(255, 194, 51, 0.16);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ap-hero: #0C0B09;
    --ap-fg: #F5F1E8;
    --ap-muted: #B9B2A3;
    --ap-glow: rgba(255, 176, 31, 0.44);
    --ap-display: linear-gradient(180deg, #FFE08A, #FFB01F);
    --ap-danger: #FF8A80;
    --ap-tint: rgba(255, 194, 51, 0.12);
  }
}

[hidden] { display: none !important; }

/* ---------------------------------------------------------------- Üst bölüm */
.ap-hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(36px, 7vw, 72px) clamp(22px, 5vw, 64px); border-radius: 32px; background: var(--ap-hero); color: var(--ap-fg);
}
.ap-hero::before {
  content: ''; position: absolute; z-index: -1; right: -10%; top: 50%; width: min(120vw, 720px); aspect-ratio: 1; border-radius: 50%;
  transform: translateY(-50%); background: radial-gradient(closest-side, var(--ap-glow), transparent);
}
.ap-hero-tx { max-width: 620px; animation: ap-rise 0.8s var(--ap-ease) both; }
.ap-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: color-mix(in srgb, var(--surface) 62%, transparent); border: 1px solid color-mix(in srgb, var(--ap-fg) 10%, transparent);
}
.ap-eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--sun-bottom); }
.ap-hero h1 { margin: 16px 0 0; font-size: clamp(38px, 7vw, 66px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; }
.ap-hero h1 b { font-weight: 800; background: var(--ap-display); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.ap-lede { margin: 16px 0 0; max-width: 540px; font-size: clamp(17px, 2.2vw, 20px); line-height: 1.45; color: var(--ap-muted); }
.ap-perks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; }
.ap-perks li {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: color-mix(in srgb, var(--surface) 62%, transparent); border: 1px solid color-mix(in srgb, var(--ap-fg) 10%, transparent);
}
.ap-art { position: relative; flex: none; display: grid; place-items: center; width: clamp(190px, 25vw, 290px); aspect-ratio: 1; }
.ap-art svg { position: relative; width: 56%; filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.26)); animation: ap-float 5.4s ease-in-out infinite; }
.ap-ring { position: absolute; inset: 8%; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--sun-bottom) 60%, transparent); animation: ap-spin 34s linear infinite; }
.ap-ring2 { inset: -6%; border-style: dotted; animation-duration: 54s; animation-direction: reverse; }
@media (max-width: 760px) { .ap-art { display: none; } }

@keyframes ap-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes ap-float { 0%, 100% { transform: translateY(-10px) rotate(-6deg); } 50% { transform: translateY(10px) rotate(6deg); } }
@keyframes ap-spin { to { transform: rotate(360deg); } }

.ap-noscript { margin: 20px 0 0; padding: 16px; border-radius: 14px; background: var(--surface-muted); font-weight: 600; }

/* ---------------------------------------------------------------- Yerleşim */
.ap-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 24px; }
.ap-shell.is-done { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
.ap-rail { position: sticky; top: 92px; display: grid; gap: 16px; }
.ap-steps { list-style: none; margin: 0; padding: 10px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.ap-steps li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; font-weight: 600; font-size: 15px; color: var(--muted); transition: background 0.3s, color 0.3s; }
.ap-steps li.is-current { background: var(--ap-tint); color: var(--text); }
.ap-steps li.is-done { color: var(--text); }
.ap-n {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 13px; font-weight: 800;
  background: var(--surface-muted); color: var(--muted); transition: background 0.3s, color 0.3s, transform 0.4s var(--ap-ease);
}
.is-current .ap-n { background: linear-gradient(135deg, var(--sun-top), var(--sun-bottom)); color: var(--ink); transform: scale(1.08); }
.is-done .ap-n { background: var(--ink); color: var(--sun); }
.ap-need { padding: 18px 20px; border-radius: 22px; background: var(--surface-muted); }
.ap-need h3 { margin: 0 0 8px; font-size: 15px; }
.ap-need ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
@media (max-width: 860px) {
  .ap-shell { grid-template-columns: minmax(0, 1fr); }
  .ap-rail { position: static; }
  .ap-steps { display: none; }
}

.ap-card { background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: clamp(20px, 4vw, 40px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08); }
.ap-prog { display: grid; gap: 8px; margin-bottom: 26px; color: var(--muted); font-size: 14px; font-weight: 600; }
.ap-bar { height: 6px; border-radius: 6px; background: var(--surface-muted); overflow: hidden; }
.ap-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sun-top), var(--sun-bottom)); transition: width 0.5s var(--ap-ease); }
.ap-bar-lg { height: 10px; margin-top: 20px; }
.ap-draft { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; padding: 12px 16px; border-radius: 14px; background: var(--ap-tint); font-size: 14px; }
.ap-draft button, .ap-sum-h button, .ap-remove { flex: none; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; padding: 4px 6px; }

/* ---------------------------------------------------------------- Adımlar */
.ap-step { display: none; }
.ap-step.is-active { display: block; animation: ap-step 0.5s var(--ap-ease) both; }
@keyframes ap-step { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
.ap-step header { margin-bottom: 24px; }
.ap-step h2 { margin: 0; font-size: clamp(25px, 3.4vw, 32px); line-height: 1.15; letter-spacing: -0.02em; outline: none; }
.ap-step header p { margin: 6px 0 0; color: var(--muted); }
.ap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.ap-span2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .ap-grid { grid-template-columns: minmax(0, 1fr); } }

.ap-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.ap-field > label, .ap-field > legend { display: block; margin-bottom: 7px; padding: 0; font-size: 15px; font-weight: 700; }
.ap-req { color: var(--ap-danger); margin-inline-start: 3px; }
.ap-input {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
  font: inherit; font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none;
}
textarea.ap-input { min-height: 96px; resize: vertical; }
.ap-input:focus { outline: none; border-color: var(--sun-bottom); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 32%, transparent); }
.ap-input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.has-err .ap-input { border-color: var(--ap-danger); }
.ap-select { position: relative; }
.ap-select::after {
  content: ''; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; pointer-events: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg);
}
.ap-select .ap-input { padding-right: 42px; }
.ap-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.ap-err { margin: 6px 0 0; font-size: 13.5px; font-weight: 600; color: var(--ap-danger); }
.ap-err:empty { display: none; }

.ap-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.ap-opt { position: relative; display: block; cursor: pointer; }
.ap-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ap-opt-in {
  display: flex; align-items: center; gap: 10px; height: 100%; padding: 14px; border-radius: 14px; border: 1.5px solid var(--border);
  transition: border-color 0.2s, background 0.2s, transform 0.3s var(--ap-ease);
}
.ap-opt-in i {
  flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.ap-opt-in b { display: block; font-size: 15px; }
.ap-opt-in small { display: block; color: var(--muted); font-size: 13px; }
.ap-opt:hover .ap-opt-in { border-color: var(--sun-bottom); }
.ap-opt input:checked + .ap-opt-in { border-color: var(--sun-bottom); background: var(--ap-tint); transform: translateY(-1px); }
.ap-opt input:checked + .ap-opt-in i { border-color: var(--sun-bottom); background: var(--sun-bottom); box-shadow: inset 0 0 0 3px var(--surface); }
.ap-opt input:focus-visible + .ap-opt-in { box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 32%, transparent); }
.has-err .ap-opt-in { border-color: var(--ap-danger); }

/* ---------------------------------------------------------------- Belgeler */
.ap-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 620px) { .ap-docs { grid-template-columns: minmax(0, 1fr); } }
.ap-drop {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 16px; border-radius: 16px; cursor: pointer;
  border: 1.5px dashed var(--border); background: var(--bg); transition: border-color 0.2s, background 0.2s, transform 0.3s var(--ap-ease);
}
.ap-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ap-drop:hover, .ap-drop.is-over { border-color: var(--sun-bottom); background: var(--ap-tint); }
.ap-drop.is-over { transform: scale(1.015); }
.ap-drop:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 32%, transparent); }
.has-err .ap-drop { border-color: var(--ap-danger); }
.ap-drop-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--ap-tint); color: var(--accent); }
.ap-drop-ic svg, .ap-thumb svg { width: 22px; height: 22px; }
.ap-drop-tx { min-width: 0; }
.ap-drop-tx b { display: block; font-size: 15px; }
.ap-drop-tx b em { margin-inline-start: 6px; font-size: 12px; font-style: normal; font-weight: 600; color: var(--muted); }
.ap-drop-tx small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.ap-file { display: flex; align-items: center; gap: 12px; min-height: 92px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--sun-bottom); background: var(--ap-tint); animation: ap-rise 0.4s var(--ap-ease) both; }
.ap-thumb { position: relative; flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--surface); color: var(--accent); }
.ap-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ap-thumb.has-img svg { display: none; }
.ap-file-tx { flex: 1; min-width: 0; }
.ap-file-tx b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14.5px; }
.ap-file-tx small { color: var(--muted); }

/* ---------------------------------------------------------------- Kontrol */
.ap-summary { display: grid; gap: 12px; margin-bottom: 24px; }
.ap-sum { padding: 16px 18px; border-radius: 16px; background: var(--surface-muted); }
.ap-sum-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ap-sum h3 { margin: 0; font-size: 16px; }
.ap-sum dl { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px 12px; margin: 0; font-size: 14.5px; }
.ap-sum dt { color: var(--muted); }
.ap-sum dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.ap-consents { gap: 14px; }
.ap-check { position: relative; display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 15px; line-height: 1.45; cursor: pointer; }
.ap-check input { position: absolute; width: 26px; height: 26px; margin: 0; opacity: 0; cursor: pointer; }
.ap-check i {
  flex: none; position: relative; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--border); background: var(--bg);
  transition: background 0.2s, border-color 0.2s;
}
.ap-check i::after {
  content: ''; position: absolute; left: 7px; top: 2px; width: 7px; height: 13px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0); transition: transform 0.25s var(--ap-ease);
}
.ap-check input:checked + i { background: var(--sun); border-color: var(--sun-bottom); }
.ap-check input:checked + i::after { transform: rotate(45deg) scale(1); }
.ap-check input:focus-visible + i { box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 32%, transparent); }
.has-err .ap-check i { border-color: var(--ap-danger); }
.ap-ts { margin-top: 22px; min-height: 65px; }
.ap-banner { margin: 20px 0 0; padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 14.5px; background: color-mix(in srgb, var(--ap-danger) 12%, transparent); color: var(--ap-danger); }

.ap-nav { display: flex; gap: 12px; justify-content: flex-end; margin-top: 30px; }
.ap-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform 0.3s var(--ap-ease), box-shadow 0.3s;
}
.ap-sun { color: var(--ink); background: linear-gradient(135deg, var(--sun-top), var(--sun-bottom)); box-shadow: 0 12px 28px rgba(255, 176, 31, 0.34); }
.ap-sun:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(255, 176, 31, 0.46); }
.ap-sun:active { transform: scale(0.97); }
.ap-ghost { background: var(--surface-muted); color: var(--text); margin-inline-end: auto; }
.ap-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .ap-nav .ap-sun { flex: 1; } }

/* ---------------------------------------------------------------- Sonuç */
.ap-sending, .ap-done { padding: 28px 4px; text-align: center; animation: ap-rise 0.5s var(--ap-ease) both; }
.ap-sending h2, .ap-done h2 { margin: 18px 0 6px; font-size: 28px; letter-spacing: -0.02em; outline: none; }
.ap-sending p, .ap-done p { margin: 6px auto 0; max-width: 460px; color: var(--muted); }
.ap-done p b { color: var(--text); letter-spacing: 0.06em; }
.ap-done .ap-btn { margin-top: 26px; }
.ap-spin { display: inline-block; width: 52px; height: 52px; border-radius: 50%; border: 5px solid var(--surface-muted); border-top-color: var(--sun-bottom); animation: ap-spin 0.9s linear infinite; }
.ap-tick { width: 92px; height: 92px; }
.ap-tick circle { fill: none; stroke: var(--sun-bottom); stroke-width: 4; stroke-dasharray: 190; stroke-dashoffset: 190; animation: ap-draw 0.7s var(--ap-ease) forwards; }
.ap-tick path { fill: none; stroke: var(--sun-bottom); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: ap-draw 0.45s 0.5s var(--ap-ease) forwards; }
@keyframes ap-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .ap-hero-tx, .ap-art svg, .ap-ring, .ap-step.is-active, .ap-file, .ap-sending, .ap-done { animation: none; }
  .ap-tick circle, .ap-tick path { animation: none; stroke-dashoffset: 0; }
}
