        /* Add this at the top of your CSS */
        .form-group h3 {
            margin-top: 0px;
            margin-bottom: 8px;
        }

        body {
            font-family: Arial, sans-serif;
            background-color: #404040;
            color: #333;
            line-height: 1.0;
            padding: 70px 20px 20px; /* Added padding-top to account for fixed header */
            margin: 0;
        }

        .calculator-container {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .calculator, .results {
            background-color: #D3D3D3;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            width: 100%;
            box-sizing: border-box;
        }

        h1 {
            text-align: center;
            margin: 0 0 15px;
            color: whitesmoke;
            font-size: 1.5rem;
        }

        .form-group {
            margin-bottom: 10px;
        }

        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
            font-size: 14px;
        }

        select, input {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
            font-size: 14px;
        }

        .radio-group {
            display: flex;
            gap: 15px;
            margin-bottom: 8px;
            flex-wrap: wrap;
        }

        .radio-option {
            display: flex;
            align-items: center;
            gap: 2px;
            padding: 8px 12px;
            border-radius: 6px;
            border: 2px solid #002B5B;
            background-color: #e6f0ff;
            transition: all 0.3s;
        }

        .radio-option.selected {
            border-color: #002B5B;
            background-color: #e6f0ff;
        }

        .row {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .checkbox-container {
            display: flex;
            justify-content: flex-start; /* Prevent wrapping */
            margin: 15px 0;
        }

        .checkbox-option {
            display: flex;
            align-items: center;
            gap: 5px;
            white-space: nowrap; /* Prevent text wrapping */
            margin-left: 15px; /* Remove any default margins */
            padding: 0; /* Remove any default padding */
        }

        .checkbox-option label {
            margin-bottom: 0;
        }

        /* Smaller checkbox */
        .checkbox-option input[type="checkbox"] {
            width: 16px;
            height: 16px;
            margin: 0;
        }

        .datalist-input {
            width: 100%;
        }

        .result-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
            font-size: 14px;
        }

        .result-table th, .result-table td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: left;
        }

        .result-table th {
            background-color: #f2f2f2;
        }

        .total-row {
            font-weight: bold;
            background-color: #e9f7ef;
        }

        .hidden {
            display: none;
        }

        .short-term-period {
            margin-top: 5px;
            width: 100%;
        }

        #homeInsuranceFields, #propertyInsuranceFields {
            margin-bottom: 15px;
        }

        /* Enhanced Datalist Dropdown Styles */
        .datalist-input {
            width: 100%;
            padding: 10px;
            margin-top: 5px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 14px;
            background-color: white;
            transition: border-color 0.3s;
        }

        /* Make sure the custom dropdown matches input width */
        .datalist-input-container {
            position: relative;
            width: 100%;
        }

        .datalist-input:focus {
            border-color: #002B5B;
            outline: none;
            box-shadow: 0 0 0 2px rgba(0, 43, 91, 0.2);
        }

        /* Custom dropdown options container */
        .datalist-options {
            position: absolute;
            background-color: white;
            border: 1px solid #ddd;
            border-radius: 4px;
            max-height: 200px;
            overflow-y: auto;
            width: calc(100% - 2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            margin-top: 1px;
            display: none;
            scroll-behavior: smooth;
        }

        /* Custom dropdown option styling */
        .datalist-option {
            padding: 8px 12px;
            font-size: 14px;
            cursor: pointer;
            color: #333;
            transition: background-color 0.2s;
            border-bottom: 1px solid #f0f0f0;
        }

        .datalist-option:last-child {
            border-bottom: none;
        }

        .datalist-option:hover, .datalist-option.active {
            background-color: #002B5B;
            color: white;
        }

        .datalist-option.active {
            background-color: #002B5B;
            color: white;
        }

        /* Print and Download buttons */
        .print-buttons-container {
            display: flex;
            gap: 10px;
            margin-top: 20px;
            justify-content: center;
        }

        .print-btn, .download-btn {
            padding: 10px 20px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
        }

        .print-btn:hover {
            background-color: #45a049;
        }

        .download-btn {
            background-color: #2980b9;
        }

        .download-btn:hover {
            background-color: #256fb0;
        }

        /* For print and PDF styles */
        @media print {
            body * {
                visibility: hidden;
            }
            .print-preview, .print-preview * {
                visibility: visible;
            }
            .print-preview {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                font-size: 12px;
                padding: 5mm;
            }
            .no-print {
                display: none;
            }
            
            .print-parameters table {
                width: 100%;
                border-collapse: collapse;
                page-break-inside: avoid;
            }
            
            .print-parameters th, 
            .print-parameters td {
                padding: 4px;
                font-size: 11px;
            }
            
            .print-footer {
                margin-top: 10px;
                font-size: 10px;
            }
        }

        .print-preview {
            display: none;
            padding: 5mm;
            background: white;
            max-width: 800px;
            margin: 0 auto;
            font-size: 12px;
            line-height: 1.0;
        }

        .print-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 5px;
            text-align: center;
            padding-bottom: 5px;
            border-bottom: 1px solid #ddd;
        }

        .print-header img {
            height: 35px;
            margin-bottom: 3px;
        }

        .print-title {
            width: 100%;
            text-align: center;
        }

        .print-meta {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            font-size: 11px;
        }

        .print-parameters {
            margin: 10px 0;
        }

        .print-parameters table {
            width: 100%;
            border-collapse: collapse;
            font-size: 11px;
        }

        .print-parameters th, 
        .print-parameters td {
            border: 1px solid #ddd;
            padding: 4px;
            text-align: left;
        }

        .print-footer {
            margin-top: 10px;
            font-size: 10px;
            text-align: center;
            border-top: 1px solid #ddd;
            padding-top: 5px;
        }

        @media (min-width: 480px) {
            .calculator-container {
                flex-direction: row;
            }
            
            .calculator {
                flex: 2;
            }
            
            .results {
                flex: 1;
            }
            
            .row {
                flex-direction: row;
            }
            
            .checkbox-container {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
            
            .short-term-period {
                width: auto;
                margin-left: 5px;
                margin-top: 0;
            }
        }

        @media (max-width: 768px) {
            .checkbox-container {
                flex-direction: column;
                align-items: stretch;
            }
            
            .checkbox-option {
                margin-left: 0;
                margin-top: 10px;
            }
            
            .calculation-fields-row {
                flex-direction: column;
                gap: 10px;
            }
            
            .calculation-fields-row .form-group {
                width: 100%;
            }
        }