/* Genel başvuru formu — Views/Form/_DynamicForm.cshtml */
.dform { --df-primary: var(--es-primary, #f24726); --df-accent: var(--es-accent, #16a34a); --df-text: var(--es-text, #0f172a);
         --df-muted: var(--es-text-muted, #64748b); --df-border: var(--es-border, #e2e8f0); --df-surface: var(--es-surface, #f8fafc); color: var(--df-text); }

.dform-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.dform-section { background: #fff; border: 1px solid var(--df-border); border-radius: 18px; padding: 24px; margin-bottom: 18px;
                 box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.dform-h { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 700; margin: 0 0 16px; }
.dform-step { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--df-primary); color: #fff; display: inline-flex;
              align-items: center; justify-content: center; font-size: .95rem; font-weight: 700; }
.dform-section-help { color: var(--df-muted); margin: -6px 0 16px 46px; }
.dform .form-label { font-weight: 600; margin-bottom: 6px; }
.dform-req { color: var(--df-primary); }
.dform .form-control, .dform .form-select { border-radius: 12px; }
.dform .form-control:focus, .dform .form-select:focus { border-color: var(--df-primary); box-shadow: 0 0 0 .2rem rgba(242, 71, 38, .15); }

.dform-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.dform-choice { position: relative; margin: 0; cursor: pointer; }
.dform-choice input { position: absolute; opacity: 0; pointer-events: none; }
.dform-choice span { display: inline-block; padding: 9px 15px; border: 1.5px solid var(--df-border); border-radius: 999px; background: #fff;
                     font-size: .95rem; line-height: 1.3; transition: all .15s; user-select: none; }
.dform-choice:hover span { border-color: #cbd5e1; }
.dform-choice input:checked + span { border-color: var(--df-accent); background: #f0fdf4; color: #14532d; font-weight: 600; }
.dform-choice input:checked + span::before { content: "✓ "; }
.dform-choice input:focus-visible + span { outline: 2px solid var(--df-primary); outline-offset: 2px; }
.dform-choices-radio .dform-choice span { border-radius: 12px; }

.dform-consent { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--df-border); border-radius: 12px;
                 background: var(--df-surface); cursor: pointer; margin: 0; width: 100%; }
.dform-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--df-accent); }
.dform-consent a { color: var(--df-primary); }

.dform-info { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 14px 16px; }
.dform-info strong { display: block; margin-bottom: 4px; }

.dform-err { color: #dc2626; font-size: .875rem; margin-top: 6px; min-height: 0; }
.dform-err:empty { display: none; }
.dform-invalid .form-control, .dform-invalid .form-select, .dform-invalid .dform-consent, .dform-invalid .dform-choice span { border-color: #fca5a5; }

.dform-final { border: 2px solid var(--df-primary); }
.dform-phone-row { display: flex; gap: 10px; flex-wrap: wrap; }
.dform-phone-row .input-group { flex: 1 1 240px; }
.dform-code-row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.dform-code-row[hidden] { display: none; }
.dform-code { flex: 1 1 180px; letter-spacing: .35em; font-weight: 700; text-align: center; }
.dform-verified { margin-top: 10px; color: #15803d; font-weight: 600; }
.dform-submit { background: var(--df-primary); border-color: var(--df-primary); color: #fff; font-weight: 700; padding: 14px; border-radius: 14px; }
.dform-submit:hover, .dform-submit:focus { background: var(--es-primary-600, #d93d1f); color: #fff; }
.dform-submit:disabled { background: #fdba9f; border-color: #fdba9f; color: #fff; opacity: 1; }

.dform-success { text-align: center; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 18px; padding: 36px 24px; }
.dform-success > i { font-size: 3rem; color: var(--df-accent); }
.dform-success h3 { font-weight: 800; margin: 8px 0; }
.dform-success-no { font-size: 1.1rem; margin: 0; }

.dform-closed { display: flex; gap: 14px; align-items: flex-start; background: var(--df-surface); border: 1px solid var(--df-border);
                border-radius: 18px; padding: 22px; }
.dform-closed > i { font-size: 1.6rem; color: var(--df-muted); }

@media (max-width: 576px) {
    .dform-section { padding: 18px 16px; border-radius: 14px; }
    .dform-section-help { margin-left: 0; }
    .dform-phone-row .btn, .dform-code-row .btn { width: 100%; }
}

/* Form sayfası videosu (Views/Form/_FormVideo.cshtml): bilgisayarda uzun 16:9, telefonda kısa dikey */
.fvideo .ratio { border-radius: 18px; overflow: hidden; box-shadow: 0 20px 40px rgba(15, 23, 42, .18); background: #000; }
.fvideo-dikey { position: relative; width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden;
                box-shadow: 0 20px 40px rgba(15, 23, 42, .2); background: #000; }
.fvideo-dikey iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
