/* Simple Mega Menu Styles */
.simple-mega-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 525px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-radius: 12px;
    z-index: 1001;
    padding: 0;
    border: 1px solid #e9ecef;
    overflow: visible;
}

.simple-dropdown:hover .simple-mega-menu,
.simple-dropdown:focus-within .simple-mega-menu {
    display: block;
}

.simple-mega-menu-content {
    display: flex;
    min-height: 200px;
    position: relative;
    overflow: visible;
}

.simple-mega-menu-left {
    flex: 1;
    padding: 24px;
    border-right: 1px solid #e9ecef;
    /* Don't scroll the whole column; scrolling here prevents horizontal overflow hit-testing */
    max-height: none;
    overflow: visible;
    overflow-x: visible;
    position: relative;
    z-index: 2;
}

.simple-mega-menu-section {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: visible;
    position: relative;
    z-index: 2;
}

.simple-mega-menu-right {
    flex: 0 0 225px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 0 12px 12px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.simple-mega-menu-right a,
.simple-mega-menu-right button,
.simple-mega-menu-right input,
.simple-mega-menu-right textarea,
.simple-mega-menu-right select {
    pointer-events: auto;
}

.simple-mega-menu-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary-transparent);
}

.simple-mega-menu-item {
    display: block;
    width: max-content;
    padding: 8px 0;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
    white-space: nowrap;
    position: relative;
    z-index: 3;
}

.simple-mega-menu-item:hover {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom-color: var(--color-primary-transparent);
}

.simple-mega-menu-item i {
    margin-right: 5px;
}

.simple-mega-menu-slogan {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 16px;
    line-height: 1.4;
    font-style: italic;
    text-align: center;
}

.simple-mega-menu-contact-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 4px;
}

.simple-mega-menu-bottom-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.simple-mega-menu-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-button);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s ease;
}

.simple-mega-menu-contact-btn:hover {
    color: var(--color-button);     
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--color-button-transparent-60);
}

.simple-mega-menu-contact-btn i {
    font-size: 1rem;
}

.simple-mega-menu-separator {
    color: #6c757d;
    font-size: 1.2rem;
    font-weight: 300;
}

.simple-mega-menu-contact {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.simple-mega-menu-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    color: #6c757d;
}

.simple-mega-menu-contact-item i {
    color: var(--color-primary);
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.simple-mega-menu-contact-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.simple-mega-menu-contact-item a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.simple-mega-menu-quote {
    margin-top: auto;
    padding-top: 16px;
}

.simple-mega-menu-quote-btn {
    background-color: var(--color-button);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid var(--color-button);
    display: inline-block;
    text-align: center;
    width: 100%;
}

.simple-mega-menu-quote-btn:hover {
    background-color: #ffffff;
    color: var(--color-button);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--color-button-transparent-60);
}

/* Custom scrollbar for mega menu */
.simple-mega-menu-left::-webkit-scrollbar {
    width: 6px;
}

.simple-mega-menu-left::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.simple-mega-menu-left::-webkit-scrollbar-thumb {
    background: var(--color-primary-transparent-60);
    border-radius: 3px;
}

.simple-mega-menu-left::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

.simple-dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    border-bottom: 1px dashed var(--color-primary-transparent);
}

.simple-dropdown-item:hover {
    background: var(--color-primary-transparent);
    color: var(--color-primary);
}
