/* Survey Plugin Frontend Styles */

.survey-section-frontend input {
    width: max-content !important;
}

/* Survey Header */
.survey-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #a8be57;
}

.survey-header h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 28px;
}

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

/* Personal Information Section */
.survey-personal-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
}

.survey-personal-info h3 {
    margin: 0 0 20px 0;
    color: #556fae;
    font-size: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-field input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-field input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.form-field input.error {
    border-color: #dc3232;
}

.required {
    color: #dc3232;
}

/* Survey Sections */
.survey-section-frontend {
    margin-bottom: 40px;
    padding: 25px;
    background: #f5f5f5;
    border-radius: 6px;
    border-left: 4px solid #556fae;
}

.section-heading {
    margin: 0 0 20px 0;
    color: #556fae;
    font-size: 22px;
    font-weight: 600;
}

/* Questions */
.questions-list {
    margin-bottom: 20px;
}

.question-item {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
}

.question-text {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.question-number {
    display: inline-block;
    min-width: 30px;
    font-weight: 600;
    color: #0073aa;
}

.question-options {
    display: flex;
    gap: 20px;
    padding-left: 30px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
    min-width: 100px;
    justify-content: center;
}

.radio-label:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
    color: #0073aa;
    font-weight: 600;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: #0073aa;
    background: #e6f2ff;
}

/* Section Score Display */
.section-score-display {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
    text-align: center;
}

.section-score-text {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.score-value {
    color: #46b450;
    font-size: 20px;
}

/* Submit Section */
.survey-submit {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
}

.survey-submit-btn {
    background: #a8be57;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.survey-submit-btn:hover {
    background: #005a87;
}

.survey-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Messages */
.survey-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.survey-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.survey-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Success Message */
.survey-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #46b450;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 20px;
}

.survey-success h3 {
    margin: 0 0 15px 0;
    color: #46b450;
    font-size: 28px;
}

.survey-success > p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.final-score {
    margin-top: 30px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.final-score > p {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.score-display {
    background: #556fae;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
}

.score-number {
    font-size: 48px;
    font-weight: bold;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .survey-form-container {
        margin: 20px;
        padding: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .survey-header h2 {
        font-size: 24px;
    }
    
    .section-heading {
        font-size: 20px;
    }
    
    .question-options {
        flex-direction: column;
        padding-left: 0;
    }
    
    .radio-label {
        width: 100%;
    }
    
    .survey-submit-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .score-number {
        font-size: 36px;
    }
}

@media screen and (max-width: 480px) {
    .survey-form-container {
        margin: 10px;
        padding: 10px;
    }
    
    .survey-section-frontend {
        padding: 15px;
    }
    
.question-item {
    padding: 15px;
    flex-direction: column;
}
    
    .survey-header h2 {
        font-size: 20px;
    }
}

