:root {
            color-scheme: only light;
        }

        body {
            margin: 0;
            font-family: "Poppins", sans-serif;
            min-height: 100%;
            display: flex;
            flex-direction: column;
            background: linear-gradient(175deg, #0f3c6a 0%, #7bcaf5 50%, #a3d9f6 100%);
            color: rgba(230, 230, 255, 1);
            overflow-x: hidden;
        }

        html {
            height: 100%;
        }

        h1 {
            font-weight: normal;
            color: #a3d9f6;
        }

        #mainUI {
            display: none;
            flex: 1;
            flex-direction: column;
        }

        #splash {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            min-height: 100vh;
            min-height: 100svh;
            position: relative;
            background: linear-gradient(175deg, #0f3c6a 0%, #7bcaf5 50%, #a3d9f6 100%);
            text-align: center;
            padding: 60px 20px 40px;
            box-sizing: border-box;
        }

        .splash-sky {
            position: absolute;
            inset: 0;
            pointer-events: none;
            overflow: hidden;
        }

        .splash-cloud {
            position: absolute;
            opacity: 0.75;
        }

        .splash-cloud svg {
            display: block;
            filter: drop-shadow(0 4px 16px rgba(163, 217, 246, 0.2));
        }

        .splash-cloud.c1 {
            width: 260px;
            top: 6%;
            left: -40px;
            animation: cloudDrift 28s linear infinite;
        }
        .splash-cloud.c2 {
            width: 200px;
            top: 14%;
            right: -30px;
            opacity: 0.55;
            animation: cloudDrift 36s linear infinite reverse;
            animation-delay: -12s;
        }
        .splash-cloud.c3 {
            width: 300px;
            bottom: 12%;
            right: -60px;
            opacity: 0.45;
            animation: cloudDrift 44s linear infinite;
            animation-delay: -8s;
        }
        .splash-cloud.c4 {
            width: 180px;
            bottom: 20%;
            left: -20px;
            opacity: 0.5;
            animation: cloudDrift 32s linear infinite reverse;
            animation-delay: -20s;
        }

        @keyframes cloudDrift {
            0%   { transform: translateX(0px); }
            50%  { transform: translateX(30px); }
            100% { transform: translateX(0px); }
        }

        /* --- Main card --- */
        .splash-card {
            position: relative;
            z-index: 2;
            display: flex;
            flex-direction: column;
            align-items: center;
            background: rgba(15, 60, 106, 0.55);
            backdrop-filter: blur(18px) saturate(1.4);
            -webkit-backdrop-filter: blur(18px) saturate(1.4);
            border: 1px solid rgba(163, 217, 246, 0.25);
            border-radius: 24px;
            padding: 40px 36px 36px;
            max-width: 440px;
            width: 100%;
            box-sizing: border-box;
            box-shadow: 0 8px 40px rgba(5, 20, 45, 0.4), 0 1px 0 rgba(163, 217, 246, 0.1) inset;
            animation: cardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        @keyframes cardIn {
            from { opacity: 0; transform: translateY(28px) scale(0.97); }
            to   { opacity: 1; transform: translateY(0) scale(1); }
        }

        /* --- Logo area --- */
        .splash-logo-area {
            margin-bottom: 12px;
        }

        .splash-logo {
            width: min(52vw, 200px);
            height: auto;
            filter: drop-shadow(0 6px 20px rgba(5, 20, 45, 0.35));
            animation: logoFloat 5s ease-in-out infinite;
        }

        @keyframes logoFloat {
            0%, 100% { transform: translateY(0px); }
            50%       { transform: translateY(-6px); }
        }

        @media (max-height: 700px) {
            .splash-logo { width: min(40vw, 130px); }
        }

        /* --- Brand name + tagline --- */
        .splash-brand {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            margin-bottom: 20px;
        }

        .splash-brand-name {
            font-family: "Poppins", sans-serif;
            font-size: clamp(1.5rem, 5vw, 2rem);
            font-weight: 800;
            color: #ffffff;
            letter-spacing: -0.03em;
            text-shadow: 0 2px 12px rgba(5, 20, 45, 0.4);
        }

        .splash-brand-tag {
            font-family: "Poppins", sans-serif;
            font-size: 0.85rem;
            font-weight: 400;
            color: #a3d9f6;
            letter-spacing: 0.01em;
        }

        /* --- Headline --- */
        .splash-headline {
            font-family: "Poppins", sans-serif;
            font-size: clamp(1.45rem, 5vw, 1.85rem);
            font-weight: 700;
            line-height: 1.25;
            color: rgba(230, 230, 255, 1);
            margin: 0 0 14px 0;
            text-shadow: 0 2px 10px rgba(5, 20, 45, 0.3);
            letter-spacing: -0.02em;
        }

        .splash-headline-accent {
            color: #a3d9f6;
        }

        /* --- Subtitle --- */
        .splash-sub {
            font-family: "Poppins", sans-serif;
            font-size: 0.92rem;
            font-weight: 400;
            color: rgba(230, 230, 255, 0.8);
            line-height: 1.6;
            margin: 0 0 28px 0;
            max-width: 340px;
        }

        /* --- CTA Button (scoped to splash only) --- */
        .splash-cta {
            display: inline-flex !important;
            align-items: center;
            gap: 10px;
            padding: 15px 34px !important;
            background: rgba(230, 230, 255, 0.12) !important;
            color: rgba(230, 230, 255, 1) !important;
            font-family: "Poppins", sans-serif;
            font-size: 1rem !important;
            font-weight: 700;
            letter-spacing: 0.01em;
            border: 1.5px solid rgba(163, 217, 246, 0.5) !important;
            border-radius: 12px !important;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(5, 20, 45, 0.35);
            transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease !important;
            margin-bottom: 24px;
        }

        .splash-cta:hover {
            background: rgba(163, 217, 246, 0.2) !important;
            border-color: rgba(163, 217, 246, 0.8) !important;
            transform: translateY(-2px) !important;
            box-shadow: 0 8px 28px rgba(5, 20, 45, 0.4) !important;
            color: rgba(230, 230, 255, 1) !important;
        }

        .splash-cta:active {
            transform: translateY(0) !important;
        }

        /* --- Offline message --- */
        .splash-offline {
            align-items: center;
            gap: 6px;
            font-size: 0.82rem;
            color: rgba(255, 200, 180, 0.95);
            background: rgba(200, 60, 40, 0.18);
            border: 1px solid rgba(255, 150, 130, 0.3);
            border-radius: 8px;
            padding: 8px 14px;
            margin-bottom: 16px;
        }

        .splash-offline:not([hidden]) {
            display: flex;
        }
        
        .splash-trust {
            display: flex;
            gap: 20px;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 4px;
        }

        .trust-item {
            display: flex;
            align-items: center;
            gap: 5px;
            font-family: "Poppins", sans-serif;
            font-size: 0.75rem;
            font-weight: 500;
            color: rgba(230, 230, 255, 0.7);
        }

        .trust-item svg {
            flex-shrink: 0;
            stroke: #a3d9f6;
        }

        .splash-footer-area {
            position: relative;
            z-index: 2;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            margin-top: 24px;
            animation: cardIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
        }

        .splash-footer-area .nav-links-splash {
            display: flex;
            flex-wrap: wrap;
            gap: 4px 16px;
            justify-content: center;
            align-items: center;
            font-size: 0.82rem;
            top: auto !important;
            transform: none !important;
            position: static !important;
        }

        .splash-footer-area .nav-links-splash a {
            color: #6a6a6a;
            text-decoration: none;
            padding: 2px 8px;
            transition: color 0.15s ease;
        }

        .splash-footer-area .nav-links-splash a:hover {
            color: #0f3c6a;
        }

        .splash-footer-area .nav-links-splash.second {
            font-size: 0.75rem;
        }

        .splash-footer-area .nav-links-splash.second a {
            color: #6a6a6a;
        }

        .splash-footer-area .nav-links-splash.second a:hover {
            color: #0f3c6a;
        }

        .splash-footer-copy {
            font-size: 0.72rem;
            color: #0f3c6a;
            margin-top: 4px;
        }

        .splash-footer-copy a {
            color: #0f3c6a;
            text-decoration: none;
        }

        /* --- Spinner: hidden by default, shown only when .hidden is NOT present --- */
        #loadingSpinner {
            display: none;
        }

        #loadingSpinner:not(.hidden) {
            display: block;
        }

        /* =============================================
           RESPONSIVE — adattamento altezza mobile
           Soglie: <740px, <640px, <560px, <480px
        ============================================= */

        /* Breakpoint altezza — progressivamente più compatto */
        @media (max-height: 740px) {
            #splash { padding: 40px 20px 30px; }
            .splash-logo { width: min(38vw, 150px); }
            .splash-logo-area { margin-bottom: 8px; }
            .splash-brand { margin-bottom: 14px; }
            .splash-brand-name { font-size: 1.4rem; }
            .splash-brand-tag { font-size: 0.8rem; }
            .splash-headline { font-size: 1.3rem; margin-bottom: 10px; }
            .splash-sub { font-size: 0.85rem; margin-bottom: 20px; }
            .splash-card { padding: 28px 28px 24px; }
            .splash-footer-area { margin-top: 16px; gap: 6px; }
        }

        @media (max-height: 640px) {
            #splash { padding: 28px 20px 24px; }
            .splash-logo { width: min(30vw, 110px); }
            .splash-logo-area { margin-bottom: 6px; }
            .splash-brand { margin-bottom: 10px; }
            .splash-brand-name { font-size: 1.25rem; }
            .splash-brand-tag { font-size: 0.75rem; }
            .splash-headline { font-size: 1.15rem; line-height: 1.2; margin-bottom: 8px; }
            .splash-sub { font-size: 0.8rem; line-height: 1.45; margin-bottom: 16px; }
            .splash-cta { padding: 11px 28px !important; font-size: 0.9rem !important; margin-bottom: 16px; }
            .splash-card { padding: 22px 24px 20px; border-radius: 18px; }
            .splash-trust { gap: 12px; margin-top: 2px; }
            .trust-item { font-size: 0.7rem; }
            .splash-footer-area { margin-top: 12px; gap: 4px; }
            .splash-footer-area .nav-links-splash { font-size: 0.75rem; }
            .splash-footer-copy { font-size: 0.68rem; }
        }

        @media (max-height: 560px) {
            #splash { padding: 20px 16px 16px; }
            .splash-logo { width: min(25vw, 80px); }
            .splash-logo-area { margin-bottom: 4px; }
            .splash-brand { margin-bottom: 6px; }
            .splash-brand-name { font-size: 1.1rem; }
            .splash-brand-tag { display: none; }
            .splash-headline { font-size: 1rem; line-height: 1.2; margin-bottom: 6px; }
            .splash-sub { font-size: 0.75rem; line-height: 1.4; margin-bottom: 12px; }
            .splash-cta { padding: 9px 24px !important; font-size: 0.85rem !important; margin-bottom: 12px; }
            .splash-card { padding: 18px 20px 16px; border-radius: 14px; }
            .splash-trust { display: none; }
            .splash-footer-area { margin-top: 10px; }
        }

        @media (max-height: 480px) {
            .splash-sub { display: none; }
            .splash-headline br { display: none; }
            .splash-headline { font-size: 0.95rem; }
            .splash-footer-area .nav-links-splash.second { display: none; }
        }

        /* Breakpoint larghezza — solo per device molto stretti */
        @media (max-width: 360px) {
            .splash-card { padding: 22px 16px 20px; }
            .splash-brand-name { font-size: clamp(1.1rem, 7vw, 1.4rem); }
            .splash-headline { font-size: clamp(0.95rem, 5.5vw, 1.3rem); }
        }


        #toolbar {
            box-shadow: 0 6px 10px -3px rgba(0, 0, 0, 0.5);
            position: fixed;
            width: 100%;
            height: 50px;
            display: grid;
            align-items: center;
            grid-template-columns: 1fr auto 1fr;
            padding-left: 20px;
            background: #0f3c6a;
            z-index: 100;
        }

        .title {
            top: -50%;
            position: center;
            transform: translateX(-10%) translateY(-50%);
            font-size: 1.5rem;
            justify-self: center;
            text-align: center;
            font-weight: bold;
            text-decoration: none;
            color: #a3d9f6;
        }

        .nav-links-splash,
        .nav-links {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            text-align: left;
            align-items: center;
            font-size: 1.1rem;
            top: -50%;
            transform: translateY(-50%);
        }

        .nav-links-splash a,
        .nav-links a {
            color: rgba(230, 230, 255, 1);
            text-decoration: none;
        }

        .nav-links-splash a {
            padding: 0 10px;
            border-left: 1px solid #a3d9f6;
            border-right: 1px solid #a3d9f6;
        }

        #menu-toggle {
            position: relative;
            margin-left: 35px;
            margin-top: 85px;
            left: 10px;
            display: none;
            color: #a3d9f6;
            background: #0f3c6a;
            border: none;
            font-size: 1rem;
            cursor: pointer;
            z-index: 10000;
        }

        #installApp {
            margin-top: 10px;
            padding: 6px 10px;
            font-size: 0.8rem;
            transform: translateY(-12.5%);
        }

        #installApp.hidden {
            display: none;
        }

        #title_img {
            display: none;
            height: 32px;
            width: 32px;
        }

        #title_img.show {
            display: block;
        }

        @media (max-width: 1200px) {
            #installApp {
                transform: translateY(0);
            }

            .title {
                font-size: 1.1rem;
                transform: translateX(-20%) translateY(-30%);
                justify-self: center;
                text-align: right;
            }

            #toolbar {
                grid-template-columns: 1fr auto;
            }

            #menu-toggle {
                box-shadow: 0 6px 10px -3px rgba(0, 0, 0, 0.5);
                border-bottom: 2px solid rgba(230, 230, 255, 1);
                display: block;
                justify-self: end;
                margin-right: 20px;
            }

            #menu-toggle:hover {
                border-bottom: 2px solid rgba(230, 230, 255, 1);
                box-shadow: 0 6px 10px -3px rgba(0, 0, 0, 0.5);
                background: #0f3c6a;
                color: rgba(230, 230, 255, 1);
            }

            .nav-links {
                position: absolute;
                box-shadow: 0 6px 10px -3px rgba(0, 0, 0, 0.5);
                border-end-end-radius: 10px;
                border-bottom: 2px solid rgba(230, 230, 255, 1);
                border-right: 1px solid rgba(230, 230, 255, 1);
                font-size: 1.1rem;
                height: 330px;
                width: 150px;
                left: 0;
                right: 0;
                flex-direction: column;
                background: #0f3c6a;
                overflow: hidden;
                opacity: 1;
                z-index: 1000;
                justify-self: start;
            }

            .nav-links a {
                padding: 20px 10px 0 10px;
                border-top: 1px solid rgba(255, 255, 255, 0.1);
            }

            .nav-container {
                position: absolute;
                transform: translateY(-25%);
                transition: transform 0.3s ease, opacity 0.3s ease;
            }

            .nav-container.hidden {
                transform: translateY(-100%);
            }

            .nav-container.show {
                border-right: none;
                transform: translateY(280px);
            }
        }


        @media (max-width: 480px) {
            .title {
                transform: translateX(20%) translateY(-20%);
                justify-self: center;
                text-align: right;
            }

            body {
                font-size: 12px;
            }

            .nav-links-splash {
                font-size: 0.8rem;
            }

            .nav-links-splash a {
                padding: 0 5px;
            }
        }

        @media (max-width: 480px) {
            .nav-links-splash {
                font-size: 0.7rem;
            }
        }

        #toggleIcon {
            display: inline-block;
            transition: transform 0.3s ease;
        }

        #toggleIcon.open {
            transform: rotate(45deg);
        }

        .settings {
            position: fixed;
            top: 0;
            right: 0;
            width: 300px;
            height: 100%;
            background: #0f3c6a90;
            backdrop-filter: blur(18px) saturate(1.4);
            -webkit-backdrop-filter: blur(18px) saturate(1.4);
            border-left: 1px solid rgba(230, 230, 255, 1);
            box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
            padding: 10px 20px 10px 20px;
            overflow-y: auto;
            z-index: 999;
            transition: transform 0.3s ease;
            font-size: 0.9rem;
            gap: 20px;
        }


        h1 {
            font-size: 2rem;
        }

        @media (max-width: 360px) {
            .settings {
                width: 250px;
            }
        }

        .settings.closed {
            transform: translateX(95%);
        }

        #pdfContainer {
            flex: 1;
            padding-top: 60px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            background: linear-gradient(175deg, #0f3c6a 0%, #7bcaf5 50%, #a3d9f6 100%);
            background-attachment: fixed;
            position: relative;
        }

        #pdfContainer::before,
        #pdfContainer::after {
            content: '';
            position: fixed;
            pointer-events: none;
            z-index: 0;
            border-radius: 60% 40% 70% 30% / 50% 60% 40% 70%;
            filter: blur(40px);
            opacity: 0.5;
        }

        #pdfContainer::before {
            width: 420px;
            height: 320px;
            top: 80px;
            left: -100px;
        }

        #pdfContainer::after {
            width: 360px;
            height: 280px;
            bottom: 80px;
            right: -80px;
            border-radius: 40% 60% 35% 65% / 65% 35% 65% 35%;
        }

        #pdfContainer canvas {
            position: relative;
            z-index: 1;
        }

        #skyBg {
            position: fixed;
            top: 50px;
            left: 0;
            right: 0;
            bottom: 0;
            pointer-events: none;
            z-index: 0;
            overflow: hidden;
        }

        .sky-blob {
            position: absolute;
            pointer-events: none;
            animation: skyDrift calc(28s + var(--cd, 0s) * 0s) ease-in-out infinite;
            animation-duration: var(--dur, 15s);
            animation-delay: var(--cd, 0s);
        }

        .sky-cloud {
            position: absolute;
            pointer-events: none;
            opacity: 0.9;
            animation: skyDrift var(--dur, 10s) ease-in-out infinite;
            animation-delay: var(--cd, 0s);
            animation-direction: var(--dir, normal);
        }

        @keyframes skyDrift {
            0%   { translate: 0px 0px; }
            25%  { translate: var(--dx, 22px) -4px; }
            50%  { translate: var(--dx, 22px) 0px; }
            75%  { translate: 4px 4px; }
            100% { translate: 0px 0px; }
        }

        canvas {
            margin: 5px 0;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
            max-width: 100%;
            height: auto;
        }

        .cart-item {
            padding: 6px;
            margin: 4px 0;
            border: 1px solid #ddd;
            cursor: pointer;
            font-size: 0.95rem;
            border-radius: 10px;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            border-color: black;
            gap: 10px;
        }

        .cart-item.active {
            border-color: rgba(230, 230, 255, 1);
        }

        .cart-total {
            font-weight: bold;
            margin-top: 10px;
            font-size: 1.1rem;
        }

        footer {
            z-index: 9999;
            width: 100%;
            text-align: center;
            padding: 5vh 0 5vh 0;
            color: rgba(230, 230, 255, 1);
            font-size: 0.8rem;
        }

        @media(max-width: 360px) {
            footer {
                font-size: 0.7rem;
            }
        }

        footer a {
            color: rgba(230, 230, 255, 1);
            text-decoration: none;
            font-weight: bold;
        }

        .disclaimer {
            z-index: 9999;
            width: 100%;
            text-align: justify;
            padding: 5vh 0 0 0;
            color: rgba(230, 230, 255, 1);
            font-size: 0.6rem;
        }

        .disclaimer a {
            color: rgba(230, 230, 255, 1);
            text-decoration: none;
            font-weight: bold;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            margin-bottom: 20px;
        }

        .form-group label {
            font-weight: 600;
            color: #0f3c6a;
        }


        input[type="text"],
        input[type="number"],
        input[type="email"],
        input[type="tel"],
        textarea,
        select {
            width: 100%;
            padding: 12px 14px;
            border-radius: 10px;
            border: 2px solid rgba(15, 60, 106, 0.25);
            background: rgba(230, 230, 255, 1);
            font-family: "Poppins", sans-serif;
            font-size: 0.8rem;
            color: #0f3c6a;
            transition: all 0.25s ease;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
        }

        input:focus,
        textarea:focus,
        select:focus {
            outline: none;
            border-color: #0f3c6a;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }


        textarea {
            min-height: 80px;
            resize: vertical;
            border-radius: 10px;
            border: 2px solid rgba(15, 60, 106, 0.25);
            background: rgba(230, 230, 255, 1);
            font-family: "Poppins", sans-serif;
            font-size: 0.8rem;
            color: #0f3c6a;
            transition: all 0.25s ease;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
        }

        .btn,
        button {
            display: inline-block;
            border: none;
            border-radius: 10px;
            padding: 12px 20px;
            font-size: 1rem;
            font-weight: 600;
            font-family: "Poppins", sans-serif;
            transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        }

        .btn:not(:disabled),
        button:not(:disabled) {
            background: black;
            color: #a3d9f6;
            cursor: pointer;
        }

        .btn:not(:disabled):hover,
        button:not(:disabled):hover {
            background: rgba(230, 230, 255, 1);
            color: #0f3c6a;
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
        }

        .btn:not(:disabled):active,
        button:not(:disabled):active {
            transform: translateY(1px);
            box-shadow: 0 3px 7px rgba(0, 0, 0, 0.18);
        }

        .bnt:disabled button:disabled {
            background-color: #999;
            color: #eee;
            cursor: not-allowed;
            opacity: 0.6;
            transform: none;
        }

        #toggleSettingsBtn {
            background: #0f3c6a90;
            backdrop-filter: blur(18px) saturate(1.4);
            -webkit-backdrop-filter: blur(18px) saturate(1.4);
            position: fixed;
            top: 10px;
            right: 330px;
            width: 40px;
            height: 40px;
            color: #a3d9f6;
            border: none;
            border-radius: 8px;
            font-size: 2rem;
            font-weight: bold;
            cursor: pointer;
            z-index: 2000;
            border-left: 1px solid rgba(230, 230, 255, 1);
            transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease, right 0.3s ease;
            box-shadow: -5px 0 4px rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .spinner {
            position: fixed;
            top: 25%;
            left: 45%;
            background: none;
            border: 6px solid rgba(230, 230, 255, 1);
            border-top: 6px solid #0f3c6a;
            border-radius: 50%;
            width: 10vw;
            height: 10vw;
            animation: spin 1s linear infinite;
            margin-top: 80px;
            z-index: 99999;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        #loadingSpinner.hidden {
            display: none;
        }

        @media(max-width: 360px) {
            #toggleSettingsBtn {
                right: 280px;
            }
        }

        #toggleSettingsBtn:hover {
            color: rgba(230, 230, 255, 1);
        }

        #toggleSettingsBtn.closed {
            right: 10px;
        }

        .remove-btn {
            padding: 2px 6px;
            font-size: 0.8rem;
            background: red;
            color: #0f3c6a;
            border: none;
            cursor: pointer;
        }

        .remove-btn:hover {
            background: rgba(230, 230, 255, 1);
        }

        .btn-light {
            background: #a3d9f6;
            color: #0f3c6a;
        }

        .btn-light:hover {
            background: #8bc7e8;
        }

        label {
            top: 20px;
            margin-bottom: 20px;
            font-size: 0.9rem;
        }

        p {
            font-size: 0.9rem;
        }

        select {
            appearance: none;
            background-image: url("data:image/svg+xml;utf8,<svg fill='%230f3c6a' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
            background-repeat: no-repeat;
            background-position: right 14px center;
            background-size: 12px;
        }

        input[type="checkbox"],
        input[type="radio"] {
            accent-color: #0f3c6a;
            width: 12px;
            height: 12px;
            cursor: pointer;
        }

        .checkbox-wrap {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .checkbox-wrap input[type="checkbox"] {
            width: 20px;
            height: 20px;
            appearance: none;
            border: 2px solid #0f3c6a;
            border-radius: 4px;
            cursor: pointer;
            position: relative;
            background: #fff;
            transition: all 0.2s ease;
        }

        .checkbox-wrap input[type="checkbox"]:checked {
            background: #0f3c6a;
        }

        .checkbox-wrap input[type="checkbox"]:checked::after {
            content: "✔";
            color: #a3d9f6;
            position: absolute;
            top: -2px;
            left: 3px;
            font-size: 14px;
            font-weight: bold;
        }

        .checkbox-wrap label {
            color: #0f3c6a;
            font-weight: 500;
        }

        .input-error {
            border-color: #e63946 !important;
            box-shadow: 0 0 10px rgba(230, 57, 70, 0.3);
        }

        .error-text {
            color: #e63946;
            font-size: 0.9rem;
            margin-top: 5px;
        }

        .overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .6);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }

        .overlay.hidden {
            display: none;
        }

        .overlay-card {
            background: #0f3c6a;
            color: #a3d9f6;
            padding: 24px;
            border-radius: 8px;
            width: 100%;
            max-width: 420px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .overlay-card input {
            width: 70%;
            padding: 8px;
        }

        .overlay-card button {
            margin-top: 12px;
        }

        .disclaimer-label {
            font-size: 0.6rem;
            text-align: justify;
            text-align-last: center;
        }

        .disclaimer-codes {
            font-size: 0.6rem;
            text-align: justify;
        }