/* فایل: assets/doctor-feedback.css */
.doctor-feedback-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'IRANSans', 'Tahoma', sans-serif;
    direction: rtl;
    text-align: right;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(31, 81, 121, 0.1);
}

.feedback-form-wrapper {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(31, 81, 121, 0.08);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #1f5179;
    padding-bottom: 20px;
}

.form-header h2 {
    color: #1f5179;
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(31, 81, 121, 0.1);
}

.form-header p {
    color: #666;
    font-size: 16px;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.privacy-note {
    background: #f8f9ff;
    color: #1f5179;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #e1e8f0;
    margin: 0;
}

.privacy-note-small {
    font-size: 12px;
    color: #666;
    display: block;
    margin-top: 5px;
}

/* Layout Rows */
.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.form-section {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e1e8f0;
}

.form-section.half-width {
    flex: 1;
    min-width: 0;
}

.form-section.full-width {
    width: 100%;
    margin-bottom: 25px;
}

.publish-settings {
    background: #fff9e6;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 25px;
    border: 1px solid #f39c12;
}

.section-title {
    color: #1f5179;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: "●";
    color: #1f5179;
    font-size: 20px;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #1f5179;
    font-size: 15px;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafbfc;
    box-sizing: border-box;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    opacity: 0.8;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1f5179;
    background: white;
    box-shadow: 0 0 0 3px rgba(31, 81, 121, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    min-height: 80px;
    line-height: 1.5;
}

.char-counter {
    text-align: left;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Star Rating */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    margin: 10px 0;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating .star {
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.star-rating .star:hover,
.star-rating input[type="radio"]:checked ~ .star {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transform: scale(1.1);
}

.star-rating .star:hover {
    transform: scale(1.15);
}

.rating-text {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    text-align: center;
    font-weight: normal;
}

/* Checkbox */
.checkbox-label {
    display: block;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    font-weight: normal !important;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    background-color: #fff;
    border: 2px solid #1f5179;
    border-radius: 4px;
    float: right;
    margin-left: 12px;
    margin-top: 2px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark {
    background-color: #1f5179;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
    font-family: inherit;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-icon {
    font-size: 20px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 15px;
    border: 2px solid #28a745;
}

.success-icon {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.success-message h3 {
    color: #155724;
    font-size: 24px;
    margin: 0 0 15px 0;
}

.success-message p {
    color: #155724;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.back-btn {
    padding: 12px 25px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.back-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Error Message */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ef5350;
    text-align: center;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .doctor-feedback-container {
        padding: 15px;
        margin: 10px;
    }
    
    .feedback-form-wrapper {
        padding: 25px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-section.half-width {
        flex: none;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .star-rating {
        justify-content: center;
    }
    
    .star-rating .star {
        font-size: 28px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
    }
    
    .submit-btn {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .section-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .star-rating .star {
        font-size: 26px;
        gap: 3px;
    }
    
    .form-header h2 {
        font-size: 20px;
    }
    
    .form-header p {
        font-size: 14px;
    }
    
    .privacy-note {
        font-size: 13px;
        padding: 10px 15px;
    }
}
