.customer-type-switch {
    display: flex;
    padding: 4px;
    border-radius: 50px;
    gap: 8px;
    width: fit-content;
    margin: 0 auto;
    border: 1px solid rgba(209, 133, 14, 0.2);
    background: rgba(209, 133, 14, 0.03);
    position: relative;
    transition: all 0.3s ease;
}

.customer-type-switch:hover {
    border-color: rgba(209, 133, 14, 0.3);
    box-shadow: 0 2px 12px rgba(209, 133, 14, 0.1);
}

.switch-option {
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    color: #D1850E;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

/* Enhanced active state */
.switch-option.active {
    background: #D1850E;
    color: #fff;
    box-shadow: 0 2px 8px rgba(209, 133, 14, 0.3);
    transform: translateY(-1px);
}

.switch-option.active i {
    transform: scale(1.1);
}

.switch-option i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

/* Hover effect for non-active options */
.switch-option:not(.active):hover {
    background: rgba(209, 133, 14, 0.15);
    transform: translateY(-1px);
}

/* Header switch specific styles */
.customer-type-switch.header-switch {
    background: #ffffff45;
    border-color: rgba(209, 133, 14, 0.15);
}

.customer-type-switch.header-switch .switch-option {
    position: relative;
}

.customer-type-switch.header-switch .switch-option.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: dotAppear 0.3s ease forwards;
}

@keyframes dotAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -5px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Hide content sections by default */
.content-homeowner,
.content-business {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-homeowner.active,
.content-business.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Vertical Switch */
.homeowner-menu-item,
.commercial-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #D1850E;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.homeowner-menu-item.active,
.commercial-menu-item.active {
    background: rgba(209, 133, 14, 0.1);
    border-left: 3px solid #D1850E;
    color: #D1850E;
}

.homeowner-menu-item:before,
.commercial-menu-item:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
    font-size: 16px;
    transition: transform 0.3s ease;
    display: inline-block;
    width: 16px;
    text-align: center;
}

.homeowner-menu-item:before {
    content: "\f015"; /* fa-home icon */
}

.commercial-menu-item:before {
    content: "\f1ad"; /* fa-building icon */
}

.homeowner-menu-item:hover,
.commercial-menu-item:hover {
    background: rgba(209, 133, 14, 0.05);
}

.homeowner-menu-item.active:before,
.commercial-menu-item.active:before {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .customer-type-switch {
        width: 90%;
        max-width: 250px;
    }
    
    .switch-option {
        padding: 6px 12px;
        font-size: 13px;
    }

    .customer-type-switch.header-switch {
        max-width: none;
        width: auto;
    }

    .homeowner-menu-item,
    .commercial-menu-item {
        width: 100%;
        margin-bottom: 4px;
        border-radius: 8px;
    }
} 

/* Dark background variant styles - Completely rewritten with higher specificity */
.customer-type-switch.header-switch-dark {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: none !important;
}

.customer-type-switch.header-switch-dark .switch-option {
    color: #ffffff !important;
    background-color: transparent !important;
}

.customer-type-switch.header-switch-dark .switch-option i {
    color: #ffffff !important;
}

/* Hover state for non-active options */
.customer-type-switch.header-switch-dark .switch-option:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #D1850E !important;
    transform: translateY(-1px) !important;
}

.customer-type-switch.header-switch-dark .switch-option:not(.active):hover i {
    color: #D1850E !important;
}

/* Active state */
.customer-type-switch.header-switch-dark .switch-option.active {
    background-color: #D1850E !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(209, 133, 14, 0.3) !important;
}

.customer-type-switch.header-switch-dark .switch-option.active i {
    color: #ffffff !important;
    transform: scale(1.1) !important;
}

/* Container hover effect */
.customer-type-switch.header-switch-dark:hover {
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.1) !important;
} 