/* Generated by tools/build-client-assets.mjs. Do not edit directly. */
/* Source: ClientApp/css/components/theme-and-header.css */
/* CSS Variables for theme colors - default RGB(1, 54, 81) */
        :root {
            --primary: #013651;
            --primary-light: #4d7285;
            --primary-dark: #012638;
            --primary-rgb: 1, 54, 81;
            /* Backward compatibility for existing services classes */
            --theme-color: #013651;
            /* Cancel buttons must always stay maroon */
            --cancel: #800000;
            --cancel-light: #a52a2a;
            --cancel-dark: #600000;
        }

        /* Theme utility classes */
        .bg-united-blue,
        .theme-bg,
        .btn-theme,
        .theme-bg {
            background-color: var(--primary) !important;
        }

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

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

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

        .border-united-blue,
        .theme-border,
        .border-\[\#800000\] {
            border-color: var(--primary) !important;
        }

        .from-united-blue,
        .from-\[\#800000\],
        .from-blue-500 {
            --tw-gradient-from: var(--primary) !important;
            --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(var(--primary-rgb), 0)) !important;
        }

        .to-united-light-blue,
        .to-\[\#a52a2a\],
        .to-blue-700 {
            --tw-gradient-to: var(--primary-light) !important;
        }

        .hover\:from-\[\#a52a2a\]:hover,
        .hover\:from-blue-600:hover {
            --tw-gradient-from: var(--primary-light) !important;
        }

        .hover\:to-\[\#5a0000\]:hover,
        .hover\:to-blue-800:hover {
            --tw-gradient-to: var(--primary-dark) !important;
        }

        .bg-gradient-to-r.from-united-blue.to-united-light-blue,
        .bg-gradient-to-r.from-\[\#800000\].to-\[\#a52a2a\],
        .btn-theme-gradient {
            background: linear-gradient(to right, var(--primary), var(--primary-light)) !important;
        }

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

        .focus\:ring-\[\#800000\]:focus {
            --tw-ring-color: rgba(var(--primary-rgb), 0.45) !important;
        }

        .focus\:border-\[\#800000\]:focus {
            border-color: var(--primary) !important;
        }

        .success-icon,
        .success-title {
            color: var(--primary) !important;
        }

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

        .success-button {
            background-color: var(--primary) !important;
        }

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

        /* Cancel buttons always maroon, independent of theme picker */
        .btn-cancel,
        .btn-cancel-maroon {
            background: linear-gradient(to right, var(--cancel), var(--cancel-dark)) !important;
            color: #ffffff !important;
            border-color: var(--cancel) !important;
        }

            .btn-cancel:hover,
            .btn-cancel-maroon:hover {
                background: linear-gradient(to right, var(--cancel-light), var(--cancel-dark)) !important;
                color: #ffffff !important;
            }

        .cancel-text,
        .hover\:text-\[\#600000\]:hover {
            color: var(--cancel-dark) !important;
        }

        /* Hero Video Banner */
        .saferisk-video-hero {
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            padding: 3rem 0;
            overflow: visible;
        }

        .saferisk-hero-layout {
            display: flex;
            align-items: center;
            gap: 2rem;
        }

        .saferisk-badge-wrap {
            width: 25%;
            display: flex;
            justify-content: flex-start;
            align-items: center;
        }

        .saferisk-years-badge {
            width: min(300px, 100%);
            height: auto;
            object-fit: contain;
            filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
        }

        .saferisk-video-wrap {
            width: 75%;
            position: relative;
            border-radius: 1.25rem;
            overflow: hidden;
            background: #000;
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
            border: 4px solid rgba(255, 215, 0, 0.85);
            aspect-ratio: 16 / 7;
        }

        .saferisk-hero-video {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            pointer-events: none;
        }

        .saferisk-video-language {
            position: absolute;
            top: 1rem;
            right: 1rem;
            z-index: 9999;
            pointer-events: auto;
        }

            .saferisk-video-language .language-dropdown,
            .saferisk-video-language .language-dropdown-content,
            .saferisk-video-language button {
                pointer-events: auto;
            }

            .saferisk-video-language .language-dropdown-content {
                left: auto !important;
                right: 0 !important;
                transform: none !important;
            }


.site-header {
    z-index: 10000 !important;
    isolation: isolate;
}

/* Source: ClientApp/css/components/forms-and-modals.css */
/* Shared form and modal behavior */
:root {
    --site-header-height: 0px;
    --form-modal-edge-gap: clamp(0.75rem, 2vw, 1.25rem);
}

#help {
    resize: none;
    overflow-y: hidden;
    min-height: 60px;
}

/* Form overlays cover the complete viewport and start near its top, matching
   the supplied popup reference instead of being pushed below the header. */
#quotePopup.form-modal-overlay,
#businessQuotePopup.form-modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: auto;
    box-sizing: border-box;
    padding: var(--form-modal-edge-gap);
    /* Keep forms anchored directly below the header instead of vertically
       centering them lower in the available viewport. */
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    overscroll-behavior: contain;
    z-index: 10001;
}

.form-modal-panel {
    position: relative;
    width: 100%;
    max-height: 100%;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

#quotePopup > .quote-modal-panel {
    max-height: min(90vh, 100%);
}

#businessQuotePopup > .business-quote-modal-panel {
    max-height: min(85vh, 100%);
}

/* Success Modal Styles */
.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);
}

.maroon-line {
    height: 2px;
    background-color: var(--primary);
    margin: 10px 0;
}

/* Validation Modal Styles */
.validation-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: 1001;
}

.validation-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 11000;
}

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

@keyframes loading-spin {
    to { transform: rotate(360deg); }
}

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

button:disabled {
    cursor: not-allowed;
}

/* Source: ClientApp/css/components/video-player-primary.css */
/* Video Section Styles */
        .video-hover-container {
            position: relative;
            overflow: hidden;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            /* FIXED SIZE */
            width: 385px;
            max-width: 385px;
            min-width: 385px;
            height: 216px !important;
            min-height: 216px;
            margin-left: 0;
        }

            /* Hover effect */
            .video-hover-container:hover {
                transform: translateY(-5px);
                box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            }

            /* Self-hosted HTML5 video - exact size */
            .video-hover-container .custom-education-video {
                position: absolute;
                top: 0;
                left: 0;
                width: 385px !important;
                height: 216px !important;
                border: none;
                z-index: 20;
            }

        /* Thumbnail */
        .video-thumbnail {
            width: 385px;
            height: 216px !important;
            min-height: 216px !important;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .video-hover-container:hover .video-thumbnail {
            transform: scale(1.05);
        }

        /* Overlay */
        .video-hover-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 385px;
            height: 216px;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 10;
        }

        .video-hover-container:hover .video-hover-overlay {
            opacity: 1;
        }

        /* Play icon */
        .video-play-icon {
            font-size: 48px;
            color: white;
            background: rgba(229, 62, 62, 0.8);
            width: 80px;
            height: 80px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease, background 0.3s ease;
        }

        .video-hover-container:hover .video-play-icon {
            transform: scale(1.1);
            background: rgba(229, 62, 62, 1);
        }

        /* YouTube badge */
        .video-youtube-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: #FF0000;
            color: white;
            font-size: 12px;
            font-weight: bold;
            padding: 4px 8px;
            border-radius: 4px;
            z-index: 15;
        }


        /* SafeRisk branding strip - visible on thumbnail and during video playback */
        .video-brand-strip {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 35;
            height: 38px;
            min-height: 38px;
            padding: 0 14px;
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(3px);
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            gap: 8px;
            border-bottom-left-radius: 0.45rem;
            border-bottom-right-radius: 0.45rem;
            pointer-events: none;
            box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.08);
        }

        .video-brand-website {
            font-size: 10px;
            line-height: 1;
            font-weight: 500;
            color: #5b6470;
            white-space: nowrap;
            justify-self: start;
            align-self: center;
        }

        .video-brand-phone {
            background: var(--primary, #800000);
            color: #ffffff;
            font-size: 11px;
            line-height: 1;
            font-weight: 700;
            min-width: 116px;
            height: 28px;
            padding: 0 18px;
            border-radius: 9999px;
            white-space: nowrap;
            justify-self: center;
            align-self: center;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transform: none;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
        }

        .video-brand-logo {
            height: 23px;
            width: auto;
            max-width: 78px;
            object-fit: contain;
            justify-self: end;
            align-self: center;
        }

        @media (max-width: 480px) {
            .video-brand-strip {
                height: 34px;
                min-height: 34px;
                padding: 0 8px;
                gap: 4px;
            }

            .video-brand-website {
                font-size: 8px;
            }

            .video-brand-phone {
                font-size: 9px;
                min-width: 92px;
                height: 25px;
                padding: 0 12px;
                border-radius: 9999px;
                transform: none;
            }

            .video-brand-logo {
                height: 18px;
                max-width: 58px;
            }
        }


.video-hover-container {
    position: relative;
    z-index: 0;
    isolation: isolate;
    contain: paint;
    overflow: hidden;
}

.video-hover-container .video-fullscreen-toggle,
.video-hover-container .youtube-hover-shield,
.video-hover-container .video-brand-strip,
.video-hover-container .video-youtube-badge {
    max-width: 100%;
}

/* Source: ClientApp/css/components/language-selector.css */
/* Language dropdown styles */
        .language-dropdown {
            position: relative;
        }

        .language-dropdown-content {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background-color: white;
            min-width: 220px;
            box-shadow: 0 8px 16px rgba(0,0,0,0.1);
            z-index: 99999;
            border-radius: 8px;
            overflow: hidden;
            margin: 0 auto;
        }

        .language-option {
            padding: 10px 15px;
            cursor: pointer;
            transition: background-color 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

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

        .language-flag {
            width: 20px;
            height: 15px;
            border-radius: 2px;
        }

        /* Hero section language dropdown specific styles */
        .hero-language-dropdown .language-dropdown-content {
            left: 50%;
            transform: translateX(-50%);
        }

        /* Two-column language dropdown styles */
        .language-grid-header {
            font-weight: 600;
            font-size: 0.75rem;
            color: #6b7280;
            background-color: #f9fafb;
            padding: 0.5rem 1rem;
            border-bottom: 1px solid #e5e7eb;
        }

        .language-grid-item {
            transition: background-color 0.2s;
        }

            .language-grid-item:hover {
                background-color: #f5f5f5;
            }

        .language-grid-left {
            padding: 0.75rem 1rem;
            font-size: 0.875rem;
            color: #374151;
            border-right: 1px solid #f3f4f6;
        }

        .language-grid-left {
            display: flex;
            justify-content: center; /* horizontal centering */
            align-items: center; /* vertical centering if needed */
            text-align: center; /* text inside also centered */
        }

        .language-grid-right {
            padding: 0.75rem 1rem;
            font-size: 0.875rem;
            color: #374151;
        }

        /* Mobile language grid */
        .mobile-language-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.25rem;
        }

        .mobile-language-header {
            font-weight: 600;
            font-size: 0.75rem;
            color: #6b7280;
            text-align: center;
            padding: 0.25rem;
            margin-bottom: 0.25rem;
        }

        .mobile-language-item {
            background-color: #f3f4f6;
            padding: 0.5rem;
            border-radius: 0.375rem;
            font-size: 0.875rem;
            text-align: center;
            transition: background-color 0.2s;
        }

            .mobile-language-item:hover {
                background-color: #e5e7eb;
            }


/* Mobile native language select: reliable on narrow screens and touch devices */
.mobile-language-selector {
    width: 100%;
}

.mobile-language-select-wrap {
    position: relative;
    width: 100%;
}

.mobile-language-select {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 2.75rem 0.75rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.625rem;
    background: #fff;
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    appearance: none;
    -webkit-appearance: none;
}

.mobile-language-select:focus {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    border-color: #2563eb;
}

.mobile-language-select-wrap > i {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
    color: #374151;
    pointer-events: none;
}

[data-language-code].is-active {
    box-shadow: inset 0 0 0 2px #2563eb;
}

/* Source: ClientApp/css/pages/home.css */
/* Self-hosted HTML5 video player.
                                           We no longer use a YouTube iframe, so account/channel names cannot appear. */
        .video-hover-container .custom-education-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100% !important;
            height: 100% !important;
            object-fit: cover;
            background: #000;
            border: none;
            z-index: 20;
        }

        .video-hover-container.is-video-playing {
            background: #000;
        }

            .video-hover-container.is-video-playing .video-brand-strip {
                z-index: 45;
                pointer-events: none;
            }

        .video-fullscreen-toggle {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 80;
            width: 38px;
            height: 38px;
            border: 0;
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.72);
            color: #ffffff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
        }

            .video-fullscreen-toggle:hover {
                background: rgba(0, 0, 0, 0.9);
            }

        video.custom-education-video::-webkit-media-controls-fullscreen-button {
            display: none !important;
        }

        .video-hover-container:fullscreen,
        .video-hover-container:-webkit-full-screen {
            width: 100vw !important;
            max-width: none !important;
            min-width: 100vw !important;
            height: 100vh !important;
            min-height: 100vh !important;
            border-radius: 0 !important;
            background: #000;
            overflow: hidden;
        }

            .video-hover-container:fullscreen .custom-education-video,
            .video-hover-container:-webkit-full-screen .custom-education-video {
                width: 100vw !important;
                height: 100vh !important;
                object-fit: contain;
                background: #000;
            }

            .video-hover-container:fullscreen .video-brand-strip,
            .video-hover-container:-webkit-full-screen .video-brand-strip {
                left: 50%;
                right: auto;
                bottom: 24px;
                width: min(92vw, 720px);
                height: 54px;
                min-height: 54px;
                padding: 0 20px;
                border-radius: 14px;
                transform: translateX(-50%);
                z-index: 99999;
            }

            .video-hover-container:fullscreen .video-brand-website,
            .video-hover-container:-webkit-full-screen .video-brand-website {
                font-size: 15px;
            }

            .video-hover-container:fullscreen .video-brand-phone,
            .video-hover-container:-webkit-full-screen .video-brand-phone {
                font-size: 16px;
                min-width: 170px;
                height: 38px;
            }

            .video-hover-container:fullscreen .video-brand-logo,
            .video-hover-container:-webkit-full-screen .video-brand-logo {
                height: 34px;
                max-width: 105px;
            }

            .video-hover-container:fullscreen .video-fullscreen-toggle,
            .video-hover-container:-webkit-full-screen .video-fullscreen-toggle {
                top: 24px;
                right: 24px;
                z-index: 99999;
                width: 46px;
                height: 46px;
                font-size: 18px;
            }

        .video-hover-container .youtube-education-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100% !important;
            height: 100% !important;
            background: #000;
            border: none;
            z-index: 20;
            pointer-events: none !important;
        }

        .youtube-hover-shield {
            position: absolute;
            inset: 0;
            z-index: 45;
            border: 0;
            padding: 0;
            margin: 0;
            background: transparent;
            cursor: pointer;
        }

        .video-hover-container.is-youtube-paused .youtube-hover-shield::after {
            content: '\f04b';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 68px;
            height: 68px;
            border-radius: 9999px;
            background: rgba(0, 0, 0, 0.42);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
        }

        .video-hover-container.is-video-playing {
            background: #000;
        }

            .video-hover-container.is-video-playing .video-thumbnail,
            .video-hover-container.is-video-playing .video-hover-overlay,
            .video-hover-container.is-video-playing .video-play-icon,
            .video-hover-container.is-video-playing .video-youtube-badge {
                display: none !important;
                opacity: 0 !important;
                visibility: hidden !important;
            }

            .video-hover-container.is-video-playing .video-brand-strip {
                z-index: 60;
                pointer-events: none;
            }

        .video-hover-container:fullscreen .youtube-education-video,
        .video-hover-container:-webkit-full-screen .youtube-education-video {
            width: 100vw !important;
            height: 100vh !important;
            background: #000;
        }

        .video-hover-container:fullscreen .youtube-hover-shield,
        .video-hover-container:-webkit-full-screen .youtube-hover-shield {
            z-index: 99970;
        }

        /* Style for watch video buttons */
        .watch-video-btn {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            min-width: 120px !important;
            white-space: nowrap !important;
        }

        /* Video duration text */
        .video-duration-text {
            min-width: 80px !important;
            text-align: center !important;
            white-space: nowrap !important;
        }

        /* Quote buttons alignment fix */
        #services .bg-gray-50 button {
            min-height: 44px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            text-align: center !important;
            white-space: normal !important;
            line-height: 1.25 !important;
            overflow-wrap: break-word;
            padding-left: 12px !important;
            padding-right: 12px !important;
            width: 100% !important;
        }

        /* Ensure service cards have consistent height */
        #services .grid.md\:grid-cols-2.lg\:grid-cols-3 > div {
            display: flex !important;
            flex-direction: column !important;
            height: 100% !important;
        }

        #services .bg-gray-50 p.text-gray-600 {
            flex-grow: 1 !important;
            min-height: 120px !important;
        }

        /* Services section images fixed height */
        #services .w-full.h-40 {
            height: 192px !important;
            min-height: 192px !important;
        }

        /* Video card alignment fix */
        #videos .grid.md\:grid-cols-2 > div {
            display: flex !important;
            flex-direction: column !important;
            height: 100% !important;
        }

        #videos .bg-gray-50 .mb-4 {
            flex-grow: 1 !important;
        }

        /* Form grid alignment fix */
        #quotePopup .grid.grid-cols-3 {
            align-items: center !important;
            min-height: 48px !important;
        }

        #businessQuotePopup .grid.grid-cols-1.md\:grid-cols-3 {
            align-items: center !important;
            min-height: 52px !important;
        }

        /* Hero section button alignment */
        .hero-section button {
            min-width: 160px !important;
            white-space: nowrap !important;
            justify-content: center !important;
        }

        /* Quote section buttons */
        #quote .flex a {
            min-width: 180px !important;
            white-space: nowrap !important;
            justify-content: center !important;
        }

        /* Ensure text elements don't cause layout shifts */
        [data-i18n] {
            transition: none !important;
        }

        /* Form label width consistency */
        label[for], .text-sm.font-bold.text-gray-700 {
            min-width: 120px !important;
            text-align: left !important;
        }

        /* Footer links alignment */
        footer ul li a {
            white-space: nowrap !important;
            display: block !important;
        }

/* Source: ClientApp/css/responsive.css */
/* Additional mobile-specific fixes */
        @media (max-width: 768px) {
            /* Fix form input widths on mobile */
            input, select, textarea {
                max-width: 100% !important;
            }
            /* Fix popup forms on mobile */
            #quotePopup .grid.grid-cols-3 > div {
                grid-column: span 1 !important;
            }

            #quotePopup .grid.grid-cols-3 label {
                grid-column: span 1 !important;
                margin-bottom: 5px;
                min-width: 100% !important;
            }

            #quotePopup .grid.grid-cols-3 input,
            #quotePopup .grid.grid-cols-3 textarea {
                grid-column: span 1 !important;
            }
            /* Fix business form on mobile */
            #businessQuotePopup .grid.grid-cols-1.md\:grid-cols-3 {
                display: flex;
                flex-direction: column;
                gap: 10px;
            }

                #businessQuotePopup .grid.grid-cols-1.md\:grid-cols-3 > * {
                    width: 100%;
                }
            /* Fix hero badge positioning on mobile */
            .hero-section .mb-6.md\:mb-0.md\:w-1\/4 {
                width: 100% !important;
                margin-bottom: 20px;
            }

            .hero-section .text-center.md\:w-3\/4 {
                width: 100% !important;
            }
            /* Fix service images on mobile */
            #services .w-full.h-40 {
                height: 150px !important;
            }
            /* Fix header logo on mobile */
            header .flex.items-center.space-x-2 {
                justify-content: center;
                text-align: center;
            }
            /* Fix mobile menu language buttons */
            #mobileMenu .grid.grid-cols-2 button {
                padding: 10px 5px;
                font-size: 13px;
            }
            /* Mobile language dropdown adjustments */
            .language-dropdown-content {
                min-width: 180px !important;
            }

            .language-grid-left,
            .language-grid-right {
                padding: 0.5rem 0.75rem;
                font-size: 0.8125rem;
            }
        }

        /* Responsive adjustments */
        @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;
            }
            /* Success modal adjustments for mobile */
            .success-content {
                padding: 20px;
                margin: 15px;
                width: 95%;
            }

            .success-icon {
                font-size: 36px;
            }

            .success-title {
                font-size: 20px;
            }

            .success-button {
                width: 100%;
                padding: 12px 20px;
            }
            /* Business quote popup mobile styles */
            #businessQuotePopup > .business-quote-modal-panel {
                width: 95%;
                margin: 0 auto;
                padding: 15px;
                max-height: 100%;
            }

            .grid.grid-cols-1.md\:grid-cols-3 {
                grid-template-columns: 1fr !important;
                gap: 10px;
            }

                .grid.grid-cols-1.md\:grid-cols-3 > label {
                    text-align: left;
                    margin-bottom: 5px;
                    min-width: 100% !important;
                }

            .col-span-2 {
                grid-column: span 1 !important;
                width: 100%;
            }
            /* Validation modal mobile styles */
            .validation-content {
                padding: 15px;
                margin: 10px;
                width: 95%;
            }
            /* Video section mobile styles */
            .grid.md\:grid-cols-2 > div {
                margin-bottom: 20px;
                width: 100%;
            }

            .video-thumbnail {
                width: 100% !important;
                height: 200px !important;
            }
            /* Video hover container mobile adjustments */
            .video-hover-container {
                width: 100% !important;
                max-width: 100% !important;
                min-width: 100% !important;
                min-height: 200px !important;
                height: 200px !important;
                margin-left: 0;
            }

                .video-hover-container .custom-education-video {
                    width: 100% !important;
                    height: 200px !important;
                }

            .video-hover-overlay {
                width: 100% !important;
                height: 200px !important;
            }
            /* Hero section mobile adjustments */
            .hero-section .container {
                flex-direction: column;
                text-align: center;
                padding: 20px 10px;
            }

            .hero-section .mb-15 {
                margin-bottom: 2rem;
            }

            .hero-language-dropdown {
                order: 2;
                margin: 15px 0;
                width: 100%;
                display: flex;
                justify-content: center;
            }

                .hero-language-dropdown .language-dropdown-content {
                    left: 50%;
                    transform: translateX(-50%);
                    width: 180px;
                }
            /* Mobile button adjustments */
            .watch-video-btn {
                min-width: 110px !important;
                width: auto !important;
                font-size: 14px;
            }

            #services .bg-gray-50 button {
                min-height: 48px !important;
                font-size: 14px;
                width: 100% !important;
            }
            /* Service section mobile height */
            #services .bg-gray-50 p.text-gray-600 {
                min-height: auto !important;
                margin-bottom: 15px;
            }
            /* Services grid on mobile */
            #services .grid.md\:grid-cols-2.lg\:grid-cols-3 {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            /* Quote section buttons on mobile */
            #quote .flex.flex-col.sm\:flex-row {
                flex-direction: column;
                gap: 10px;
                width: 100%;
            }

            #quote .flex a {
                min-width: 100% !important;
                justify-content: center;
                width: 100%;
            }
            /* Form adjustments for mobile */
            #quotePopup > .quote-modal-panel {
                width: 95%;
                margin: 0 auto;
                padding: 15px;
                max-height: 100%;
            }

            #quotePopup .grid.grid-cols-3 {
                grid-template-columns: 1fr;
                gap: 5px;
            }

                #quotePopup .grid.grid-cols-3 label {
                    text-align: left;
                    margin-bottom: 5px;
                    min-width: 100% !important;
                }
            /* Footer mobile adjustments */
            footer .grid.md\:grid-cols-4 {
                grid-template-columns: 1fr;
                gap: 30px;
            }
            /* Hero title mobile */
            .hero-section h2 {
                font-size: 2rem;
                line-height: 1.2;
                padding: 0 10px;
            }

            .hero-section p {
                font-size: 1rem;
                padding: 0 10px;
            }
            /* Services title mobile */
            #services .text-center h3 {
                font-size: 2rem;
                padding: 0 10px;
            }
            /* Quote section grid mobile */
            #quote .grid.md\:grid-cols-3 {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            /* Header buttons on mobile */
            .hidden.lg\:flex.items-center.space-x-2 {
                display: none !important;
            }
            /* Mobile menu improvements */
            #mobileMenu {
                border-top: 1px solid #e5e7eb;
                margin-top: 10px;
                padding-top: 20px;
            }
                /* Language grid in mobile menu */
                #mobileMenu .grid.grid-cols-2 {
                    grid-template-columns: repeat(2, 1fr);
                    gap: 10px;
                }
                /* Fix mobile menu padding */
                #mobileMenu .space-y-4 {
                    padding: 0 10px;
                }
            /* Fix video card spacing */
            #videos .grid.md\:grid-cols-2 {
                gap: 20px;
            }
            /* Fix hero section buttons on mobile */
            .hero-section .flex.flex-col.sm\:flex-row {
                flex-direction: column;
                gap: 10px;
                width: 100%;
                max-width: 300px;
                margin: 0 auto;
            }

            .hero-section button {
                width: 100% !important;
                min-width: 100% !important;
            }
            /* Fix about section on mobile */
            #about .grid.md\:grid-cols-2.lg\:grid-cols-4 {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }
            /* Fix popup close button on mobile */
            #businessQuotePopup button.absolute.top-3.right-3 {
                top: 10px;
                right: 10px;
            }
            /* Fix business form spacing */
            #businessQuotePopup .space-y-4 {
                gap: 15px;
            }
        }

        /* Tablet adjustments */
        @media (min-width: 769px) and (max-width: 1024px) {
            #services .bg-gray-50 p.text-gray-600 {
                min-height: 140px !important;
            }

            .watch-video-btn {
                min-width: 115px !important;
            }
            /* Tablet responsive grid */
            #services .grid.md\:grid-cols-2.lg\:grid-cols-3 {
                grid-template-columns: repeat(2, 1fr);
            }
            /* Video grid on tablet */
            #videos .grid.md\:grid-cols-2 {
                grid-template-columns: 1fr;
            }

            .video-hover-container {
                width: 100% !important;
                max-width: 100% !important;
            }
            /* Tablet hero adjustments */
            .hero-section .container {
                padding: 30px 20px;
            }

            .hero-section h2 {
                font-size: 3rem;
            }
            /* Tablet form adjustments */
            #businessQuotePopup > .business-quote-modal-panel {
                width: 90%;
                max-width: 700px;
            }
        }

        /* Small mobile devices */
        @media (max-width: 480px) {
            /* Smaller text for very small screens */
            .hero-section h2 {
                font-size: 1.8rem;
            }

            #services .text-center h3,
            #about-title,
            #videos-title,
            #quote-title {
                font-size: 1.8rem;
            }
            /* Smaller buttons */
            .hero-section button,
            #services .bg-gray-50 button,
            .watch-video-btn {
                font-size: 13px;
                padding: 10px 15px;
            }
            /* Smaller video containers */
            .video-hover-container {
                height: 180px !important;
                min-height: 180px !important;
            }

            .video-thumbnail {
                height: 180px !important;
            }

            .video-hover-overlay {
                height: 180px !important;
            }

            .video-hover-container .custom-education-video {
                height: 180px !important;
            }
            /* Smaller service images */
            #services .w-full.h-40 {
                height: 120px !important;
                min-height: 120px !important;
            }
            /* About section single column on very small screens */
            #about .grid.md\:grid-cols-2.lg\:grid-cols-4 {
                grid-template-columns: 1fr;
            }
            /* Header logo smaller */
            header img {
                height: 40px !important;
            }
            /* Mobile menu smaller text */
            #mobileMenu .text-sm {
                font-size: 12px;
            }
            /* Mobile language dropdown smaller */
            .language-dropdown-content {
                min-width: 160px !important;
            }

            .language-grid-left,
            .language-grid-right {
                padding: 0.4rem 0.6rem;
                font-size: 0.75rem;
            }
        }

        @media (max-width: 768px) {
            .saferisk-video-hero {
                padding: 2rem 0;
            }

            .saferisk-hero-layout {
                flex-direction: column;
                gap: 1.25rem;
            }

            .saferisk-badge-wrap,
            .saferisk-video-wrap {
                width: 100%;
            }

            .saferisk-badge-wrap {
                justify-content: center;
            }

            .saferisk-years-badge {
                width: min(170px, 55vw);
            }

            .saferisk-video-wrap {
                aspect-ratio: 16 / 10;
                border-width: 3px;
                /* Keep the language list outside the video frame instead of clipping it. */
                overflow: visible;
                z-index: 20;
            }

            .saferisk-hero-video {
                border-radius: calc(1.25rem - 4px);
                overflow: hidden;
            }

            .saferisk-video-language {
                top: 0.75rem;
                right: 0.75rem;
                z-index: 100001;
            }

            .hero-language-dropdown .language-dropdown-content {
                width: min(250px, calc(100vw - 2rem));
                min-width: 0 !important;
                max-height: min(330px, calc(100vh - 10rem));
                overflow-x: hidden;
                overflow-y: auto;
                overscroll-behavior: contain;
                -webkit-overflow-scrolling: touch;
            }
        }


/* Global responsive form safeguards */
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe { max-width: 100%; }

form input:not([type="checkbox"]):not([type="radio"]),
form select,
form textarea {
    max-width: 100%;
    min-width: 0;
}

.form-modal-panel form,
.form-modal-panel form > *,
.form-modal-panel .grid,
.form-modal-panel .col-span-2 {
    min-width: 0;
}

@media (max-width: 767px) {
    .site-header .container { padding-left: 0.75rem; padding-right: 0.75rem; }
    .site-header h1 { font-size: 1rem; line-height: 1.2; }
    .site-header p { font-size: 0.75rem; }
    #mobileMenu { max-height: calc(100dvh - var(--site-header-height, 72px)); overflow-y: auto; }

    .form-modal-overlay {
        padding: 0.5rem !important;
        align-items: flex-start !important;
    }
    .form-modal-panel {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 1rem !important;
        border-radius: 0.75rem !important;
    }
    .form-modal-panel h2 {
        padding-left: 1.75rem;
        padding-right: 1.75rem;
        font-size: 1.25rem !important;
        line-height: 1.35;
    }
    .form-modal-panel .grid[class*="md:grid-cols-"],
    #quotePopup .grid.grid-cols-3 {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .form-modal-panel label { min-width: 0 !important; }
    .form-modal-panel input:not([type="checkbox"]):not([type="radio"]),
    .form-modal-panel select,
    .form-modal-panel textarea {
        width: 100% !important;
        font-size: 16px;
    }
    .form-modal-panel .flex.justify-center.gap-3 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }
    .form-modal-panel .flex.justify-center.gap-3 > button {
        width: 100%;
        min-width: 0 !important;
        white-space: normal;
    }
    #helpError { margin-left: 0 !important; }
}

@media (max-width: 380px) {
    .form-modal-panel .flex.justify-center.gap-3 { grid-template-columns: 1fr; }
    .site-header img { height: 2.25rem !important; }
}
