/* Quote SAP Styles */

/* Quote Button Styles */
.quote-sap-container {
    margin: 15px 0;
}

.quote-sap-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quote-sap-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.quote-sap-button:active {
    transform: translateY(0);
}

.quote-sap-button .quote-icon {
    font-size: 18px;
}

/* Modal Styles */
/* Modal Styles */
.quote-sap-modal {
    display: none;
    position: fixed;
    z-index: 999999 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.quote-sap-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    z-index: 1000000 !important;
    isolation: isolate;
}
.quote-sap-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: color 0.3s ease;
}

.quote-sap-close:hover,
.quote-sap-close:focus {
    color: #333;
}

.quote-sap-modal h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group-half {
    flex: 1;
    margin-bottom: 0;
}

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

.form-group .required {
    color: #e53e3e;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e53e3e;
    background-color: #fed7d7;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.quote-sap-submit {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 14px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.quote-sap-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.quote-sap-submit:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Message Styles */
.quote-sap-message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 500;
    display: none;
}

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

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

/* Field Error Styles */
.field-error {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}



/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .quote-sap-modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .quote-sap-button {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .quote-sap-modal h3 {
        font-size: 18px;
        margin-bottom: 20px;
        padding-right: 30px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .quote-sap-submit {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Stack form fields vertically on mobile */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group-half {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .quote-sap-modal-content {
        margin: 5% auto;
        padding: 15px;
    }
    
    .quote-sap-close {
        right: 15px;
        top: 10px;
    }
}

/* Print styles */
@media print {
    .quote-sap-container,
    .quote-sap-modal {
        display: none !important;
    }
} /* Body class when modal is open */
body.quote-modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}