/* Основные стили форм */
.rcrm-order-form,
.rcrm-track-order {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.rcrm-frontend-orders {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.form-submit {
    text-align: center;
    margin-top: 20px;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background: #2271b1;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.button:hover {
    background: #135e96;
}

.button-primary {
    background: #2271b1;
}

.button-primary:hover {
    background: #135e96;
}

/* Сообщения */
#form-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

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

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

.rcrm-alert {
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

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

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

/* Стили для отслеживания заказов */
.rcrm-order-tracking {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.rcrm-order-status {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.order-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.order-header h2 {
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.order-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.order-meta p {
    margin: 5px 0;
    color: #555;
}

.current-status {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
}

.status-icon {
    font-size: 24px;
}

.status-description {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Таймлайн */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    z-index: 2;
    flex-shrink: 0;
    margin-right: 20px;
}

.timeline-content {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.timeline-item.completed .timeline-content {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.timeline-item.current .timeline-content {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline-item.pending .timeline-content {
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
    opacity: 0.7;
}

.timeline-content h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 16px;
}

.timeline-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.technician-notes, .cost-info, .contact-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.technician-notes h3, .cost-info h3, .contact-info h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.notes-content {
    background: white;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

.cost-info p {
    margin: 10px 0;
    font-size: 16px;
}

.tracking-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    padding: 8px 0;
    font-size: 16px;
    border-bottom: 1px solid #eee;
}

.contact-info li:last-child {
    border-bottom: none;
}

.tracking-help {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.tracking-help h3 {
    margin-top: 0;
    color: #1565c0;
}

/* Таблица заказов */
.rcrm-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rcrm-orders-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: bold;
    color: #2c3e50;
    border-bottom: 1px solid #dee2e6;
}

.rcrm-orders-table td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}

.rcrm-orders-table tr:hover {
    background: #f8f9fa;
}

.rcrm-orders-table .status-badge {
    padding: 6px 12px;
    font-size: 12px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .order-meta {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-marker {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .tracking-actions {
        flex-direction: column;
    }
    
    .rcrm-orders-table {
        display: block;
        overflow-x: auto;
    }
    
    .order-header h2 {
        font-size: 20px;
    }
    
    .status-badge {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media print {
    .tracking-actions,
    .contact-info {
        display: none;
    }
    
    .rcrm-order-status {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}