/* Style for the Request a Quote button to match theme/plugin */
.qea-quote-wrapper .qea-request-quote-button {
    /* Example styles - adjust to match your site's primary button style */
    display: inline-block;
    background-color: #041753 !important; /* Match your theme's accent color */
    color: white !important; /* Use !important if needed to override theme */
    padding: 1em 1.5em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    text-transform: uppercase; /* Example */
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center; /* Center text */
    width: auto; /* Adjust width as needed */
    height: 43px;
    width: 300px;
}

.qea-quote-wrapper .qea-request-quote-button:hover {
    background-color: #000e33; /* Darker shade for hover */
}

/* Ensure the button displays correctly within standard WC hooks */
.single-product div.product form.cart .qea-request-quote-button {
     width: 100%; /* Often good for single product pages */
}


/* Basic Modal Styling */
.qea-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10000; /* High z-index to be on top of everything */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow-y: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black background with opacity */
    padding-top: 50px; /* Add some space at the top */
    box-sizing: border-box; /* Include padding in height/width */
}

.qea-modal-content {
    background-color: #fefefe;
    margin: 0 auto; /* Center horizontally */
    padding: 20px;
    border: 1px solid #888;
    width: 95%; /* Responsive width */
    max-width: 500px; /* Max width for larger screens */
    position: relative;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* Close button */
.qea-close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px; /* Adjust as needed */
    cursor: pointer;
    transition: color 0.3s ease;
}

.qea-close-button:hover,
.qea-close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Form styling */
.qea-modal-content h3 {
     border-bottom: 1px solid #eee;
     padding-bottom: 15px;
     margin-bottom: 20px;
     font-size: 1.2em;
     line-height: 1.4;
     word-break: break-word; /* Prevent long titles from overflowing */
}

.qea-modal-content h3 .qea-product-title {
    font-weight: normal; /* Make the product title less prominent than the heading */
}

.qea-modal-content .form-group {
    margin-bottom: 15px;
}

.qea-modal-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333; /* Adjust to match your theme */
}

.qea-modal-content input[type="text"],
.qea-modal-content input[type="email"],
.qea-modal-content input[type="tel"],
.qea-modal-content input[type="number"],
.qea-modal-content select,
.qea-modal-content textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    font-size: 1em;
    line-height: 1.5;
    border-radius: 4px;
    font-family: inherit; /* Use theme font */
}

.qea-modal-content input[type="number"] {
    max-width: 100px; /* Make quantity input smaller */
}

.qea-modal-content select {
    height: 42px; /* Match the height of text inputs */
    background-color: #fff; /* White background */
    appearance: menulist; /* Show dropdown arrow */
    cursor: pointer; /* Show pointer cursor on hover */
}

.qea-modal-content textarea {
    height: 100px;
    resize: vertical; /* Allow vertical resizing */
}

.qea-modal-content .required {
    color: red;
    font-weight: normal;
}

#qea-submit-quote {
    display: inline-block;
    margin-top: 10px; /* Space above button */
    background-color: #041753; /* Match your theme's accent color */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#qea-submit-quote:hover {
    background-color: #000e33; /* Darker shade for hover */
}

#qea-form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}
#qea-form-status span {
    display: block;
}

/* Adjust modal position for smaller screens */
@media (max-width: 600px) {
    .qea-modal-content {
        margin: 10% auto; /* Give some space at the top */
        width: 90%;
        padding: 15px;
    }
}
