/**
 * Müşteri Memnuniyet Anketi - CSS
 */

/* Ana Container */
.anket-page {
    padding: 60px 0;
    min-height: 70vh;
}

.anket-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

/* Başlık */
.anket-header {
    margin-bottom: 5px;

}

.anket-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ff5e14;
    margin-bottom: 10px;
}

/* Başlangıç Ekranı */
.anket-start {
    text-align: center;
    padding: 60px 20px;
}

.start-message {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.anket-basla-btn {
    font-size: 1.2rem;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: #ff5e14;
    color: #ffffff;
    border: none;
}

.anket-basla-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 94, 20, 0.4);
    background-color: #e65412;
}

/* Kişisel Bilgi Formu */
.anket-personal-info {
    animation: fadeIn 0.3s ease;
}

.personal-info-content {
    padding: 20px 0;
}

.personal-info-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    text-align: center;
}

.personal-info-description {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.personal-info-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 5px;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group label .required {
    color: #e62e2d;
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
}

.form-control:focus {
    outline: none;
    border-color: #e62e2d;
    box-shadow: 0 0 0 3px rgba(230, 46, 45, 0.1);
}

.form-control::placeholder {
    color: #999;
}

.form-control.error {
    border-color: #e62e2d;
    background-color: #fff5f5;
}

.error-message {
    display: block;
    color: #e62e2d;
    font-size: 0.875rem;
    margin-top: 5px;
    min-height: 20px;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.form-navigation .btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #ff5e14;
    color: #ffffff;
    border: none;
}

.form-navigation .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 94, 20, 0.3);
    background-color: #e65412;
}

/* İlerleme Çubuğu */
.anket-progress-container {
    margin-bottom: 40px;
}

.progress-info {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.progress {
    height: 8px;
    border-radius: 10px;
    background: #f0f0f0;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #e62e2d, #ff6b6b);
    transition: width 0.5s ease;
    height: 100%;
}

/* Sorular */
.anket-question {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
}

/* Cevap Seçenekleri */
.question-answers {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.answer-option {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.answer-option:hover {
    border-color: #e62e2d;
    background: #fff5f5;
    transform: translateX(5px);
}

.answer-option.selected {
    border-color: #e62e2d;
    background: #fff5f5;
}

.answer-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.answer-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    flex: 1;
}

.answer-check {
    width: 24px;
    height: 24px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.answer-option.selected .answer-check {
    background: #e62e2d;
    border-color: #e62e2d;
}

.answer-check i {
    color: #fff;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.answer-option.selected .answer-check i {
    opacity: 1;
}

/* Açık Uçlu Sorular (Textarea) */
.question-textarea {
    margin-bottom: 40px;
}

.anket-textarea {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
    resize: vertical;
    min-height: 120px;
}

.anket-textarea:focus {
    outline: none;
    border-color: #e62e2d;
    box-shadow: 0 0 0 3px rgba(230, 46, 45, 0.1);
}

.anket-textarea::placeholder {
    color: #999;
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.875rem;
    color: #999;
    margin-top: 8px;
}

.char-counter .current-chars {
    font-weight: 600;
    color: #666;
}

.char-counter.limit-warning .current-chars {
    color: #ff9800;
}

.char-counter.limit-exceeded .current-chars {
    color: #e62e2d;
}

/* Navigasyon Butonları */
.question-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
}

.question-navigation .btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #ff5e14;
    color: #ffffff;
    border: none;
}

.question-navigation .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.question-navigation .btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 94, 20, 0.3);
    background-color: #e65412;
}

/* Teşekkür Ekranı */
.anket-thank-you {
    text-align: center;
    padding: 80px 20px;
    position: relative;
    z-index: 10;
}

.success-icon {
    font-size: 80px;
    color: #28a745;
    margin-bottom: 30px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.thank-you-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.thank-you-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Yükleniyor */
.anket-loading {
    text-align: center;
    padding: 80px 20px;
    position: relative;
    z-index: 5;
}

.anket-loading .spinner-border {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.anket-loading p {
    font-size: 1.1rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .anket-container {
        padding: 30px 20px;
    }

    .anket-title {
        font-size: 1.5rem;
    }

    .question-text {
        font-size: 1.2rem;
    }

    .answer-text {
        font-size: 1rem;
    }

    .question-navigation {
        flex-direction: column;
    }

    .question-navigation .btn {
        width: 100%;
    }

    /* Kişisel Bilgi Formu - Mobile */
    .personal-info-title {
        font-size: 1.5rem;
    }

    .personal-info-description {
        font-size: 0.95rem;
    }

    .form-navigation {
        flex-direction: column;
    }

    .form-navigation .btn {
        width: 100%;
    }
}

/* Pasif/Boş Durumlar */
.anket-pasif i,
.anket-bos i {
    display: block;
}

.anket-pasif h2,
.anket-bos h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.anket-pasif p,
.anket-bos p {
    font-size: 1.1rem;
    color: #666;
}