
/* Стили для невалидных полей */
.qo-input.error {
    border-color: #ff4444;
    box-shadow: 0 0 5px rgba(255, 68, 68, 0.3);
}

.qo-form-group.error label {
    color: #ff4444;
}

.qo-error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.qo-form-group.error .qo-error-message {
    display: block;
}











/* === МОДАЛЬНОЕ ОКНО === */
.qo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qo-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.qo-modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 450px;
    z-index: 10001;
    animation: qo-slide-in 0.3s ease-out;
}

@keyframes qo-slide-in {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* === HEADER === */
.qo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.qo-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.qo-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.qo-modal-close:hover {
    color: #333;
}

/* === ФОРМА === */
.qo-form {
    padding: 20px;
}

/* === ИНФОРМАЦИЯ О ТОВАРЕ === */
.qo-product-info {
    background: #f9f9f9;
    padding: 12px 14px;
    border-radius: 4px;
    margin-bottom: 18px;
    border-left: 3px solid #0099ff;
}

.qo-product-name {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.qo-product-name strong {
    color: #0099ff;
}

/* === ПОЛЯ ФОРМЫ === */
.qo-form-group {
    margin-bottom: 16px;
}

.qo-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.qo-input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s;
}

.qo-input:focus {
    outline: none;
    border-color: #0099ff;
    box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.1);
}

.qo-input::placeholder {
    color: #ccc;
}

/* === КНОПКИ === */
.qo-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.qo-btn {
    flex: 1;
    padding: 11px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.qo-btn-submit {
    background: #0099ff;
    color: white;
}

.qo-btn-submit:hover:not(:disabled) {
    background: #0077cc;
}

.qo-btn-submit:active:not(:disabled) {
    transform: scale(0.98);
}

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

.qo-btn-cancel {
    background: #f0f0f0;
    color: #333;
}

.qo-btn-cancel:hover {
    background: #e0e0e0;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 480px) {
    .qo-modal-content {
        max-width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .qo-form {
        padding: 16px;
    }
    
    .qo-modal-header {
        padding: 16px;
    }
}
