/* form_styles.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('https://i.ibb.co/94fNHsh/classroom-2787754-1280.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #34495e;
    text-align: left;
    margin-right: auto;
    margin-left: auto;
    max-width: 350px; /* To align with the width of inputs */
}

input[type="text"], select {
    width: calc(100% - 2rem); /* Ensures full width minus padding */
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box; /* Ensures padding and border are included in the width */
}

input[type="text"]:focus, select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    outline: none;
}

input[type="submit"] {
    background-color: #27ae60;
    color: #fff;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s;
    width: calc(100% - 2rem); /* Ensures full width minus padding */
}

input[type="submit"]:hover {
    background-color: #2ecc71;
}

input[type="submit"]:active {
    transform: scale(0.98);
}