/* Header Toggle Styles */
.kgh-header-wrapper { display: inline-flex; font-family: inherit; }
.kgh-trigger-layout { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.kgh-icon-box { display: flex; align-items: center; justify-content: center; }
.kgh-icon-box svg { width: 22px; height: 22px; fill: #ffffff; }
.kgh-text-box { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; }
.kgh-subtitle { color: rgba(255, 255, 255, 0.7); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.kgh-current-loc { color: #ffffff; font-size: 20px; font-weight: 700; white-space: nowrap; }
.kgh-toggle-btn { color: rgba(255, 255, 255, 0.85); font-size: 12px; text-decoration: underline; }

/* Global Form Popup */
.kgh-global-form { display: none; background: transparent; z-index: 999999999 !important; }
.kgh-global-form.is-open { display: block !important; }

/* Input field fix */
.kgh-input-wrap { display: flex; height: 46px; border: 2px solid #8e24aa; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
#kgh-global-input-zip { 
    background-color: #ffffff !important;
    color: #000000 !important; 
    border: none !important; 
    padding: 0 15px; 
    font-size: 16px !important; 
    flex: 1; 
    width: 100%;
    outline: none; 
    box-shadow: none;
    margin: 0 !important;
}
#kgh-global-input-zip::placeholder { color: #888888 !important; opacity: 1 !important; }

/* Arrow fix */
.kgh-submit-btn { background: #8e24aa !important; border: none !important; padding: 0 20px !important; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.kgh-submit-btn svg { width: 16px; height: 16px; fill: #fff; display: block; }

/* Sticky CTA Footer */
.kgh-sticky-cta { position: fixed; bottom: 0; left: 0; width: 100%; background: #ffffff; box-shadow: 0 -4px 20px rgba(0,0,0,0.1); z-index: 99999; border-top: 3px solid #8e24aa; padding: 15px 0; }
.kgh-sticky-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.kgh-sticky-text strong { display: block; font-size: 18px; color: #333; }
.kgh-sticky-text span { font-size: 14px; color: #666; }
.kgh-sticky-btn { background: #8e24aa; color: #fff; padding: 12px 24px; border-radius: 30px; text-decoration: none; font-weight: bold; font-size: 16px; transition: 0.2s; }
.kgh-sticky-btn:hover { background: #6a1b9a; color: #fff; }

@media(max-width: 768px) {
    .kgh-sticky-inner { flex-direction: column; text-align: center; gap: 10px; }
}

/* Service Box Grid Styling */
.kgh-service-grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin: 40px 0; }
.kgh-service-card { background: #ffffff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; justify-content: space-between; }
.kgh-service-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.kgh-card-title { font-size: 22px !important; font-weight: 700 !important; margin-bottom: 15px !important; color: #333; }
.kgh-card-desc { font-size: 15px; line-height: 1.6; color: #666; margin-bottom: 25px; }

mark.kgh-highlight { background-color: rgba(142, 36, 170, 0.15); color: #8e24aa; font-weight: bold; padding: 0 3px; border-radius: 3px; }
.kgh-continue-link { display: inline-block; color: #8e24aa; font-weight: 600; text-decoration: none; margin-left: 5px; }
.kgh-continue-link:hover { text-decoration: underline; }

.kgh-card-button { background: #8e24aa; color: #fff !important; text-decoration: none !important; padding: 12px 20px; border-radius: 4px; text-align: center; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; transition: background 0.2s; }
.kgh-card-button:hover { background: #6a1b9a; }

.kgh-franchisee-img { max-width: 100%; height: auto; display: block; margin: 0 auto; border: 10px solid #ffffff; border-radius: 4px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.kgh-franchisee-img:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); }

@media (max-width: 600px) { .kgh-service-grid-container { grid-template-columns: 1fr; }
	.kgh-expandable-search-wrapper{ justify-content: center; }
	.kgh-expand-btn { font-size: 17.6px !important; }
}



/* --- GLOBAL SITE SEARCH (Static Box) --- */
.kgh-smart-search-box { background: #ffffff; padding: 30px; border-radius: 4px; border: 1px solid #e0e0e0; box-shadow: 0 4px 15px rgba(0,0,0,0.03); max-width: 100%; margin: 20px auto; }
.kgh-smart-search-box h3 { margin-top: 0; margin-bottom: 15px; color: #333333; font-size: 22px; }
.kgh-search-input-wrapper { position: relative; display: flex; align-items: center; border: 1px solid #cccccc; border-radius: 2px; overflow: hidden; }
.kgh-search-icon { width: 20px; height: 20px; fill: #888888; margin-left: 15px; position: absolute; }
#kgh_service_search_input, #kgh_header_search_input { width: 100%; padding: 15px 15px 15px 45px; border: none; font-size: 16px !important; color: #666666; outline: none; box-shadow: none; }
#kgh_service_search_input::placeholder, #kgh_header_search_input::placeholder { color: #999999; }

/* --- Specific Styles just for the Header Popup Modal --- */
.kgh-popup-style { display: none; position: absolute; z-index: 999999; padding: 15px; border: 1px solid #8e24aa; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.kgh-popup-style.is-open { display: block !important; }
.kgh-popup-style h3 { display: none; }

/* --- EXPANDABLE BUTTON SEARCH SHORTCODE --- */
.kgh-expandable-search-wrapper { position: relative; display: inline-block; width: 100%; max-width: 332px; margin: 10px 0; justify-content: right; }
.kgh-expand-btn { padding: 8px 20px !important; font-size: 20px !important; cursor: pointer; align-items: center; justify-content: center; gap: 10px; width: 100%; transition: 0.3s background ease; box-shadow: 0 4px 6px rgba(0,0,0,0.1); text-transform: uppercase; letter-spacing: 0.5px; box-sizing: border-box; }
.kgh-expand-btn svg { width: 18px !important; height: 18px !important; min-width: 18px !important; max-width: 18px !important; fill: #ffffff !important; flex-shrink: 0 !important; }
.kgh-expand-btn:hover { background: #6a1b9a !important; }
.kgh-expanded-input-wrap { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: 0.3s all ease; background: #ffffff; border: 2px solid #8e24aa; border-radius: 4px; box-sizing: border-box; z-index: 10; }
.kgh-expandable-search-wrapper.is-expanded .kgh-expanded-input-wrap { opacity: 1; visibility: visible; }
.kgh-expanded-input-wrap svg { width: 18px !important; height: 18px !important; min-width: 18px !important; fill: #888888 !important; margin-left: 15px; position: absolute; }
.kgh-expanded-input-wrap input { width: 100%; height: 100%; border: none !important; padding: 0 40px 0 45px !important; font-size: 16px !important; outline: none !important; background: transparent !important; color: #333333 !important; box-shadow: none !important; margin: 0 !important; }
.kgh-expanded-input-wrap input::placeholder { color: #999999 !important; opacity: 1 !important; }
.kgh-close-search { position: absolute; right: 15px; font-size: 28px; cursor: pointer; color: #888888; line-height: 1; display: flex; align-items: center; height: 100%; }
.kgh-close-search:hover { color: #d63638; }
#kgh_expandable_search_results { position: absolute; top: 100%; left: 0; width: 100%; background: #ffffff; border: 1px solid #dddddd; border-top: none; box-shadow: 0 10px 20px rgba(0,0,0,0.15); border-radius: 0 0 4px 4px; z-index: 999; }

/* --- UNIVERSAL SCROLLABLE RESULTS STYLING (For all 3 search boxes) --- */
.kgh-search-results-list { list-style: none; padding: 0; margin: 0; max-height: 300px; overflow-y: auto; padding-right: 5px; }
.kgh-search-results-list li { padding: 15px 10px; border-bottom: 1px solid #eeeeee; }
.kgh-search-results-list li:last-child { border-bottom: none; }
.kgh-search-results-list a { font-size: 18px; color: #8e24aa; text-decoration: none; font-weight: 700; display: block; margin-bottom: 5px; }
.kgh-search-results-list a:hover { text-decoration: underline; }
.kgh-search-results-list p { margin: 0; color: #555555; font-size: 14px; }
.kgh-search-results-list::-webkit-scrollbar { width: 6px; }
.kgh-search-results-list::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.kgh-search-results-list::-webkit-scrollbar-thumb { background: #8e24aa; border-radius: 4px; }
.kgh-search-results-list::-webkit-scrollbar-thumb:hover { background: #6a1b9a; }
.kgh-expandable-search-wrapper.is-expanded { min-width: 350px; }
@media (max-width: 400px) { .kgh-expandable-search-wrapper.is-expanded { min-width: 100%; } }

/* --- NEW: CUSTOM FAQ ACCORDION --- */
.kgh-faq-main-title { font-size: 30px; text-transform: uppercase;  font-weight: 700; margin-bottom: 25px; text-align: center; }
.kgh-accordion-wrapper { max-width: 1200px; margin: 0 auto; }
.kgh-accordion-item { margin-bottom: 10px; border-radius: 8px; overflow: hidden; }
.kgh-accordion-header {
    background: #450961; /* YOUR PURPLE COLOR */
    color: #ffffff;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}
.kgh-accordion-item.active .kgh-accordion-header {
    background: #3a0751; /* Darker purple on open */
}
.kgh-accordion-title { font-weight: 600; font-size: 16px; }
.kgh-accordion-icon {
    font-size: 24px;
    font-weight: 700;
    transition: transform 0.3s ease;
}
.kgh-accordion-item.active .kgh-accordion-icon {
    transform: rotate(45deg); /* Turns '+' into 'x' */
}
.kgh-accordion-content {
    display: none; /* JS handles opening */
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
}
.kgh-accordion-content p {
    margin: 0 0 1em 0;
    line-height: 1.6;
}
.kgh-accordion-content p:last-child {
    margin-bottom: 0;
}
/* --- Knowledge Base Linking Styles --- */
.kgh-kb-link {
    margin-top: 15px !important;
    padding-top: 10px;
    border-top: 1px dashed #450961;
}

.kgh-kb-link a {
    color: #450961;
    font-weight: 700;
    text-decoration: none;
    font-style: italic;
    font-size: 14px;
}

.kgh-kb-link a:hover {
    text-decoration: underline;
    color: #3a0751;
}