/* ════════════════════════════════════════════════════════════════════
   MARKA BAŞVURU SAYFASI — premium 4-step form
   ════════════════════════════════════════════════════════════════════ */

.ba-page { padding: 32px 0 96px; }

.ba-hero {
    max-width: 720px;
    margin: 0 auto 36px;
    text-align: center;
}
.ba-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-secondary, #525252);
    background: #fafafa;
    border: 1px solid #ededed;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.ba-title {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary, #0a0a0a);
}
.ba-deck {
    margin: 0 auto 28px;
    max-width: 600px;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--text-secondary, #525252);
}
.ba-perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    text-align: left;
}
.ba-perks li {
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 13.5px;
    color: var(--text-secondary, #525252);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ba-perks strong {
    color: var(--text-primary, #0a0a0a);
    font-weight: 700;
    font-size: 14px;
}

/* Form shell */
.ba-form {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.02);
    overflow: hidden;
}

/* Step indicator */
.ba-steps {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 22px 28px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    gap: 14px;
    overflow-x: auto;
}
.ba-step {
    flex: 1 1 0;
    min-width: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #a3a3a3;
    transition: color .2s ease;
    white-space: nowrap;
}
.ba-step span {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #e5e5e5;
    color: #a3a3a3;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
}
.ba-step.is-active {
    color: var(--text-primary, #0a0a0a);
    font-weight: 600;
}
.ba-step.is-active span {
    background: var(--text-primary, #0a0a0a);
    border-color: var(--text-primary, #0a0a0a);
    color: #fff;
}
.ba-step.is-done {
    color: #16a34a;
}
.ba-step.is-done span {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}
.ba-step.is-done span::after {
    content: "✓";
    font-size: 14px;
}
.ba-step.is-done span > * { display: none; }

/* Validation summary */
.ba-error-summary {
    padding: 14px 28px;
    background: #fef2f2;
    border-bottom: 1px solid #fee2e2;
    color: #991b1b;
    font-size: 13.5px;
}
.ba-error-summary:empty { display: none; }
.ba-error-summary ul { margin: 0; padding-left: 18px; }

/* Panel */
.ba-panel { padding: 32px 28px; }
.ba-panel-head { margin-bottom: 22px; }
.ba-panel-head h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text-primary, #0a0a0a);
}
.ba-panel-head p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary, #525252);
}

/* Grid */
.ba-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.ba-field { display: flex; flex-direction: column; gap: 6px; }
.ba-field--full { grid-column: 1 / -1; }
.ba-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #0a0a0a);
    letter-spacing: -0.005em;
}
.ba-input,
.ba-select,
.ba-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e5e5;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--text-primary, #0a0a0a);
    background: #fafafa;
    transition: border-color .15s ease, background .15s ease;
}
.ba-input:focus,
.ba-select:focus,
.ba-textarea:focus {
    outline: none;
    border-color: var(--text-primary, #0a0a0a);
    background: #fff;
}
.ba-textarea { resize: vertical; min-height: 96px; }
.ba-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

/* File input */
.ba-file {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px dashed #d4d4d4;
    border-radius: 12px;
    background: #fafafa;
    font-family: inherit;
    font-size: 13.5px;
    color: #525252;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.ba-file:hover { border-color: var(--text-primary, #0a0a0a); }
.ba-file::file-selector-button {
    margin-right: 12px;
    padding: 7px 14px;
    border: none;
    border-radius: 8px;
    background: var(--text-primary, #0a0a0a);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}
.ba-hint {
    font-size: 12px;
    color: #a3a3a3;
}
.ba-hint.is-filled { color: #16a34a; }

/* Errors */
.ba-error {
    font-size: 12.5px;
    color: #dc2626;
    min-height: 14px;
}
.ba-error:empty { display: none; }

/* Actions */
.ba-actions {
    display: flex;
    gap: 10px;
    padding-top: 28px;
    margin-top: 8px;
    border-top: 1px solid #f5f5f5;
    align-items: center;
}
.ba-actions-spacer { flex: 1; }
.ba-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
}
.ba-btn:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}
.ba-btn--primary {
    background: var(--text-primary, #0a0a0a);
    color: #fff;
    margin-left: auto;
}
.ba-btn--primary:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.ba-btn--ghost {
    background: transparent;
    color: var(--text-secondary, #525252);
    border: 1px solid #e5e5e5;
}
.ba-btn--ghost:hover {
    color: var(--text-primary, #0a0a0a);
    border-color: var(--text-primary, #0a0a0a);
}
.ba-btn--cta {
    background: linear-gradient(135deg, #0a0a0a, #8b5cf6);
    box-shadow: 0 8px 22px rgba(37,99,235,.18);
}
.ba-btn--cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(37,99,235,.25);
}

/* Summary */
.ba-summary {
    background: #fafafa;
    border: 1px solid #ededed;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}
.ba-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
}
.ba-summary-row strong {
    color: var(--text-secondary, #525252);
    font-weight: 600;
}
.ba-summary-row span {
    color: var(--text-primary, #0a0a0a);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
    max-width: 60%;
}

/* Checkbox */
.ba-checks { display: flex; flex-direction: column; gap: 12px; }
.ba-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #ededed;
    border-radius: 12px;
    transition: border-color .15s ease, background .15s ease;
}
.ba-check:has(input:checked) {
    background: #f0f9ff;
    border-color: #8b5cf6;
}
.ba-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.ba-check-box {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1.5px solid #d4d4d4;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
    margin-top: 2px;
}
.ba-check:has(input:checked) .ba-check-box {
    background: #8b5cf6;
    border-color: #8b5cf6;
}
.ba-check:has(input:checked) .ba-check-box::after {
    content: "";
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
}
.ba-check-text {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-secondary, #525252);
}
.ba-check-text strong {
    color: var(--text-primary, #0a0a0a);
    font-weight: 600;
}

/* Success page */
.ba-success-shell {
    max-width: 600px;
    margin: 0 auto;
    padding: 48px 0;
}
.ba-success-card {
    text-align: center;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 24px;
    padding: 56px 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,.02);
}
.ba-success-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(16,163,74,.2);
}
.ba-success-title {
    margin: 14px 0 12px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary, #0a0a0a);
}
.ba-success-deck {
    margin: 0 auto 24px;
    max-width: 460px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-secondary, #525252);
}
.ba-success-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f5f5f5;
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--text-secondary, #525252);
    margin-bottom: 28px;
}
.ba-success-meta code {
    font-family: 'SF Mono', Menlo, monospace;
    font-weight: 700;
    color: var(--text-primary, #0a0a0a);
    background: #fff;
    padding: 2px 8px;
    border-radius: 6px;
}
.ba-success-cta {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Tablet */
@media (max-width: 1024px) {
    .ba-panel { padding: 28px 24px; }
    .ba-steps { padding: 18px 24px; gap: 12px; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .ba-grid { grid-template-columns: 1fr; gap: 18px; }
    .ba-panel { padding: 24px 22px; }
}

/* Mobile */
@media (max-width: 640px) {
    .ba-grid { grid-template-columns: 1fr; }
    .ba-panel { padding: 24px 20px; }
    .ba-steps { padding: 18px 20px; gap: 8px; }
    .ba-step { min-width: 80px; font-size: 12px; }
    .ba-step span { width: 24px; height: 24px; font-size: 11.5px; }
    .ba-actions { flex-direction: column-reverse; align-items: stretch; }
    .ba-btn { width: 100%; }
    .ba-actions-spacer { display: none; }
    .ba-success-card { padding: 40px 22px; }
}

/* Small mobile */
@media (max-width: 380px) {
    .ba-panel { padding: 20px 16px; }
    .ba-steps { padding: 14px 14px; gap: 6px; }
    .ba-step { min-width: 64px; font-size: 11px; }
    .ba-success-card { padding: 32px 16px; }
}
