/* ========================================
   GET A QUOTE BUTTON
======================================== */

.wcgq-button-wrapper {
    margin-top: 12px;
    margin-bottom: 12px;
}

.wcgq-get-quote-button {

    background-color: var(--e-global-color-primary) !important;
    border-color: var(--e-global-color-primary) !important;
    transition-duration: 0.5s;
    border-style: none;
    border-radius: 4px 4px 4px 4px;
}

.wcgq-get-quote-button:hover {
    background: #1558b0;
    color: #ffffff;
}


/* ========================================
   MODAL
======================================== */

.wcgq-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.wcgq-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcgq-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}


/* ========================================
   MODAL CONTENT
======================================== */

.wcgq-modal-content {
    position: relative;
    z-index: 2;
    width: calc(100% - 30px);
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.wcgq-close {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #555;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.wcgq-close:hover {
    color: #000;
}


/* ========================================
   TITLE
======================================== */

.wcgq-form-wrapper h2 {
    margin: 0 40px 8px 0;
    color: #222;
    font-size: 28px;
    line-height: 1.2;
}

.wcgq-intro {
    margin: 0 0 25px;
    color: #666;
}


/* ========================================
   PRODUCT INFORMATION
======================================== */

.wcgq-product-info {
    margin-bottom: 25px;
    padding: 16px;
    border-radius: 6px;
    background: #f5f7fa;
}

.wcgq-product-info div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 5px 0;
}

.wcgq-product-info strong {
    color: #333;
}

.wcgq-product-info span {
    color: #555;
    text-align: right;
}


/* ========================================
   FORM FIELDS
======================================== */

.wcgq-field {
    margin-bottom: 18px;
}

.wcgq-field label {
    display: block;
    margin-bottom: 7px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.wcgq-field input,
.wcgq-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #d5d5d5;
    border-radius: 5px;
    background: #fff;
    color: #333;
    font-size: 15px;
}

.wcgq-field input:focus,
.wcgq-field textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}


/* ========================================
   SUBMIT
======================================== */

.wcgq-submit {
    width: 100%;
    padding: 14px 20px;
    border: 0;
    border-radius: 5px;
    background: #1a73e8;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.wcgq-submit:hover {
    background: #1558b0;
}

.wcgq-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}


/* ========================================
   RESPONSE
======================================== */

.wcgq-response {
    display: none;
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 14px;
}

.wcgq-response.success {
    background: #e8f7ee;
    color: #176b35;
}

.wcgq-response.error {
    background: #fdecec;
    color: #a12626;
}


/* ========================================
   PREVENT PAGE SCROLL
======================================== */

body.wcgq-modal-open {
    overflow: hidden;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    .wcgq-modal-content {
        width: calc(100% - 20px);
        padding: 25px 20px;
    }

    .wcgq-form-wrapper h2 {
        font-size: 24px;
    }

    .wcgq-product-info div {
        display: block;
    }

    .wcgq-product-info span {
        display: block;
        margin-top: 3px;
        text-align: left;
    }

}
