/* KDH Survey Frontend Styles - Minimalist B&W Design */

.kdh-survey-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.kdh-survey-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #000;
}

.kdh-survey-title {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.kdh-survey-description {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Questions Section */
.kdh-questions-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0 0 10px 0;
}

.section-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 30px 0;
}

.kdh-question-block {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 25px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

.kdh-question-block:hover {
    border-color: #000;
}

.question-text {
    font-size: 16px;
    color: #000;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.5;
}

.question-number {
    display: inline-block;
    margin-right: 8px;
    color: #666;
    font-weight: 700;
}

/* Radio Options */
.question-awareness {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0 10px 0 0;
    cursor: pointer;
    accent-color: #000;
}

.radio-label {
    font-size: 14px;
    color: #333;
}

/* Importance Slider */
.question-importance {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.importance-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.importance-slider {
    position: relative;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 40px;
    background: linear-gradient(to right, #3498db 0%, #95a5a6 50%, #e74c3c 100%);
    outline: none;
    opacity: 0.9;
    transition: opacity 0.2s;
    border-radius: 0;
    cursor: pointer;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 44px;
    background: #000;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 44px;
    background: #000;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border-radius: 0;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

.label-cold {
    color: #3498db;
}

.label-hot {
    color: #e74c3c;
}

.slider-value {
    text-align: center;
    margin-top: 10px;
}

.value-indicator {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

/* Priority Section */
.kdh-priority-section {
    margin: 50px 0;
    padding: 30px;
    background: #f5f5f5;
    border: 2px solid #000;
}

.priority-options {
    margin-top: 20px;
}

.priority-option {
    display: flex;
    align-items: start;
    padding: 15px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.priority-option:hover {
    border-color: #000;
    background: #fafafa;
}

.priority-option input[type="radio"] {
    margin: 3px 15px 0 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #000;
    flex-shrink: 0;
}

.priority-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.priority-option:has(input:checked) {
    background: #000;
    border-color: #000;
}

.priority-option:has(input:checked) .priority-text {
    color: #fff;
}

/* Submit Button */
.kdh-survey-submit {
    margin: 40px 0;
    text-align: center;
}

.kdh-submit-btn {
    background: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 15px 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kdh-submit-btn:hover {
    background: #fff;
    color: #000;
}

.kdh-submit-btn:disabled {
    background: #ccc;
    border-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

/* Messages */
.kdh-survey-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 0;
    font-size: 14px;
}

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

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

/* Thank You Screen */
.kdh-survey-thanks {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border: 2px solid #000;
}

.thanks-icon {
    font-size: 72px;
    color: #000;
    margin-bottom: 20px;
}

.kdh-survey-thanks h3 {
    font-size: 24px;
    color: #000;
    margin: 0 0 10px 0;
}

.kdh-survey-thanks p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Loading State */
.kdh-survey-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.kdh-survey-form.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
    .kdh-survey-container {
        padding: 0 15px;
    }
    
    .kdh-survey-title {
        font-size: 24px;
    }
    
    .question-awareness {
        flex-direction: column;
        gap: 12px;
    }
    
    .kdh-question-block {
        padding: 20px 15px;
    }
    
    .kdh-priority-section {
        padding: 20px 15px;
    }
    
    .kdh-submit-btn {
        width: 100%;
        padding: 15px 20px;
    }
}
