/* Frontend Stylesheet for WBS CRM Mini Popup Modal */

.wbs-btn-open-quote-modal {
    margin-top: 15px;
    background: #3b82f6;
    color: #ffffff !important;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    display: block;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wbs-btn-open-quote-modal:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

/* Modal Overlay */
#wbs-quote-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#wbs-quote-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Modal Container */
#wbs-quote-modal-container {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

#wbs-quote-modal-overlay.active #wbs-quote-modal-container {
    transform: translateY(0);
}

#wbs-quote-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 24px;
    cursor: pointer;
    font-weight: 500;
    color: #94a3b8;
    transition: color 0.2s;
}

#wbs-quote-modal-close:hover {
    color: #1e293b;
}

#wbs-quote-modal-container h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

#wbs-quote-modal-product-price {
    font-size: 14px;
    color: #ef4444;
    font-weight: 700;
}

#wbs-quote-modal-product-price del {
    color: #94a3b8;
    text-decoration: line-through;
    margin-right: 10px;
    font-size: 13px;
    font-weight: 400;
}

#wbs-quote-modal-product-price ins {
    color: #ef4444;
    text-decoration: none;
    font-weight: 700;
}

#wbs-quote-modal-form input[type="number"] {
    width: 100%;
    max-width: 120px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    transition: all 0.2s;
    text-align: center;
}

#wbs-quote-modal-form input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Modal Forms */
#wbs-quote-modal-form .form-group {
    margin-bottom: 16px;
}

#wbs-quote-modal-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

#wbs-quote-modal-form input[type="text"],
#wbs-quote-modal-form input[type="email"],
#wbs-quote-modal-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    transition: all 0.2s;
}

#wbs-quote-modal-form input:focus,
#wbs-quote-modal-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

#wbs-quote-modal-form button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

#wbs-quote-modal-form button[type="submit"]:hover {
    background: #2563eb;
}

/* Success/Error Alerts */
#wbs-quote-modal-alert {
    display: none;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

#wbs-quote-modal-alert.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

#wbs-quote-modal-alert.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
