/* ===================================
   GENEL STILLER
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

/* ===================================
   ANKET CONTAINER
   =================================== */
.anket-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* ===================================
   ANKET HEADER
   =================================== */
.anket-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.anket-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.anket-header .aciklama {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

/* ===================================
   İLERLEME BARI
   =================================== */
.ilerleme-container {
    background: #f8f9fa;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
}

.ilerleme-bar {
    width: 100%;
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.ilerleme-dolgu {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.ilerleme-dolgu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ilerleme-metin {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

/* ===================================
   UYARI KUTUSU
   =================================== */
.uyari-kutusu {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
    padding: 15px 20px;
    margin: 20px 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.uyari-kutusu span:first-child {
    font-size: 24px;
}

/* ===================================
   ANKET İÇERİK
   =================================== */
.anket-icerik {
    padding: 30px;
}

/* Honeypot - Bot tuzağı */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* ===================================
   BÖLÜM BAŞLIK
   =================================== */
.bolum-baslik {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 20px 25px;
    margin: 30px 0 20px 0;
    border-radius: 12px;
    border-left: 5px solid #007bff;
}

.bolum-baslik:first-child {
    margin-top: 0;
}

.bolum-baslik h2 {
    color: #0056b3;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.bolum-baslik p {
    color: #495057;
    font-size: 15px;
    margin: 0;
}

/* ===================================
   SORU KARTI
   =================================== */
.soru-karti {
    background: white;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.soru-karti:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.1);
}

.soru-karti.invalid {
    border-color: #dc3545;
    background: #fff5f5;
}

/* Soru Başlık */
.soru-baslik {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.soru-no {
    font-weight: 700;
    color: #007bff;
    font-size: 18px;
    flex-shrink: 0;
    min-width: 30px;
}

.soru-metni {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    line-height: 1.5;
}

.zorunlu-isaret {
    color: #dc3545;
    font-weight: bold;
    margin-left: 3px;
}

.soru-aciklama {
    color: #6c757d;
    font-size: 14px;
    margin: 10px 0 15px 40px;
    font-style: italic;
}

/* ===================================
   FORM GRUP
   =================================== */
.form-grup {
    margin-top: 15px;
}

/* ===================================
   SEÇENEK GRUBU (Radio & Checkbox)
   =================================== */
.secenek-grup {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.secenek-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}

.secenek-item:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateX(3px);
}

.secenek-item.selected {
    background: #e7f3ff;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.15);
}

.secenek-item input[type="radio"],
.secenek-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.secenek-box {
    width: 22px;
    height: 22px;
    border: 2px solid #007bff;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s;
    background: white;
}

input[type="radio"] + .secenek-box {
    border-radius: 50%;
}

input:checked + .secenek-box {
    background: #007bff;
    border-color: #0056b3;
}

input:checked + .secenek-box::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.secenek-metin {
    flex: 1;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* Diğer Input */
.diger-input {
    margin-top: 10px;
    margin-left: 34px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.diger-input .form-input {
    width: 100%;
}

/* ===================================
   LİKERT TABLO TASARIMI
   =================================== */
.likert-tablo {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.likert-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 2px solid #dee2e6;
}

.likert-table thead th {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #dee2e6;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.likert-table tbody td {
    padding: 20px 15px;
    text-align: center;
    border: 1px solid #dee2e6;
    background: white;
    transition: background 0.3s;
}

.likert-table tbody td:hover {
    background: #f8f9fa;
}

.radio-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 5px;
}

.radio-cell input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-mark {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid #007bff;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s;
    background: white;
}

.radio-cell:hover .radio-mark {
    border-color: #0056b3;
    transform: scale(1.1);
}

.radio-cell input[type="radio"]:checked + .radio-mark {
    background: #007bff;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.2);
}

.radio-cell input[type="radio"]:checked + .radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
}

/* ===================================
   FORM INPUT & TEXTAREA
   =================================== */
.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0,123,255,0.1);
    background: #f8f9ff;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* ===================================
   FORM YARDIM METNİ
   =================================== */
.form-yardim {
    color: #6c757d;
    font-size: 13px;
    margin-top: 8px;
    display: block;
    font-style: italic;
}

/* ===================================
   HATA METNİ
   =================================== */
.error-text {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    display: none;
    font-weight: 600;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ===================================
   GÜVENLİK ALANI (CAPTCHA)
   =================================== */
.guvenlik-alani {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    border: 2px solid #ffc107;
    text-align: center;
}

.guvenlik-alani h3 {
    color: #f57c00;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.guvenlik-alani > p {
    color: #6c757d;
    margin-bottom: 20px;
}

.matematik-soru {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 32px;
    font-weight: 700;
    color: #495057;
}

.matematik-soru .sayi,
.matematik-soru .operator,
.matematik-soru .esittir {
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 70px;
    text-align: center;
}

.captcha-input {
    width: 100px;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    padding: 15px;
    border: 3px solid #007bff;
    border-radius: 12px;
    background: white;
    transition: all 0.3s;
}

.captcha-input:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 4px rgba(0,123,255,0.2);
}

/* ===================================
   HATA MESAJI
   =================================== */
.hata-mesaji {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 10px;
    display: none;
    font-weight: 600;
    text-align: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   BUTON CONTAINER
   =================================== */
.buton-container {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.gonder-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 18px 60px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gonder-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,123,255,0.5);
}

.gonder-btn:active {
    transform: translateY(-1px);
}

.gonder-btn:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

.zorunlu-bilgi {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    margin-top: 20px;
    font-weight: 500;
}

/* ===================================
   RESPONSİVE TASARIM
   =================================== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .anket-header {
        padding: 30px 20px;
    }
    
    .anket-header h1 {
        font-size: 22px;
    }
    
    .anket-icerik {
        padding: 20px;
    }
    
    .soru-karti {
        padding: 20px 15px;
    }
    
    .soru-baslik {
        flex-direction: column;
        gap: 5px;
    }
    
    .soru-no {
        font-size: 16px;
    }
    
    .soru-metni {
        font-size: 15px;
    }
    
    .likert-table {
        font-size: 12px;
    }
    
    .likert-table thead th {
        padding: 10px 5px;
        font-size: 11px;
    }
    
    .likert-table tbody td {
        padding: 12px 8px;
    }
    
    .radio-mark {
        width: 24px;
        height: 24px;
        border-width: 2px;
    }
    
    .matematik-soru {
        font-size: 24px;
        gap: 12px;
    }
    
    .matematik-soru .sayi,
    .matematik-soru .operator,
    .matematik-soru .esittir {
        padding: 10px 15px;
        min-width: 50px;
        font-size: 24px;
    }
    
    .captcha-input {
        width: 80px;
        font-size: 24px;
        padding: 10px;
    }
    
    .gonder-btn {
        padding: 15px 40px;
        font-size: 16px;
    }
}

/* ===================================
   PRINT STILI
   =================================== */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .anket-container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .ilerleme-container,
    .gonder-btn,
    .guvenlik-alani {
        display: none;
    }
}