/* Survey Container */
.elbanby-survey-container {
    max-width: 1300px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #f6faff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Survey Title */
.survey-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f2f5;
    font-weight: 700;
}

/* Survey Description */
.survey-description {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Before/After Text */
.survey-before-text,
.survey-after-text {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-right: 4px solid #3498db;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Questions Container */
.survey-questions {
    margin: 2rem 0;
}

/* Question Styling */
.survey-question {
    padding: 1.8rem;
    margin-bottom: 1.8rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.survey-question:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.survey-question.even {
    background: #fcfdff;
}

/* Question Header */
.question-header {
    display: flex;
    align-items: CENTER;
    margin-bottom: 1.5rem;
}

.question-number {
    background: #55bbff;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-left: 15px;
    flex-shrink: 0;
}

.question-text {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0px !important;
}

/* Answers Container */
.question-answers {
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); */
    gap: 12px;
}

/* Answer Styling */
.survey-answer {
    margin-bottom: 0.5rem;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.2rem;
    background: #f8fafd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #eef2f7;
    position: relative;
}

.answer-option:hover {
    background: #f0f7ff;
    border-color: #d1e3f8;
}

.answer-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.answer-checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #bdc3c7;
    border-radius: 50%;
    margin-left: 15px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.answer-option:hover .answer-checkmark {
    border-color: #3498db;
}

.answer-input:checked ~ .answer-checkmark {
    background-color: #3498db;
    border-color: #3498db;
}

.answer-input:checked ~ .answer-checkmark::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.answer-text {
    font-size: 1rem;
    color: #34495e;
}

/* Submit Button */
.survey-submit-container {
    text-align: center;
    margin-top: 2.5rem;
}

.survey-submit-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.survey-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, #3498db);
}

.survey-submit-btn:active {
    transform: translateY(-1px);
}

/* No Questions Styling */
.survey-no-questions {
    text-align: center;
    padding: 3rem;
    background: #f9f9f9;
    border-radius: 10px;
    border: 2px dashed #eee;
    margin: 2rem 0;
}

.no-questions-icon {
    font-size: 3.5rem;
    color: #bdc3c7;
    margin-bottom: 1.5rem;
}

.no-questions-text {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 0;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 10px;
    background: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    width: 0%;
    transition: width 0.5s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .elbanby-survey-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .question-answers {
        grid-template-columns: 1fr;
    }
    
    .survey-question {
        padding: 1.3rem;
    }

    .elbanby-content{
        padding: 10px !important;
    }

    .factor{
        padding: 5px !important;
        margin-bottom: 16px !important;
    }

    .card-body{
        padding: 5px !important;
    }

    .part{
        padding: 5px !important;
    }

    .question{
        padding: 5px !important;
    }

    .answer{
        padding: 5px !important;
    }

    .remove-factor, .remove-part, .remove-question, .remove-answer{
        width: 23px !important;
        height: 23px !important;
        margin-right: 3px !important;
    }

    .answer-title, .answer-points{
        padding: 3px 5px !important;
        margin-right: 3px !important;
        width: 50px !important;
    }

    .add-factor{
        margin-top: 10px !important;
    }

    h2{
        font-size: 20px !important;
    }

    h3{
        font-size: 15px !important;
    }
}

/* Success Message */
.survey-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.survey-success-message i {
    color: #28a745;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.survey-success-message p {
    color: #155724;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}