/* Anket Sayfası Stilleri */

.anket-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
}

.anket-header {
    text-align: center;
    margin-bottom: 40px;
}

.anket-gorsel {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.anket-baslik {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
}

.anket-aciklama {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

/* Sticky: Başlık + İlerleme */
.anket-sticky {
    position: sticky;
    top: 80px;
    z-index: 100;
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.anket-sticky .anket-baslik {
    font-size: 22px;
    margin: 0 0 15px 0;
    text-align: center;
}

.anket-progress {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--anket-renk, #007bff) 0%, var(--anket-renk-hover, #0056b3) 100%);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

/* KVKK */
.kvkk-container {
    border-left: 4px solid var(--anket-renk, #007bff);
}

.kvkk-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.kvkk-checkbox-label input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.kvkk-checkbox-fake {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    flex-shrink: 0;
    background: white;
}

.kvkk-checkbox-label input:checked + .kvkk-checkbox-fake {
    background: var(--anket-renk, #007bff);
    border-color: var(--anket-renk, #007bff);
}

.kvkk-checkbox-label input:checked + .kvkk-checkbox-fake::after {
    content: '✓';
    display: block;
    color: white;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
}

.kvkk-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.kvkk-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.kvkk-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.kvkk-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.kvkk-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.kvkk-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
}

.kvkk-modal-close:hover {
    color: #333;
}

.kvkk-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.6;
    color: #444;
}

.kvkk-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #eee;
    text-align: center;
}

.kvkk-modal-ok-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--anket-renk, #007bff) 0%, var(--anket-renk-hover, #0056b3) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.kvkk-modal-ok-btn:hover {
    opacity: 0.95;
}

.kvkk-container .soru-numara {
    display: none;
}

.kvkk-metni {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.kvkk-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.kvkk-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    accent-color: var(--anket-renk, #007bff);
}

/* Soru Kartları */
.soru-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.soru-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.soru-card-belirgin {
    background: linear-gradient(135deg, var(--anket-renk-belirgin, rgba(0, 123, 255, 0.14)) 0%, #f0f4ff 50%, #e6ecff 100%);
    border: 1px solid var(--anket-renk-border, rgba(0, 123, 255, 0.35));
    box-shadow: 0 4px 20px var(--anket-renk-shadow, rgba(0, 123, 255, 0.12)), 0 2px 8px rgba(0,0,0,0.06);
    border-radius: 12px;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.soru-card-belirgin:hover {
    box-shadow: 0 8px 28px var(--anket-renk-shadow, rgba(0, 123, 255, 0.18)), 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--anket-renk, #007bff);
}

.soru-numara {
    display: inline-block;
    background: linear-gradient(135deg, var(--anket-renk, #007bff) 0%, var(--anket-renk-hover, #0056b3) 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
}

.soru-metni {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

.zorunlu-isaret {
    color: #dc3545;
    font-size: 24px;
    margin-left: 5px;
}

/* Seçenekler */
.soru-cevap {
    margin-top: 20px;
}

.secenek-label {
    display: block;
    padding: 15px 20px;
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
}

.secenek-label:hover {
    border-color: var(--anket-renk, #007bff);
    background: var(--anket-renk-light, #f0f4ff);
}

.secenek-label input[type="radio"],
.secenek-label input[type="checkbox"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.secenek-label input[type="radio"]:checked,
.secenek-label input[type="checkbox"]:checked {
    accent-color: var(--anket-renk, #007bff);
}

.secenek-label:has(input:checked) {
    border-color: var(--anket-renk, #007bff);
    background: var(--anket-renk-light, rgba(0, 123, 255, 0.1));
}

.secenek-label span {
    font-size: 16px;
    color: #333;
}

/* Form Elemanları */
.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--anket-renk, #007bff);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.karakter-sayac {
    text-align: right;
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.telefon-input-wrapper .form-input.telefon-hata-input {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Aralık Seçimi */
.aralik-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aralik-group .form-input {
    flex: 1;
}

/* Puan Sistemi */
.puan-container {
    text-align: center;
}

.puan-etiket {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
}

.puan-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.puan-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    transition: all 0.2s ease;
}

.puan-btn:hover {
    transform: scale(1.1);
    border-color: var(--anket-renk, #007bff);
    background: var(--anket-renk-light, #f0f4ff);
}

.puan-btn.selected {
    background: linear-gradient(135deg, var(--anket-renk, #007bff) 0%, var(--anket-renk-hover, #0056b3) 100%);
    color: white;
    border-color: transparent;
    transform: scale(1.15);
}

/* Footer */
.anket-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.btn-submit {
    background: linear-gradient(135deg, var(--anket-renk, #007bff) 0%, var(--anket-renk-hover, #0056b3) 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.loading-spinner i {
    margin-bottom: 20px;
}

.loading-spinner p {
    font-size: 18px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .anket-container {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .anket-baslik {
        font-size: 24px;
    }
    
    .soru-card {
        padding: 20px;
    }
    
    .soru-metni {
        font-size: 18px;
    }
    
    .puan-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .aralik-group {
        flex-direction: column;
    }
}

