        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            line-height: 1.6;
            color: #2c3e50;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1000px;
            margin: 0 auto;
            background: white;
            padding: 50px;
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        }

        header {
            margin-bottom: 40px;
            border-bottom: 3px solid #667eea;
            padding-bottom: 25px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            margin: -50px -50px 40px -50px;
            padding: 40px 50px 30px 50px;
            border-radius: 16px 16px 0 0;
            color: white;
        }

        h1 {
            color: white;
            margin-bottom: 10px;
            font-size: 2.2em;
            font-weight: 700;
            text-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        .subtitle {
            color: #ffffff;
            font-size: 1.15em;
            margin-bottom: 10px;
            font-weight: 400;
            text-shadow: 0 1px 3px rgba(0,0,0,0.3);
        }

        .disclaimer {
            color: #ffffff;
            font-size: 0.95em;
            font-weight: 500;
            margin-top: 15px;
            padding: 15px;
            background: rgba(255,255,255,0.25);
            backdrop-filter: blur(10px);
            border-radius: 8px;
            border-left: 4px solid #ffc107;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
        }

        .progress-indicator {
            margin: 20px 0;
            padding: 20px;
            background: rgba(255,255,255,0.25);
            border-left: 4px solid #ffc107;
            border-radius: 8px;
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }

        .progress-indicator h3 {
            color: #ffffff;
            font-size: 1.15em;
            margin-bottom: 15px;
            font-weight: 700;
            text-shadow: 0 1px 3px rgba(0,0,0,0.3);
        }

        .progress-steps {
            list-style: none;
            padding: 0;
        }

        .progress-steps li {
            color: #ffffff !important;
            padding: 6px 0;
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
            font-weight: 500;
        }

        .progress-steps li.completed {
            color: #ffffff !important;
        }

        .progress-steps li.current {
            color: #ffffff !important;
            font-weight: 600;
        }

        .print-button, .reset-button {
            background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
            color: white;
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 0.95em;
            font-weight: 500;
            cursor: pointer;
            margin-top: 10px;
            margin-right: 10px;
            transition: transform 0.2s, box-shadow 0.2s;
            box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
        }

        .print-button:hover, .reset-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
        }

        .result-actions {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #ddd;
        }

        .collapsible {
            cursor: pointer;
            user-select: none;
        }

        .collapsible::before {
            content: '▼ ';
            display: inline-block;
            transition: transform 0.3s;
            margin-right: 5px;
        }

        .collapsible.collapsed::before {
            transform: rotate(-90deg);
        }

        .collapsible-content {
            overflow: hidden;
            transition: max-height 0.3s ease-out;
        }

        .collapsible-content.collapsed {
            max-height: 0;
            overflow: hidden;
        }

        @media print {
            .no-print {
                display: none;
            }
            .result-container {
                page-break-inside: avoid;
            }
            .collapsible-content.collapsed {
                max-height: none;
                display: block;
            }
        }

        .section {
            margin-bottom: 30px;
            padding: 25px;
            background: linear-gradient(to bottom, #ffffff, #f8f9fa);
            border-radius: 12px;
            border-left: 5px solid #667eea;
            box-shadow: 0 4px 6px rgba(0,0,0,0.07);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .section:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.1);
        }

        .section h2 {
            color: #667eea;
            margin-bottom: 20px;
            font-size: 1.4em;
            font-weight: 600;
        }

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

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #2c3e50;
            line-height: 1.5;
        }

        input[type="number"],
        input[type="text"] {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1em;
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        input[type="number"]:focus,
        input[type="text"]:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        input[type="checkbox"] {
            margin-right: 10px;
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: #667eea;
        }

        small {
            display: block;
            color: #666;
            font-size: 0.85em;
            margin-top: 5px;
        }

        .info {
            color: #495057;
            margin-bottom: 15px;
            font-style: italic;
            padding: 12px;
            background: #f8f9fa;
            border-left: 3px solid #667eea;
            border-radius: 6px;
        }

        .help-text {
            display: block;
            color: #495057;
            font-size: 0.9em;
            margin-top: 8px;
            padding: 12px 15px;
            background: linear-gradient(to right, #e3f2fd, #f3e5f5);
            border-left: 4px solid #667eea;
            border-radius: 6px;
            line-height: 1.6;
        }

        .help-text strong {
            color: #667eea;
            font-weight: 600;
        }

        .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 16px 32px;
            border: none;
            border-radius: 10px;
            font-size: 1.15em;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            margin-top: 20px;
            transition: transform 0.2s, box-shadow 0.2s;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
        }

        .btn-primary:active {
            transform: translateY(0);
        }

        .result-container {
            margin-top: 40px;
            padding: 35px;
            border-radius: 12px;
            border: 2px solid #e0e0e0;
            background: linear-gradient(to bottom, #ffffff, #f8f9fa);
            box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        }

        .result-status {
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .result-status.resident {
            background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
            border: 3px solid #28a745;
        }

        .result-status.non-resident {
            background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
            border: 3px solid #dc3545;
        }

        .result-status h3 {
            font-size: 1.5em;
            margin-bottom: 15px;
        }

        .result-status.resident h3 {
            color: #155724;
        }

        .result-status.non-resident h3 {
            color: #721c24;
        }

        .result-status p {
            margin-bottom: 10px;
            line-height: 1.8;
        }

        @media (max-width: 768px) {
            .container {
                padding: 20px;
            }
            
            h1 {
                font-size: 1.5em;
            }
        }
    </style>
