/**
 * NDE Başvuru Formu — Frontend Stilleri
 * NDE Eğitim Teması ile uyumlu tasarım.
 *
 * @version 1.0.0
 */

/* ═══════════ GENEL ═══════════ */
.nde-form-wrapper {
    max-width: 720px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.nde-form-header {
    text-align: center;
    margin-bottom: 32px;
}

.nde-form-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1B3A5C;
    margin: 0 0 8px;
}

.nde-form-donem {
    display: inline-block;
    background: #E8F4F8;
    color: #2C8C7B;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
}

.nde-form-subtitle {
    color: #6c757d;
    font-size: 15px;
    margin-top: 6px;
}

/* ═══════════ FORM UYARI (Kapalı dönem) ═══════════ */
.nde-form-uyari {
    text-align: center;
    padding: 48px 24px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.nde-form-uyari-icon { font-size: 48px; margin-bottom: 12px; }
.nde-form-uyari h3 { color: #1B3A5C; margin: 0 0 8px; }
.nde-form-uyari p { color: #6c757d; margin: 0; }

/* ═══════════ ADIMLAR ═══════════ */
.nde-step {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.nde-step:hover {
    border-color: #cbd5e1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.nde-step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #1B3A5C;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: 2px;
}

.nde-step-content {
    flex: 1;
    min-width: 0;
}

.nde-step-label {
    font-weight: 600;
    color: #1B3A5C;
    margin: 0 0 12px;
    font-size: 15px;
}

.nde-step-label .required {
    color: #DC3545;
}

.nde-optional {
    font-weight: 400;
    color: #94a3b8;
    font-size: 13px;
}

/* ═══════════ FORM ÖĞELERİ ═══════════ */
.nde-form-wrapper input[type="text"],
.nde-form-wrapper input[type="tel"],
.nde-form-wrapper input[type="email"],
.nde-form-wrapper textarea,
.nde-form-wrapper select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.nde-form-wrapper input:focus,
.nde-form-wrapper select:focus,
.nde-form-wrapper textarea:focus {
    outline: none;
    border-color: #2A5A8C;
    box-shadow: 0 0 0 3px rgba(42, 90, 140, 0.12);
}

.nde-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.nde-form-col {
    flex: 1;
}

.nde-form-col label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

/* ═══════════ RADIO & CHECKBOX ═══════════ */
.nde-radio-group,
.nde-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nde-radio,
.nde-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.nde-radio:hover,
.nde-checkbox:hover {
    border-color: #2A5A8C;
    background: #f0f7ff;
}

.nde-radio input:checked + *,
.nde-checkbox input:checked + * {
    color: #1B3A5C;
}

.nde-radio input,
.nde-checkbox input {
    accent-color: #1B3A5C;
}

/* ═══════════ OTP GRUPLARI ═══════════ */
.nde-otp-group {
    margin-bottom: 16px;
}

.nde-otp-group > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.nde-input-with-button {
    display: flex;
    gap: 8px;
}

.nde-input-with-button input {
    flex: 1;
}

.nde-otp-verify {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.nde-otp-verify input {
    max-width: 160px;
    letter-spacing: 4px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

/* ═══════════ DOSYA YÜKLEMELERİ ═══════════ */
.nde-file-input {
    position: relative;
}

.nde-file-input input[type="file"] {
    padding: 10px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #fafbfc;
    cursor: pointer;
    width: 100%;
}

.nde-file-input input[type="file"]:hover {
    border-color: #2A5A8C;
    background: #f0f7ff;
}

.nde-file-hint {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.nde-conditional-file {
    margin: 10px 0 12px 28px;
    padding: 12px;
    background: #fafbfc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.nde-conditional-file label {
    display: block;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 6px;
}

/* ═══════════ BUTONLAR ═══════════ */
.nde-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.nde-btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

.nde-btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.nde-btn-primary {
    background: #1B3A5C;
    color: #fff;
}
.nde-btn-primary:hover {
    background: #0F2440;
}

.nde-btn:not(.nde-btn-primary):not(.nde-btn-outline) {
    background: #2C8C7B;
    color: #fff;
}
.nde-btn:not(.nde-btn-primary):not(.nde-btn-outline):hover {
    background: #237566;
}

.nde-btn-outline {
    background: transparent;
    border: 1px solid #1B3A5C;
    color: #1B3A5C;
}
.nde-btn-outline:hover {
    background: #1B3A5C;
    color: #fff;
}

.nde-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ═══════════ HATA / BAŞARI MESAJLARI ═══════════ */
.nde-error {
    color: #DC3545;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}
.nde-error.active,
.nde-error:not(:empty) {
    display: block;
}

.nde-success {
    color: #28A745;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 600;
}

.nde-message {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    font-size: 15px;
}
.nde-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.nde-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ═══════════ RESPONSİVE ═══════════ */
@media (max-width: 600px) {
    .nde-step {
        flex-direction: column;
        gap: 10px;
        padding: 16px;
    }
    .nde-step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .nde-form-row {
        flex-direction: column;
        gap: 8px;
    }
    .nde-radio-group,
    .nde-checkbox-group {
        flex-direction: column;
    }
    .nde-input-with-button {
        flex-direction: column;
    }
    .nde-otp-verify {
        flex-direction: column;
        align-items: stretch;
    }
    .nde-otp-verify input {
        max-width: 100%;
    }
}
