/* Order Form Styles */

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 991px) {
    .step-indicator {
        font-size: 0.875rem;
    }
    
    .step-connector {
        width: 30px;
        margin: 0 0.5rem;
    }
    
    .step span {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .step-indicator {
        flex-direction: column;
        align-items: center;
    }
    
    .step-connector {
        width: 2px !important;
        height: 30px !important;
        margin: 0.5rem 0 !important;
    }
}

.step {
    display: flex;
    align-items: center;
    color: #6c757d;
    text-align: center;
}

@media (max-width: 768px) {
    .step {
        flex-direction: column;
        margin-bottom: 0.5rem;
    }
    
    .step-number {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
}

.step.active {
    color: #0d6efd;
}

.step.completed {
    color: #198754;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    font-weight: bold;
}

.step.active .step-number {
    background: #0d6efd;
    color: white;
}

.step.completed .step-number {
    background: #198754;
    color: white;
}

.step-connector {
    width: 50px;
    height: 2px;
    background: #e9ecef;
    margin: 0 1rem;
}

/* Price Summary */
.price-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.price-row.total {
    font-weight: bold;
    font-size: 1.2em;
    padding-top: 0.5rem;
    border-top: 2px solid #dee2e6;
}

.price-row.discount {
    color: #28a745;
}

/* Additional Products */
.additional-product-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.additional-product-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.additional-product-card.selected {
    border-color: #0d6efd;
    background: linear-gradient(135deg, #e7f3ff 0%, #d4e8ff 100%);
}

.discount-badge {
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: bold;
}

/* Unified info blocks */
.info-block {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.info-block h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 0.5rem;
}

.info-block ul {
    margin-bottom: 0;
}

.info-block li {
    padding: 0.25rem 0;
    color: #6c757d;
}

.info-block li span,
.info-block li strong {
    color: #212529;
    font-weight: 500;
}

/* Additional service section - unified style */
.additional-service-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.additional-service-checkbox {
    margin-bottom: 0.75rem;
}

.additional-service-checkbox .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
}

.additional-service-checkbox .form-check-label {
    margin-left: 0.5rem;
    font-weight: 500;
}

/* Client category info */
#client-category-info {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 0.75rem 1.25rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

/* CDEK city dropdown */
#cdek_city_suggestions {
    position: absolute;
    z-index: 1000;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Adaptive form controls */
@media (max-width: 768px) {
    .form-control, .form-select {
        font-size: 0.875rem;
    }
    
    .form-control::placeholder {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .form-control, .form-select {
        font-size: 0.8125rem;
    }
    
    .form-control::placeholder {
        font-size: 0.7rem;
    }
}

/* Mobile responsive buttons */
@media (max-width: 991px) {
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .btn-lg {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .btn-lg i {
        font-size: 0.75rem;
        margin-right: 0.25rem !important;
        margin-left: 0.25rem !important;
    }
}

/* Summary text styles for step 3 */
.summary-label {
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.summary-value {
    font-weight: normal;
    color: #212529;
}