/* İkamet Bilgi Formu — bağımsız stil dosyası (framework gerektirmez) */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    background: #eef2f7;
    color: #1f2937;
    line-height: 1.5;
}

.form-kapsayici {
    max-width: 640px;
    margin: 40px auto;
    padding: 0 16px;
}

form {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

h1 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    color: #0f2a5f;
}

.aciklama {
    margin: 0 0 24px;
    font-size: 0.925rem;
    color: #64748b;
}

.zorunlu {
    color: #dc2626;
}

.alan {
    margin-bottom: 18px;
}

.alan-grup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="text"],
input[type="date"],
select {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.95rem;
    font-family: inherit;
    color: inherit;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.hatali input,
.hatali select,
.hatali .dosya-alani {
    border-color: #dc2626;
}

.dosya-alani {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.dosya-alani input[type="file"] {
    font-size: 0.85rem;
    max-width: 55%;
}

.dosya-adi {
    font-size: 0.8rem;
    color: #64748b;
    word-break: break-all;
}

.ipucu {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: #94a3b8;
}

.hata {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #dc2626;
    min-height: 1em;
}

.onay-alani {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.onay {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 400;
    font-size: 0.85rem;
    color: #475569;
    cursor: pointer;
    margin-bottom: 0;
}

.onay input {
    margin-top: 3px;
    flex-shrink: 0;
}

button[type="submit"] {
    width: 100%;
    margin-top: 8px;
    padding: 13px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: #1d4ed8;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

button[type="submit"]:hover:not(:disabled) {
    background: #1e40af;
}

button[type="submit"]:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}

.mesaj {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.mesaj.basari {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.mesaj.hata {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    min-height: 0;
}

@media (max-width: 520px) {
    form {
        padding: 20px;
    }

    .alan-grup {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dosya-alani {
        flex-direction: column;
        align-items: flex-start;
    }

    .dosya-alani input[type="file"] {
        max-width: 100%;
    }
}
