/* Quote Request Modal Styles */
.quote-modal-open {
    overflow: hidden;
}

#quote-request-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.quote-form-container {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.quote-form-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e1e1e1;
    background: #f8f9fa;
}

.quote-form-header h2 {
    margin: 0 0 10px;
    color: #333;
    font-size: 24px;
}

.quote-product-info {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.quote-form-fields {
    padding: 30px;
}

.quote-form .fieldset {
    margin-bottom: 30px;
}

.quote-form .fieldset .legend {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bdb;
}

.quote-form .field {
    margin-bottom: 20px;
}

.quote-form .field .label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.quote-form .field .label .required {
    color: #e74c3c;
}

.quote-form .control input,
.quote-form .control textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.quote-form .control input:focus,
.quote-form .control textarea:focus {
    border-color: #007bdb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 219, 0.1);
}

.quote-form .control textarea {
    resize: vertical;
    min-height: 80px;
}

/* Form Actions */
.quote-form-actions {
    padding: 20px 30px 30px;
    text-align: center;
    border-top: 1px solid #e1e1e1;
}

.quote-form-actions .action {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.quote-form-actions .action.primary {
    background: #007bdb;
    color: white;
}

.quote-form-actions .action.primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.quote-form-actions .action.secondary {
    background: #6c757d;
    color: white;
}

.quote-form-actions .action.secondary:hover {
    background: #545b62;
}

.quote-form-note {
    padding: 0 30px 20px;
    text-align: center;
    color: #666;
    font-size: 12px;
}

/* Success Message */
.quote-success {
    text-align: center;
    padding: 60px 30px;
}

.quote-success .success-icon {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
}

.quote-success h3 {
    color: #28a745;
    margin-bottom: 15px;
}

.quote-success p {
    color: #666;
    margin-bottom: 30px;
}

/* Request Quote Button */
.request-quote-btn:hover {
    background: #218838 !important;
    transform: translateY(-2px);
}

/* RTL Support for Arabic/Hebrew */
.quote-form-container[dir="rtl"] .field .label {
    text-align: right;
}

.quote-form-container[dir="rtl"] .control input,
.quote-form-container[dir="rtl"] .control textarea {
    text-align: right;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #quote-request-modal {
        padding: 10px;
    }

    .quote-form-container {
        max-height: 95vh;
    }

    .quote-form-header {
        padding: 20px 20px 15px;
    }

    .quote-form-fields {
        padding: 20px;
    }

    .quote-form-actions {
        padding: 15px 20px 20px;
    }

    .quote-form-actions .action {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}

/* Validation Error Styles */
.mage-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

.field-error input,
.field-error textarea {
    border-color: #e74c3c !important;
}