/* Online Randevu Formu - Zorunlu Soru Stilleri */
/* Bu CSS'i HTML sayfanızdaki <style> tag'ine ekleyin */

/* Soru başlığına zorunlu (*) işareti stili */
.soru-baslik::after {
    content: ' *';
    color: #dc3545;
    font-weight: 700;
}

/* Hata durumunda soru grubu stili */
.soru-grup.has-error {
    animation: shake 0.5s;
    position: relative;
}

/* Hata durumunda kırmızı çerçeve */
.soru-grup.has-error::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid #dc3545;
    border-radius: 12px;
    pointer-events: none;
    animation: pulse-border 1s ease-out;
}

/* Shake animasyonu */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Pulse border animasyonu */
@keyframes pulse-border {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Soru grubu container'ına padding ekle (hata border'ı için) */
.soru-grup {
    position: relative;
    padding: 8px;
    margin: 8px 0;
}

/* Randevu başlığı için ekstra stil */
.randevu-baslik::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00AEEF 0%, transparent 100%);
    margin-top: 8px;
}

/* SweetAlert2 custom button rengi */
.swal2-confirm {
    background-color: #00AEEF !important;
}

.swal2-confirm:hover {
    background-color: #0096d1 !important;
}

/* Seçili durum vurgusu */
.soru-secim.selected {
    outline: 2px solid #00AEEF;
    background: #f0f9ff;
    box-shadow: 0 2px 8px rgba(0, 174, 239, 0.15);
}

/* Hover efekti güçlendirme */
.soru-secim:hover {
    background: #f0f9ff;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Responsive için */
@media (max-width: 768px) {
    .soru-grup {
        padding: 6px;
    }

    .soru-grup.has-error::before {
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
    }
}

/* Loading state için */
.soru-grup.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success animation (opsiyonel - başarılı gönderimde) */
@keyframes success-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.soru-grup.success {
    animation: success-bounce 0.5s ease;
}

/* Focus state */
.soru-secim:focus-visible {
    outline: 2px solid #00AEEF;
    outline-offset: 2px;
}

/* Disabled state */
.soru-secim.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}
