:root {
    --gaq-accent: #ff6600; /* fallback, overridden inline via style attribute */
}

/* Fixed quote button (thinner) */
#gaq-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 120px; /* thinner */
    padding: 10px 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--gaq-accent);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 20px -2px rgba(0, 0, 0, 0.35);
    transition: background .2s ease, transform .2s ease;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    letter-spacing: 0.5px;
}

/* Keep width consistent when toggling to X */
#gaq-btn .gaq-label {
    display: inline-block;
}

/* Popup container anchored above the button */
.gaq-modal {
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: calc(100% - 40px);
    max-width: 420px;
    z-index: 100001;
    pointer-events: none; /* clicks pass through when hidden */
    visibility: hidden;   /* ensure it doesn't block UI */
    font-family: inherit;
}

/* Enable interactions only when shown */
.gaq-modal.show {
    pointer-events: auto;
    visibility: visible;
}

/* Inner content with animation */
.gaq-modal-inner {
    background: #d9d9d9; /* light gray */
    border-radius: 12px;
    padding: 24px 28px 0; /* remove bottom to let footer bar sit up behind phone line */
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    transform: translateY(10px);
    opacity: 0;
    transition: transform .35s cubic-bezier(.2,.1,.1,1), opacity .35s ease;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gaq-modal.show .gaq-modal-inner {
    transform: translateY(0);
    opacity: 1;
}

/* Close button (X) */
#gaq-close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    background: transparent;
    border: none;
    line-height: 1;
    color: #fff; /* black X */
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gaq-footer-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 60px;
    background: var(--gaq-accent);
    border-radius: 0 0 12px 12px;
    margin: 0 -28px;
    margin-top: -8px;
    z-index: 100002;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    padding: 12px;
}

.gaq-footer-bar .call-label,
.gaq-footer-bar .call-number a {
    color: #fff;
    text-decoration: underline;
    font-weight: bold;
}



/* Gravity Form submit button styling */
.gform_wrapper .gform_footer .gform_button {
    background: var(--gaq-accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.2) !important;
    transition: transform .15s ease;
}
.gform_wrapper .gform_footer .gform_button:hover {
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gaq-modal {
        right: 12px;
        bottom: 70px;
        max-width: 90%;
    }
    #gaq-btn {
        right: 16px;
        bottom: 16px;
        width: 120px;
        font-size: 14px;
    }
}

