/* ═══════════════════════════════════════════
   KFE Agent Apply Form — esf-agent-apply.css
   ═══════════════════════════════════════════ */

.esf-apply-wrap {
    max-width: 660px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Başlık ─────────────────────────────── */
.esf-apply-header {
    text-align: center;
    margin-bottom: 32px;
}
.esf-apply-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}
.esf-apply-header p {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
}

/* ── Hata kutusu ────────────────────────── */
.esf-apply-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    color: #dc2626;
    font-size: 13px;
}
.esf-apply-errors p { margin: 0 0 4px; }
.esf-apply-errors p:last-child { margin: 0; }

/* ── Section kartı ──────────────────────── */
.esf-apply-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ── Section başlık ─────────────────────── */
.esf-apply-section-title {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}
.esf-apply-optional {
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
    margin-left: 4px;
}

/* ── İkonlar ────────────────────────────── */
.esf-apply-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.esf-apply-icon svg { width: 17px; height: 17px; }
.esf-icon-person { background: #fff7ed; color: #F97316; }
.esf-icon-person svg { stroke: #F97316; }
.esf-icon-work   { background: #eff6ff; color: #3b82f6; }
.esf-icon-work svg { stroke: #3b82f6; }
.esf-icon-doc    { background: #f0fdf4; color: #16a34a; }
.esf-icon-doc svg { stroke: #16a34a; }
.esf-icon-msg    { background: #faf5ff; color: #7c3aed; }
.esf-icon-msg svg { stroke: #7c3aed; }
.esf-icon-clock  { background: #fefce8; color: #ca8a04; }
.esf-icon-clock svg { stroke: #ca8a04; }
.esf-icon-shield { background: #fff1f2; color: #e11d48; }
.esf-icon-shield svg { stroke: #e11d48; }

/* ── Field ──────────────────────────────── */
.esf-apply-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 200px;
}
.esf-apply-full { flex: 1 1 100%; }
.esf-apply-row  { display: contents; }

.esf-apply-field label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.esf-apply-field label span,
.esf-apply-field label em {
    color: #F97316;
    font-style: normal;
}

.esf-apply-field input[type=text],
.esf-apply-field input[type=email],
.esf-apply-field input[type=tel],
.esf-apply-field select,
.esf-apply-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.esf-apply-field select {
    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='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.esf-apply-field input:focus,
.esf-apply-field select:focus,
.esf-apply-field textarea:focus {
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}
.esf-apply-field textarea { resize: vertical; min-height: 120px; }
.esf-apply-field small { font-size: 11px; color: #9ca3af; }

/* ── Char counter ────────────────────────── */
.esf-char-count {
    text-align: right;
    font-size: 12px;
    color: #9ca3af;
    margin-top: -4px;
}

/* ── Radio ──────────────────────────────── */
.esf-apply-radios {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.esf-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}
.esf-radio input[type=radio] {
    width: 18px; height: 18px;
    accent-color: #F97316;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Dosya upload ────────────────────────── */
.esf-file-input {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    background: #fafafa;
}
.esf-file-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
    color: #ea580c;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}
.esf-file-btn:hover { background: #ffedd5; }
.esf-file-name {
    font-size: 12px;
    color: #9ca3af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Checkbox ────────────────────────────── */
.esf-apply-checks {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.esf-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}
.esf-checkbox input[type=checkbox] { display: none; }
.esf-checkmark {
    width: 18px; height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all .15s;
    position: relative;
    background: #fff;
}
.esf-checkbox input:checked + .esf-checkmark {
    background: #F97316;
    border-color: #F97316;
}
.esf-checkbox input:checked + .esf-checkmark::after {
    content: '';
    position: absolute;
    left: 4px; top: 1px;
    width: 6px; height: 10px;
    border: 2px solid white;
    border-top: none; border-left: none;
    transform: rotate(45deg);
}
.esf-checkbox a { color: #F97316; text-decoration: underline; }
.esf-checkbox em { color: #F97316; font-style: normal; }

/* ── Submit ──────────────────────────────── */
.esf-apply-submit {
    text-align: center;
    margin-top: 8px;
}
.esf-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #F97316;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 40px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background .15s, transform .15s;
    box-shadow: 0 4px 16px rgba(249,115,22,.35);
}
.esf-apply-btn:hover {
    background: #ea580c;
    transform: translateY(-2px);
}
.esf-apply-note {
    margin-top: 12px;
    font-size: 13px;
    color: #9ca3af;
}

/* ── Başarı ──────────────────────────────── */
.esf-apply-success {
    text-align: center;
    padding: 60px 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    max-width: 500px;
    margin: 0 auto;
}
.esf-apply-success-icon { font-size: 48px; margin-bottom: 16px; }
.esf-apply-success h3 { font-size: 22px; font-weight: 800; color: #16a34a; margin-bottom: 8px; }
.esf-apply-success p  { color: #6b7280; font-size: 15px; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 600px) {
    .esf-apply-section { padding: 18px; gap: 14px; }
    .esf-apply-field   { flex: 1 1 100%; }
    .esf-apply-btn     { width: 100%; justify-content: center; }
}
