:root {
    --gaq-accent: #ff6600; /* fallback, overridden inline via style attribute */
}

/* Fixed quote button (thinner) */
#gaq-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto;
    width: 60px;
    height: 60px;
    padding: 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    background: var(--gaq-accent);
    border: none;
    border-radius: 50%;
    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: grid;
    place-items: center;
}

#gaq-btn .gaq-label { display: none; }
#gaq-btn .gaq-icon { font-size: 26px; line-height: 1; display: grid; place-items: center; }
#gaq-btn .gaq-icon svg { width: 26px; height: 26px; display: block; }

/* Popup container anchored above the button */
.gaq-modal {
    position: fixed;
    bottom: 90px; /* moved up by 20px */
    right: 20px;
    left: auto;
    width: calc(100% - 40px);
    max-width: 336px; /* 20% narrower than previous 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: #ffffff; /* ensure white background */
    border-radius: 12px;
    padding: 24px 32px 0 28px; /* add ~4px extra on right side compared to left */
    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;
    flex-direction: column; /* stack phone + logo */
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 80px;
    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;
    font-size: 14px; /* ensure both are same tiny size */
}



/* 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;
    left: auto;
    bottom: 90px; /* moved up by 20px */
        max-width: 90%;
    }
    #gaq-btn {
    right: 16px;
    left: auto;
        bottom: 16px;
    width: 60px;
    height: 60px;
    font-size: 20px;
    }
}

