/* Основной контейнер формы */
#review-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Заголовки */
#review-form-container h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* Группы форм */
.form-group {
    margin-bottom: 20px;
}

/* Метки */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

/* Обязательные поля */
.required {
    color: #e74c3c;
}

/* Поля ввода */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Слайдер-переключатель */
.switch-group {
    margin: 30px 0 25px 0;
}

.switch-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #555;
    font-size: 14px;
    margin-bottom: 0;
}

.switch-wrapper {
    display: flex;
    align-items: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    margin-left: 15px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #3498db;
}

input:checked + .slider:before {
    transform: translateX(30px);
}

input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Кнопка отправки */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    background: #2980b9;
}

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

/* Сообщения */
.review-message {
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
}

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

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

/* Уведомления модерации */
.review-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    padding: 20px;
    text-align: center;
}

.review-notification.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.review-notification.error {
    background: linear-gradient(135deg, #f44336, #da190b);
    color: white;
}

.notification-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.notification-content p {
    font-size: 18px;
    margin: 0 0 20px 0;
    color: #333;
    font-weight: 500;
}

.back-to-site {
    display: inline-block;
    padding: 12px 25px;
    background: #3498db;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.back-to-site:hover {
    background: #2980b9;
}

/* Стили для списка отзывов */
.reviews-list-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.reviews-title {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.reviews-list {
    display: grid;
    gap: 20px;
}

.review-item {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.review-author {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.review-date {
    color: #666;
    font-size: 14px;
}

.review-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-contact {
    /*display: flex;*/
	display: none;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.review-contact span {
    display: inline-block;
}

.no-reviews {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
}

/* Адаптивность */
@media (max-width: 768px) {
    #review-form-container {
        padding: 15px;
        margin: 10px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Предотвращает зум на мобильных */
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .notification-content {
        padding: 20px;
        margin: 10px;
    }
    
    .notification-content p {
        font-size: 16px;
    }
    
    .reviews-list-container {
        padding: 10px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .review-contact {
        flex-direction: column;
        gap: 5px;
    }
    
    .switch-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        text-align: left;
    }
    
    .switch-wrapper {
        margin-left: 0;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    #review-form-container {
        padding: 10px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .reviews-title {
        font-size: 24px;
    }
    
    .switch {
        width: 50px;
        height: 26px;
    }
    
    .slider:before {
        height: 18px;
        width: 18px;
        left: 4px;
        bottom: 4px;
    }
    
    input:checked + .slider:before {
        transform: translateX(24px);
    }
}