/* EduPanel Public Styles */

/* Form Container */
.edupanel-survey-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
}

.edupanel-survey-header h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #1a202c;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 15px;
}

.edupanel-survey-desc {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Questions */
.edupanel-question-item {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.edupanel-question-item:last-child {
    border-bottom: none;
}

.question-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3748;
}

.question-title .required {
    color: #e53e3e;
    margin-left: 4px;
}

/* Inputs */
.edupanel-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background-color: #fff;
    box-sizing: border-box;
}

.edupanel-form-control:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
    outline: none;
}

/* Radio & Checkbox Options */
.radio-option, .checkbox-option {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.radio-option input[type="radio"], 
.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #3182ce;
}

.radio-option label, 
.checkbox-option label {
    font-size: 16px;
    cursor: pointer;
    color: #4a5568;
}

/* Scale (1-5) */
.scale-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.scale-item {
    text-align: center;
    position: relative;
}

.scale-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.scale-item label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #cbd5e0;
    background: #fff;
    font-weight: bold;
    font-size: 18px;
    color: #718096;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scale-item input[type="radio"]:checked + label {
    border-color: #3182ce;
    background-color: #3182ce;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.4);
}

.scale-item:hover label {
    border-color: #3182ce;
    color: #3182ce;
}

/* NPS (0-10) */
.nps-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nps-item {
    flex: 1;
    min-width: 36px;
    max-width: 60px;
    text-align: center;
}

.nps-item label {
    display: block;
    padding: 12px 0;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.1s ease;
    color: #2d3748; /* Text contrast */
}

/* NPS Colors */
/* 0-6 Detractors (Red) */
.nps-item:nth-child(-n+7) label { background-color: #fff5f5; border-color: #feb2b2; color: #c53030; }
/* 7-8 Passives (Yellow) */
.nps-item:nth-child(n+8):nth-child(-n+9) label { background-color: #fffaf0; border-color: #fbd38d; color: #b7791f; }
/* 9-10 Promoters (Green) */
.nps-item:nth-child(n+10) label { background-color: #f0fff4; border-color: #9ae6b4; color: #276749; }

.nps-item input[type="radio"]:checked + label {
    transform: scale(1.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-width: 2px;
    z-index: 10;
    position: relative;
}

/* Submit Button */
.edupanel-btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(49, 130, 206, 0.4);
    text-decoration: none;
    width: 100%;
    max-width: 300px;
}

.edupanel-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.5);
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

.edupanel-btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.3);
}

/* Response Message */
.edupanel-response-message {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    padding: 15px;
    border-radius: 8px;
    display: none; /* Hidden by default */
}

.edupanel-response-message.success {
    display: block;
    background-color: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
}

.edupanel-response-message.error {
    display: block;
    background-color: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

/* Responsive */
@media (max-width: 600px) {
    .edupanel-survey-container {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .scale-options {
        justify-content: space-between;
    }
    
    .scale-item label {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}
