/* CSS from main.css and calculators.css */
        :root {
            --main-color: #1A48EE;
            --secondary-color: #008AFF;
            --tertiary-color: #2c20E6;
            --secondary-background: #f9f9f9;
            --main-background: #e5f3ff;
            --tertiary-background: #e6e5ea;
            --color-white: #ffffff;
            --color-error-dark: #c53030;
            --border-color: #e2e8f0;
            --color-gray: #4a5568;
            --color-light-gray: #ccc;
            --color-very-light-gray: #e0e0e0;
        }
        * {
            box-sizing: border-box;
        }
        body {
            margin: 0;
            font-family: 'Inter', Arial, Helvetica, sans-serif;
            background-color: var(--main-background);
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            color: #1a202c;
        }
        h1, h2 {
            width: 100%;
            display: inline-block;
            text-align: center;
            margin-top: 0;
            font-weight: 700;
        }
        h1 {
            margin-bottom: 1.5rem;
            font-size: 2.25rem;
        }
        h2 {
           color: var(--main-color);
        }
        .articlecontainer {
            margin: auto;
            max-width: 800px;
            padding: 0 16px;
        }
        /* Card styling */
        .card {
            background-color: var(--color-white);
            border-radius: 16px;
            padding: 2.5rem;
            margin-bottom: 2rem;
            border: 1px solid var(--border-color);
        }

        /* Ad Container Styling */
        .ad-container {
            width: 100%;
            margin: 2rem auto;
            text-align: center;
            min-height: 90px; /* Helps reduce layout shift */
        }

        /* Form styling */
        form {
            border: none;
            padding: 0;
            margin: 0;
        }
        fieldset {
            border: none;
            padding: 0;
            margin: 0;
        }
        legend {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--color-gray);
            margin-bottom: 1.5rem;
            padding: 0;
            width: 100%;
            text-align: left;
        }

        .grid-container {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
        @media (min-width: 768px) {
            .grid-container {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        label {
            display: block;
            font-size: 0.875rem;
            font-weight: 700;
            color: var(--color-gray);
            margin-bottom: 0.5rem;
        }
        input[type="number"] {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid #cbd5e0;
            border-radius: 8px;
            box-shadow: inset 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            font-size: 1rem;
            font-family: 'Inter', Arial, Helvetica, sans-serif;
            transition: border-color 0.2s, box-shadow 0.2s;
        }
        input:focus {
            outline: none;
            border-color: var(--main-color);
            box-shadow: 0 0 0 4px rgba(26, 72, 238, 0.2);
        }
        .button-container {
            display: flex;
            justify-content: center;
            margin-top: 2rem;
        }
        .lotto-button {
            width: 100%;
            background-image: linear-gradient(45deg, #1235B2 0%, var(--main-color) 100%);
            color: var(--color-white);
            font-weight: 700;
            padding: 1rem 2.5rem;
            border: none;
            border-radius: 8px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            transition: transform 0.2s, box-shadow 0.2s;
            cursor: pointer;
            font-size: 1.1rem;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
        }
        @media (min-width: 768px) {
            .lotto-button {
                width: auto;
            }
        }
        .lotto-button:hover, .lotto-button:focus {
            transform: translateY(-2px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
        .error-message {
            text-align: center;
            color: var(--color-error-dark);
            font-weight: 700;
            height: 1.5rem;
            margin-top: 1.5rem;
        }
        .results-container {
            margin-top: 2.5rem;
            text-align: center;
        }
        .results-container h2 {
            font-weight: 700;
        }
        .results-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        @keyframes pop-in {
            0% {
                opacity: 0;
                transform: scale(0.5);
            }
            100% {
                opacity: 1;
                transform: scale(1);
            }
        }

        .lotto-ball {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: radial-gradient(circle at 20px 20px, var(--secondary-color), #1235B2);
            color: var(--color-white);
            font-size: 2rem;
            font-weight: 700;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2), inset 0 3px 4px rgba(255, 255, 255, 0.4);
            border: 3px solid var(--color-white);
            animation: pop-in 0.4s ease-out forwards;
        }
        
        .content-section {
            line-height: 1.6;
        }
        .content-section p {
            margin-bottom: 1rem;
        }
        
        a.cta-link {
            font-weight: 700;
            color: var(--main-color);
            text-decoration: none;
            border-bottom: 2px solid var(--secondary-color);
            transition: color 0.2s, border-bottom-color 0.2s;
        }
        a.cta-link:hover {
            color: var(--secondary-color);
            border-bottom-color: var(--main-color);
        }

        /* FAQ Styling */
        .faq-item {
            border-bottom: 1px solid var(--border-color);
        }
        .faq-item:last-child {
            border-bottom: none;
        }
        .faq-item summary {
            font-size: 1.1rem;
            font-weight: 700;
            padding: 1.5rem 0.5rem;
            cursor: pointer;
            list-style: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .faq-item summary::-webkit-details-marker {
            display: none;
        }
        .faq-item summary::after {
            content: '+';
            font-size: 1.5rem;
            transition: transform 0.2s;
            color: var(--main-color);
        }
        .faq-item[open] summary::after {
            transform: rotate(45deg);
        }
        .faq-answer {
            padding: 0 0.5rem 1.5rem;
            line-height: 1.6;
        }
        
        /* Mobile-friendly adjustments */
        @media (max-width: 640px) {
            .wrapper {
                padding-top: 24px;
                padding-bottom: 24px;
            }
            .card {
                padding: 1.5rem;
            }
            h1 {
                font-size: 1.75rem;
            }
            .lotto-ball {
                width: 50px;
                height: 50px;
                font-size: 1.5rem;
            }
            .lotto-button {
                padding: 0.75rem 1.5rem;
                font-size: 1rem;
            }
            legend {
                font-size: 1rem;
            }
            .faq-item summary {
                font-size: 1rem;
            }
        }
