body { 
    font-family: 'Arial', sans-serif; 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 20px; 
    background-color: #f4f4f9; 
}
h1, h2, h3 { 
    color: #333; 
    border-bottom: 2px solid #ddd; 
    padding-bottom: 5px; 
}
label { 
    display: block; 
    margin-top: 15px; 
    font-weight: bold; 
    color: #555;
}
input[type="text"], 
input[type="number"], 
textarea, 
select { 
    width: 100%; 
    padding: 10px; 
    margin-top: 5px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    box-sizing: border-box;
    background-color: #fff;
    transition: border-color 0.3s ease;
    opacity: 0.7; /* Make the placeholder text lighter */
}
input[type="text"]:focus, 
input[type="number"]:focus, 
textarea:focus, 
select:focus {
    border-color: #4CAF50;
    opacity: 1; /* Normal opacity when focused */
}
input[type="submit"] { 
    margin-top: 20px; 
    padding: 12px 25px; 
    background-color: #4CAF50; 
    color: white; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 16px;
    transition: background-color 0.3s ease;
}
input[type="submit"]:hover {
    background-color: #45a049;
}
input[type="file"] {
    margin-top: 15px;
    padding: 12px 25px; 
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
    background: #b5b5b6;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: #b5b5b6;
}
form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
#spinner {
    display: none; /* Initially hidden */
    position: fixed; /* Fix to the viewport */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Center it */
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #4CAF50;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    z-index: 9999; /* Ensure it appears above other content */
    background-color: rgba(255, 255, 255, 0.8); /* Optional: background to dim the form */
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}