body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.form-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 900px; /* Maksimum genişlik */
    width: 100%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}

.row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.full-width {
    width: 100%;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Padding'i genişliğe dahil et */
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.textarea-row .input-group {
    position: relative;
}

.textarea-row small {
    position: absolute;
    bottom: 5px;
    right: 5px;
    color: #999;
}

/* Dosya Yükleme ve Radio Butonları Stilleri */
.file-upload-section, .captcha-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* * ÖNEMLİ DEĞİŞİKLİK BURADA!
 * Radio butonlarını alt alta sıralamak için display: flex kaldırıldı.
 * Her bir radio seçeneği bir div içine alınmışsa bu kod alt alta sıralamayı garanti eder.
*/
.radio-group {
    display: block; /* Flex yerine blok yapıldı */
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Radio butonunu çevreleyen div'e alt boşluk ekler */
.radio-group > div {
    margin-bottom: 8px; 
}

.radio-group label {
    font-weight: normal;
    cursor: pointer;
    margin-left: 5px; /* Input ile label arasına boşluk */
}

.file-info {
    font-size: 0.9em;
    color: #888;
    margin-top: 5px;
}

.file-upload input[type="file"] {
    padding: 3px;
    border: 1px solid #ccc;
}

/* Gönderme Butonu */
.submit-button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    width: 100%;
    margin-top: 20px;
}

.submit-button:hover {
    background-color: #0056b3;
}

/* CAPTCHA Stili */
.captcha-section input[type="text"] {
    width: 50%;
    margin-top: 5px;
}

#captcha-text {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    letter-spacing: 5px;
    background-color: #eee;
    padding: 5px 10px;
    border-radius: 3px;
    display: inline-block;
}

/* Responsive Düzenleme (Mobil Uyum) */
@media (max-width: 768px) {
    .row {
        flex-direction: column; /* Mobil cihazlarda sütunları alt alta sırala */
        gap: 0;
    }

    .input-group {
        margin-bottom: 15px;
    }
    
    .file-upload-row {
        flex-direction: column;
    }

    .captcha-section input[type="text"] {
        width: 100%;
    }
    
    /* Önemli: Radio butonları zaten block olduğu için burada ekstra bir ayara gerek yok, 
       ancak emin olmak için ekleyebiliriz: */
    .radio-group {
        display: block;
    }
}

/* Logo kapsayıcısı için merkezleme ve boşluk */
.logo-header {
    text-align: center; /* Logoyu yatayda ortalar */
    margin-bottom: 25px; /* Form ile arasında boşluk bırakır */
    padding: 10px 0;
}

/* Logo görseli için responsive ayarlar */
.logo-header img {
    /* PHP içinde zaten tanımlandı, ancak burada standartlaştıralım */
    max-width: 328px; /* Orijinal genişliği aşmamasını sağlar */
    height: auto; /* Oranları korur */
    width: 100%; /* Küçük ekranlarda 100% genişlik kullanır */
}

/* Küçük ekranlarda form container'ının max-width'ini biraz daraltmak faydalı olabilir */
@media (max-width: 600px) {
    .form-container {
        padding: 15px;
    }
}

/* Zorunlu alan yıldızını kırmızı ve belirgin yapar */
.required-star {
    color: #FF0000; /* Kırmızı renk kodu */
    font-weight: bold;
    margin-left: 2px; /* İşaret ile kelime arasında küçük bir boşluk bırakır */
}