/* Life Insurance Tab Styles */
        .life-tab {
            cursor: pointer;
            border: none;
            outline: none;
        }

        .active-tab {
            background-color: var(--primary) !important;
            color: white !important;
        }

        .life-tab-content {
            display: none;
        }

        .active-tab-content {
            display: block;
        }

        .maroon-line {
            height: 3px;
            background-color: var(--primary);
            width: 100%;
            margin: 10px 0;
        }

        .health-tab {
            cursor: pointer;
            border: none;
            outline: none;
        }

        .health-active-tab {
            background-color: var(--primary) !important;
            color: white !important;
        }

        .health-tab-content {
            display: none;
        }

        .health-active-tab-content {
            display: block;
        }

        .maroon-heading {
            color: var(--primary);
            font-weight: bold;
            font-size: 1.2rem;
            margin-bottom: 1rem;
        }

        /* Loading and Success Modal Styles */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .loading-text {
            color: white;
            margin-top: 15px;
            font-size: 18px;
            font-weight: bold;
        }

        .success-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .success-content {
            background-color: white;
            padding: 30px;
            border-radius: 10px;
            text-align: center;
            max-width: 500px;
            width: 90%;
            border: 3px solid var(--primary);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .success-icon {
            font-size: 48px;
            color: var(--primary);
            margin-bottom: 15px;
        }

        .success-title {
            color: var(--primary);
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 15px;
        }

        .success-message {
            color: #333;
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .success-button {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 10px 25px;
            border-radius: 5px;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.3s;
        }

            .success-button:hover {
                background-color: var(--primary-dark);
            }

        /* Language Selector Styles */
        #languageDropdown, #mobileLanguageDropdown {
            animation: fadeIn 0.2s ease-in-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-5px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .language-selector {
            position: relative;
        }

        .language-button {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 8px 12px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            background: white;
            color: #333;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
        }

            .language-button:hover {
                border-color: var(--primary);
                color: var(--primary);
            }

        .language-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 5px;
            background: white;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            min-width: 140px;
            z-index: 1000;
        }

        .language-option {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 15px;
            width: 100%;
            text-align: left;
            background: none;
            border: none;
            cursor: pointer;
            transition: background 0.2s;
        }

            .language-option:hover {
                background-color: #f3f4f6;
            }

            .language-option.active {
                background-color: var(--primary-soft);
                color: var(--primary);
            }

        /* Mobile-specific fixes */
        @media (max-width: 768px) {
            /* Header mobile adjustments */
            .header-logo-container {
                flex-direction: column;
                text-align: center;
            }
            /* Fix for mobile header buttons */
            .mobile-buttons {
                display: flex;
                flex-direction: column;
                gap: 8px;
                margin-top: 10px;
            }

                .mobile-buttons button {
                    width: 100%;
                }
            /* Language selector mobile */
            #mobileLanguageSelector {
                margin: 10px 0;
            }

            #mobileLanguageDropdown {
                width: 100%;
                right: 0;
                left: 0;
            }
            /* Hero section mobile adjustments */
            .hero-content {
                padding: 0 15px;
            }

            .hero-badge {
                max-width: 200px;
                margin: 0 auto 20px;
            }
            /* Services section mobile adjustments */
            .service-card {
                margin-bottom: 20px;
            }
            /* About section mobile adjustments */
            .about-grid {
                flex-direction: column;
            }
            /* Quote section mobile adjustments */
            .quote-contact-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            /* Footer mobile adjustments */
            .footer-grid {
                grid-template-columns: 1fr;
                text-align: center;
            }
            /* Popup form mobile adjustments */
            .popup-form-grid {
                grid-template-columns: 1fr !important;
            }

            .popup-form-label {
                text-align: left !important;
                margin-bottom: 5px;
            }

            .popup-form-input {
                width: 100% !important;
            }
            /* Fix for form grid on mobile */
            .form-grid-mobile {
                grid-template-columns: 1fr !important;
            }

            .form-label-mobile {
                text-align: left !important;
                margin-bottom: 5px;
            }

            .form-input-mobile {
                width: 100% !important;
            }
            /* Fix for tab navigation on mobile */
            .tab-nav-mobile {
                flex-wrap: wrap;
            }

            .tab-button-mobile {
                flex: 1 0 auto;
                min-width: 45%;
                margin-bottom: 5px;
                font-size: 0.75rem;
                padding: 8px 4px;
            }
            /* Fix for radio button groups on mobile */
            .radio-group-mobile {
                flex-direction: column;
                gap: 5px;
            }
            /* Fix for modal width on mobile */
            .modal-mobile {
                width: 95% !important;
                margin: 10px auto;
            }
            /* Improved radio button group styling */
            .radio-group-mobile {
                flex-direction: column !important;
                gap: 8px !important;
                width: 100%;
            }

                .radio-group-mobile label {
                    display: flex !important;
                    align-items: center !important;
                    width: 100% !important;
                    margin: 0 !important;
                    padding: 8px 0 !important;
                }

                .radio-group-mobile input[type="radio"] {
                    margin-right: 8px !important;
                    transform: scale(1.2) !important;
                }
            /* Fix for form grid alignment on mobile */
            .form-grid-mobile {
                grid-template-columns: 1fr !important;
                gap: 8px !important;
            }

            .form-label-mobile {
                text-align: left !important;
                margin-bottom: 4px !important;
                font-weight: 600 !important;
            }

            .form-input-mobile {
                width: 100% !important;
                margin: 0 !important;
            }
            /* Ensure proper spacing in grid layouts */
            .grid.grid-cols-1.md\\:grid-cols-3.gap-2.items-center {
                gap: 12px !important;
            }
            /* Better form section spacing */
            .life-tab-content .space-y-4,
            .life-tab-content .space-y-6,
            .health-tab-content .space-y-4,
            .health-tab-content .space-y-6 {
                gap: 16px !important;
            }
            /* Improved radio button appearance */
            input[type="radio"] {
                width: 20px !important;
                height: 20px !important;
            }
            /* Better label alignment */
            .text-sm.font-bold.text-gray-700 {
                font-size: 14px !important;
                line-height: 1.4 !important;
            }
            /* Ensure proper button stacking in mobile header menu */
            #mobileMenu .mobile-buttons {
                display: flex !important;
                flex-direction: column !important;
                gap: 10px !important;
                width: 100% !important;
            }

                #mobileMenu .mobile-buttons button {
                    width: 100% !important;
                    margin: 2px 0 !important;
                }
        }

        /* Fix for header buttons in 770-1025px range */
        @media (min-width: 770px) and (max-width: 1025px) {
            /* Header container adjustments */
            .container.mx-auto.px-4.py-2 .flex.items-center.justify-between {
                flex-direction: column;
                align-items: flex-start;
            }
            /* Logo and title adjustments */
            .header-logo-container {
                margin-bottom: 15px;
                width: 100%;
                justify-content: center;
            }
            /* Desktop contact info and buttons - make them behave like mobile menu */
            .hidden.md\\:flex.items-center.space-x-6 {
                display: flex !important;
                flex-direction: column;
                width: 100%;
                align-items: center;
                gap: 15px;
            }

                .hidden.md\\:flex.items-center.space-x-6 .text-right {
                    text-align: center !important;
                    width: 100%;
                }

                .hidden.md\\:flex.items-center.space-x-6 .flex.flex-col.space-y-2 {
                    width: 100%;
                    gap: 10px;
                }

                .hidden.md\\:flex.items-center.space-x-6 .flex.space-x-2 {
                    width: 100%;
                    gap: 10px;
                }
            /* Language selector for medium screens */
            .language-selector-container {
                width: 100%;
                margin-top: 10px;
            }
            /* Button styling for medium screens */
            .hidden.md\\:flex.items-center.space-x-6 button {
                width: 100% !important;
                padding: 12px 16px !important;
                font-size: 14px !important;
                text-align: center;
            }

            .hidden.md\\:flex.items-center.space-x-6 .flex.space-x-2 {
                display: flex !important;
                flex-direction: column;
                gap: 10px;
            }
            /* Specific button adjustments */
            .bg-united-blue.hover\\:bg-united-dark-blue,
            .bg-united-light-blue.hover\\:bg-united-dark-blue {
                width: 100% !important;
                display: block !important;
                margin: 5px 0 !important;
            }
        }


        :root {
            --primary: #034396;
            --primary-rgb: 3, 67, 150;
            --primary-dark: #02326f;
            --primary-light-solid: #3569ad;
            --primary-soft: rgba(3, 67, 150, 0.10);
        }


        /* Logo display follows the same direct image pattern as the Guinee reference site. */

        .bg-united-blue,
        .active-tab,
        .health-active-tab,
        .success-button {
            background-color: var(--primary) !important;
        }

            .hover\:bg-united-dark-blue:hover,
            .success-button:hover {
                background-color: var(--primary-dark) !important;
            }

        .text-united-blue,
        .text-united-dark-blue,
        .hover\:text-united-blue:hover,
        .hover\:text-united-dark-blue:hover {
            color: var(--primary) !important;
        }

        .border-united-blue,
        .focus\:border-united-blue:focus {
            border-color: var(--primary) !important;
        }

        .from-united-blue {
            --tw-gradient-from: var(--primary) var(--tw-gradient-from-position) !important;
            --tw-gradient-to: rgba(var(--primary-rgb), 0) var(--tw-gradient-to-position) !important;
            --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
        }

        .to-united-light-blue {
            --tw-gradient-to: var(--primary-light-solid) var(--tw-gradient-to-position) !important;
        }

        .bg-united-blue.bg-opacity-10 {
            background-color: var(--primary-soft) !important;
        }

        .theme-bg,
        .btn-theme {
            background-color: var(--primary) !important;
        }

            .theme-bg-hover:hover,
            .btn-theme:hover {
                background-color: var(--primary-dark) !important;
            }

        .theme-text {
            color: var(--primary) !important;
        }

        .theme-border {
            border-color: var(--primary) !important;
        }

        .theme-text-hover:hover {
            color: var(--primary-dark) !important;
        }

        .theme-focus:focus {
            border-color: var(--primary) !important;
            --tw-ring-color: rgba(var(--primary-rgb), 0.35) !important;
            box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.14) !important;
        }

        .theme-gradient {
            background-image: linear-gradient(to right, var(--primary), var(--primary-light-solid)) !important;
        }

        .theme-gradient:hover {
            background-image: linear-gradient(to right, var(--primary-light-solid), var(--primary-dark)) !important;
        }

        .theme-logo-border {
            border: 3px solid var(--primary) !important;
            border-radius: 12px;
            padding: 4px;
            background: #ffffff;
            box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.20);
            transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
        }

        .theme-logo-border:hover {
            box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.28);
        }

        .footer-logo-image {
            display: block;
            width: 192px;
            max-width: 100%;
            height: auto;
            object-fit: contain;
        }


        .theme-picker-wrap {
            display: flex;
            align-items: center;
            gap: 0.65rem;
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 9999px;
            padding: 0.45rem 0.75rem;
            box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
        }

            .theme-picker-wrap input[type="color"] {
                width: 36px;
                height: 36px;
                padding: 0;
                border: 2px solid #111827;
                border-radius: 9999px;
                background: transparent;
                cursor: pointer;
            }

        .service-card-row-centered {
            max-width: 880px;
            margin-left: auto;
            margin-right: auto;
        }

/* Daisy agency branding and seven-card services layout */
.agency-brand {
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.agency-brand:hover {
    color: inherit;
    text-decoration: none;
}

.agency-logo-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0.45rem 0.65rem;
    background: linear-gradient(145deg, #ffffff 0%, #fffaf6 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.22);
    border-radius: 0.9rem;
    box-shadow: 0 9px 24px rgba(75, 34, 13, 0.18), 0 2px 6px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.agency-brand:hover .agency-logo-card {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(75, 34, 13, 0.24), 0 3px 8px rgba(17, 24, 39, 0.10);
}

.agency-logo-image {
    display: block;
    width: 164px;
    height: auto;
    max-height: 74px;
    object-fit: contain;
}

.agency-brand-title,
.agency-brand-tagline {
    white-space: nowrap;
}

.service-card {
    margin-bottom: 0;
    min-width: 0;
    box-shadow: 0 4px 13px rgba(17, 24, 39, 0.06);
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card-image {
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

@media (max-width: 767px) {
    .header-logo-container.agency-brand {
        flex-direction: row;
        text-align: left;
        gap: 0.55rem;
    }

    .agency-logo-card {
        padding: 0.35rem 0.5rem;
        border-radius: 0.75rem;
    }

    .agency-logo-image {
        width: 122px;
        max-height: 56px;
    }

    .agency-brand-title {
        font-size: 0.95rem;
        line-height: 1.15;
        white-space: normal;
    }

    .agency-brand-tagline {
        font-size: 0.7rem;
        line-height: 1.2;
        white-space: normal;
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .agency-logo-image {
        width: 145px;
    }

    .agency-brand-title {
        font-size: 1.05rem;
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .site-header-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .site-header-row .header-logo-container {
        width: 100%;
        justify-content: center;
        margin-bottom: 0;
    }

    .site-header-row .header-desktop-content {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

/* Header and footer brand spacing refinements */
.header-logo-container.agency-brand {
    gap: 0.25rem;
}

.header-logo-container.agency-brand .agency-brand-copy {
    min-width: 0;
}

.footer-brand-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-brand-copy {
    min-width: 0;
    text-align: left !important;
}

.footer-brand-title {
    margin: 0 0 0.2rem;
    line-height: 1.2;
}

.footer-brand-tagline {
    margin: 0;
    line-height: 1.45;
}

.footer-tagline-line {
    display: block;
}

@media (min-width: 768px) {
    .footer-tagline-line {
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    .header-logo-container.agency-brand {
        gap: 0.35rem;
    }

    .footer-brand-block {
        flex-direction: column;
        justify-content: center;
        gap: 0.75rem;
    }

    .footer-brand-copy {
        width: 100%;
        text-align: center !important;
    }

    .footer-brand-tagline {
        max-width: 28rem;
        margin-left: auto;
        margin-right: auto;
    }
}

