/* Модальное окно для формы заказа */
.order-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: none;
    justify-content: center;
    align-items: center;
}

.order-modal-overlay.active {
    display: flex;
}

.order-modal-container {
    background: white;
    border-radius: 20px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.order-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    color: #999;
    transition: color 0.3s ease;
    z-index: 10;
}

.order-modal-close:hover {
    color: #ff0a0a;
}

.form_title {
    font-size: 24px;
    font-weight: bold;
    color: #1e5799;
    text-align: center;
    margin-bottom: 10px;
}

.form_subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 25px;
}

.order-form-row {
    margin-bottom: 18px;
}

.order-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.required-star {
    color: #ff0a0a;
    margin-left: 4px;
}

.order-form-row input,
.order-form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f9f9f9;
    box-sizing: border-box;
}

.order-form-row input:focus,
.order-form-row textarea:focus {
    outline: none;
    border-color: #1e5799;
    box-shadow: 0 0 0 3px rgba(30, 87, 153, 0.1);
    background: white;
}

.order-form-row textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.file-upload-area {
    margin-top: 5px;
}

.file-upload-btn {
    display: inline-block;
    background: #f0f0f0;
    border: 1px dashed #1e5799;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #1e5799;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.file-upload-btn:hover {
    background: #e8f0fe;
    border-color: #0d3c6e;
}

.file-list {
    margin-top: 10px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}

.file-remove {
    background: none;
    border: none;
    color: #ff0a0a;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
}

.file-remove:hover {
    color: #cc0000;
}

.file-hint {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
}

.btn-submit {
    background: linear-gradient(135deg, #1e5799 0%, #0d3c6e 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    width: 100%;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(30, 87, 153, 0.3);
}

.btn-submit:disabled {
    opacity: 0.7;
    transform: none;
    cursor: not-allowed;
}

.progress-bar {
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    height: 8px;
}

.progress-fill {
    background: #1e5799;
    width: 0%;
    height: 100%;
    transition: width 0.3s ease;
}

.success-message {
    text-align: center;
    padding: 20px;
}

.success-message h3 {
    color: #28a745;
    margin-bottom: 10px;
}

.success-message p {
    color: #666;
    margin-bottom: 20px;
}

.form_info {
    font-size: 12px;
    color: #999;
    margin: 10px 0;
    text-align: center;
}

@media (max-width: 600px) {
    .order-modal-container {
        padding: 20px;
    }
    .form_title {
        font-size: 20px;
    }
    .btn-submit {
        padding: 12px;
        font-size: 14px;
    }
}