    <style>
        * {
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 900px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f5f5f5;
        }
        
        .container {
            background-color: white;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }
        
        h1 {
            text-align: center;
            color: #2c3e50;
            margin-bottom: 30px;
            font-size: 2.5em;
            font-weight: 300;
        }
        
        .error {
            background-color: #fee;
            color: #c33;
            padding: 15px;
            border-radius: 8px;
            border-left: 5px solid #c33;
            margin-bottom: 20px;
        }
        
        .success {
            background-color: #efe;
            color: #393;
            padding: 15px;
            border-radius: 8px;
            border-left: 5px solid #393;
            margin-bottom: 20px;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #555;
        }
        
        input[type="text"],
        input[type="email"] {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.3s ease;
        }
        
        input[type="text"]:focus,
        input[type="email"]:focus {
            outline: none;
            border-color: #3498db;
        }
        
        .btn {
            padding: 12px 24px;
            background-color: #3498db;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            margin-right: 10px;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }
        
        .btn:hover {
            background-color: #2980b9;
            transform: translateY(-2px);
        }
        
        .btn:disabled {
            background-color: #bdc3c7;
            cursor: not-allowed;
            transform: none;
        }
        
        .btn-success { background-color: #27ae60; }
        .btn-success:hover { background-color: #229954; }
        
        .btn-danger { background-color: #e74c3c; }
        .btn-danger:hover { background-color: #c0392b; }
        
        .btn-warning { background-color: #f39c12; }
        .btn-warning:hover { background-color: #e67e22; }
        
        .test-info {
            background-color: #ebf3fd;
            padding: 20px;
            border-radius: 8px;
            border-left: 5px solid #3498db;
            margin-bottom: 25px;
        }
        
        .test-info h3 {
            margin-top: 0;
            color: #2c3e50;
        }
        
        .test-info ul {
            margin-bottom: 0;
        }
        
        .timer {
            font-size: 20px;
            font-weight: bold;
            text-align: center;
            margin-bottom: 20px;
            color: #e74c3c;
            padding: 15px;
            background-color: #fdf2f2;
            border-radius: 8px;
        }
        
        .progress {
            margin-bottom: 25px;
        }
        
        .progress p {
            margin-bottom: 10px;
            font-weight: 600;
            color: #555;
        }
        
        .progress-bar {
            height: 20px;
            background-color: #ecf0f1;
            border-radius: 10px;
            overflow: hidden;
        }
        
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #3498db, #27ae60);
            transition: width 0.5s ease-in-out;
        }
        
        .question-image {
            max-width: 100%;
            height: auto;
            margin: 20px 0;
            display: block;
            margin-left: auto;
            margin-right: auto;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .answers {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
            margin: 25px 0;
        }
        
        .answer-option {
            padding: 20px;
            background-color: #f8f9fa;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            font-weight: 500;
        }
        
        .answer-option:hover {
            background-color: #e3f2fd;
            border-color: #3498db;
            transform: translateY(-2px);
        }
        
        .answer-option.selected {
            background-color: #3498db;
            color: white;
            border-color: #2980b9;
        }
        
        .button-group {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 30px;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .result {
            text-align: center;
        }
        
        .score-display {
            font-size: 48px;
            font-weight: bold;
            color: #27ae60;
            margin: 30px 0;
        }
        
        .security-notice {
            background-color: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            font-size: 14px;
            color: #666;
            text-align: center;
            margin-top: 30px;
        }
        
        @media (max-width: 768px) {
            body {
                padding: 10px;
            }
            
            .container {
                padding: 20px;
            }
            
            .answers {
                grid-template-columns: 1fr;
            }
            
            .button-group {
                flex-direction: column;
                align-items: stretch;
            }
            
            .btn {
                margin-right: 0;
                margin-bottom: 10px;
            }
        }
        
        
        
        
/* Mobile-optimized input styling */

input[type="text"],
input[type="email"] {
    width: 100%;
    max-width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px; /* Important: 16px prevents zoom on iOS */
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    display: block;
    -webkit-appearance: none; /* Remove iOS styling */
    -moz-appearance: none;    /* Remove Firefox styling */
    appearance: none;         /* Standard property */
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #3498db;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
    overflow: hidden;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    word-wrap: break-word;
    line-height: 1.4;
}

/* Enhanced mobile styles */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
        margin: 10px auto;
        width: calc(100% - 20px); /* Account for body padding */
        max-width: calc(100% - 20px);
        box-sizing: border-box;
    }
    
    /* Mobile-specific input adjustments */
    input[type="text"],
    input[type="email"] {
        padding: 14px 16px; /* Slightly larger touch targets */
        font-size: 16px; /* Prevents zoom on iOS Safari */
        border-radius: 6px; /* Slightly smaller radius for mobile */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        /* Ensure no horizontal scrolling */
        margin: 0;
    }
    
    .form-group {
        margin-bottom: 24px; /* More space on mobile */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    label {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    
    /* Button adjustments for mobile */
    .btn {
        padding: 14px 20px;
        font-size: 16px;
        width: 100%;
        margin-bottom: 10px;
        box-sizing: border-box;
    }
    
    .button-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
    body {
        padding: 5px;
        font-size: 14px;
    }
    
    .container {
        padding: 15px;
        margin: 5px auto;
        width: calc(100% - 10px);
        max-width: calc(100% - 10px);
        border-radius: 8px;
    }
    
    input[type="text"],
    input[type="email"] {
        padding: 12px 14px;
        font-size: 16px; /* Keep 16px to prevent zoom */
        width: 100%;
        max-width: 100%;
    }
    
    h1 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
}

/* Landscape mobile adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .container {
        padding: 15px 20px;
    }
    
    input[type="text"],
    input[type="email"] {
        padding: 10px 12px; /* Smaller padding for landscape */
    }
    
    .form-group {
        margin-bottom: 18px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    input[type="text"],
    input[type="email"] {
        border-width: 1px; /* Thinner borders on high-DPI screens */
    }
}

      
    </style>