/* LED Display Feedback Form Styles */

#led-feedback-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

#led-feedback-form {
    color: #333333;
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.form-section h3 {
    margin: 0 0 20px 0;
    color: #0073aa;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #e1e1e1;
    padding-bottom: 10px;
}

/* Form Rows and Groups */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333333;
    font-size: 14px;
}

/* Input Styles */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333333;
    background-color: #ffffff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Checkbox Groups */
.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
    color: #333333;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    transform: scale(1.2);
}

/* Star Rating Styles */
.rating-group {
    margin-bottom: 20px;
    padding: 15px;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #e1e1e1;
}

.rating-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333333 !important;
    font-size: 14px;
}

.star-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.star-rating .star {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #ffc107;
}

.star-rating .star.hover {
    color: #ffeb3b;
}

/* CAPTCHA Styles */
.captcha-group {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #0073aa;
}

.captcha-group label {
    color: #0073aa !important;
    font-weight: 600;
}

.captcha-group input {
    max-width: 100px;
    margin-top: 5px;
}

/* Submit Button */
.form-submit {
    text-align: center;
    margin-top: 30px;
}

#submit-feedback {
    background: #0073aa;
    color: #ffffff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 150px;
}

#submit-feedback:hover {
    background: #005a87;
}

#submit-feedback:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Form Messages */
#form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

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

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

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

.loading #submit-feedback::after {
    content: " ...";
}

/* Responsive Design */
@media (max-width: 768px) {
    #led-feedback-form-container {
        margin: 10px;
        padding: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .star-rating .star {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    #led-feedback-form-container {
        margin: 5px;
        padding: 10px;
    }
    
    .form-section h3 {
        font-size: 16px;
    }
    
    .star-rating .star {
        font-size: 18px;
        gap: 3px;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        border-width: 3px;
    }
    
    .rating-label,
    .form-group label {
        color: #000000 !important;
        font-weight: 700;
    }
    
    .star-rating .star {
        color: #666666;
    }
    
    .star-rating .star:hover,
    .star-rating .star.active {
        color: #ff6600;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    #led-feedback-form-container {
        background: #2c2c2c;
        color: #ffffff;
    }
    
    .form-section {
        background: #3c3c3c;
        color: #ffffff;
    }
    
    .form-section h3 {
        color: #4a9eff;
    }
    
    .form-group label,
    .rating-label {
        color: #ffffff !important;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: #4c4c4c;
        color: #ffffff;
        border-color: #666666;
    }
    
    .rating-group {
        background: #3c3c3c;
        border-color: #666666;
    }
}

/* Print Styles */
@media print {
    #led-feedback-form-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .star-rating .star {
        color: #000 !important;
    }
    
    #submit-feedback {
        display: none;
    }
}



/* NPS Scale Styles */
.nps-group {
    margin-bottom: 25px;
    padding: 20px;
    background: #ffffff;
    border-radius: 6px;
    border: 2px solid #0073aa;
}

.nps-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333333 !important;
    font-size: 16px;
    line-height: 1.4;
}

.nps-scale {
    width: 100%;
}

.nps-scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666666;
    font-style: italic;
}

.nps-label-left,
.nps-label-right {
    font-weight: 500;
}

.nps-buttons {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    flex-wrap: wrap;
}

.nps-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 40px;
    max-width: 60px;
}

.nps-button input[type="radio"] {
    display: none;
}

.nps-number {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: #ffffff;
    color: #333333;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nps-button:hover .nps-number {
    border-color: #0073aa;
    background: #f0f8ff;
    transform: scale(1.1);
}

.nps-button input[type="radio"]:checked + .nps-number {
    background: #0073aa;
    color: #ffffff;
    border-color: #0073aa;
    transform: scale(1.1);
}

/* Color coding for NPS scores */
.nps-button:nth-child(-n+7) input[type="radio"]:checked + .nps-number {
    background: #dc3545; /* Red for detractors (0-6) */
    border-color: #dc3545;
}

.nps-button:nth-child(8) input[type="radio"]:checked + .nps-number,
.nps-button:nth-child(9) input[type="radio"]:checked + .nps-number {
    background: #ffc107; /* Yellow for passives (7-8) */
    border-color: #ffc107;
    color: #333333;
}

.nps-button:nth-child(10) input[type="radio"]:checked + .nps-number,
.nps-button:nth-child(11) input[type="radio"]:checked + .nps-number {
    background: #28a745; /* Green for promoters (9-10) */
    border-color: #28a745;
}

/* Testimonial Section Styles */
.testimonial-permissions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    margin-top: 15px;
}

.testimonial-permissions h4 {
    margin: 0 0 15px 0;
    color: #0073aa;
    font-size: 16px;
    font-weight: 600;
}

.testimonial-notice {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
    margin-top: 15px;
}

.testimonial-notice p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #333333;
}

.form-help-text {
    display: block;
    font-size: 12px;
    color: #666666;
    margin-top: 5px;
    font-style: italic;
}

/* Enhanced checkbox styling for testimonial permissions */
.testimonial-permissions .checkbox-group input[type="checkbox"] {
    transform: scale(1.3);
    margin-right: 10px;
}

.testimonial-permissions .checkbox-group label {
    font-size: 14px;
    line-height: 1.4;
}

.testimonial-permissions .checkbox-group label strong {
    color: #0073aa;
}

/* Responsive Design for NPS */
@media (max-width: 768px) {
    .nps-buttons {
        gap: 3px;
    }
    
    .nps-number {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 13px;
    }
    
    .nps-scale-labels {
        font-size: 11px;
    }
    
    .testimonial-permissions {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .nps-buttons {
        gap: 2px;
    }
    
    .nps-number {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 12px;
    }
    
    .nps-button {
        min-width: 30px;
        max-width: 35px;
    }
    
    .nps-label {
        font-size: 14px;
    }
    
    .testimonial-permissions {
        padding: 10px;
    }
    
    .testimonial-permissions h4 {
        font-size: 14px;
    }
}

/* Focus states for accessibility */
.nps-button:focus-within .nps-number {
    outline: 3px solid rgba(0, 115, 170, 0.3);
    outline-offset: 2px;
}

.testimonial-permissions input[type="checkbox"]:focus {
    outline: 3px solid rgba(0, 115, 170, 0.3);
    outline-offset: 2px;
}

/* High contrast mode for NPS */
@media (prefers-contrast: high) {
    .nps-number {
        border-width: 3px;
        font-weight: 700;
    }
    
    .nps-button input[type="radio"]:checked + .nps-number {
        border-width: 4px;
    }
    
    .testimonial-permissions {
        border-width: 2px;
    }
}

/* Dark mode for NPS and testimonial sections */
@media (prefers-color-scheme: dark) {
    .nps-group {
        background: #3c3c3c;
        border-color: #4a9eff;
    }
    
    .nps-label {
        color: #ffffff !important;
    }
    
    .nps-number {
        background: #4c4c4c;
        color: #ffffff;
        border-color: #666666;
    }
    
    .nps-button:hover .nps-number {
        background: #5c5c5c;
        border-color: #4a9eff;
    }
    
    .testimonial-permissions {
        background: #3c3c3c;
        border-color: #666666;
    }
    
    .testimonial-permissions h4 {
        color: #4a9eff;
    }
    
    .testimonial-notice {
        background: #2c4a6b;
        border-left-color: #4a9eff;
    }
    
    .testimonial-notice p {
        color: #ffffff;
    }
    
    .form-help-text {
        color: #cccccc;
    }
}

