body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.form-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

h2 {
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

p {
    color: #666;
    text-align: center;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Importante para que el padding no afecte el ancho */
}

.form-group input[type="file"] {
    padding: 5px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #218838;
}

.error-message {
    color: #dc3545;
    font-size: 0.9em;
    display: none; /* Oculto por defecto */
}

/* Estilos para el escudo del colegio */
.school-logo {
    display: block; /* Para que ocupe su propia línea y se pueda centrar */
    margin: 0 auto 25px auto; /* Centrar horizontalmente y añadir espacio abajo */
    max-width: 120px; /* Tamaño máximo del ancho del escudo */
    height: auto; /* Mantener la proporción original */
    /* Puedes ajustar el 'max-width' si quieres un tamaño diferente */
}

/* Estilos para el Popup de Éxito */
/* Estilos para el Popup de Éxito */
.popup-overlay {
    position: fixed; /* Posición fija para cubrir toda la pantalla */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Fondo semi-transparente oscuro */
    display: none; /* <<-- LA CORRECCIÓN CLAVE ESTÁ AQUÍ */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Asegurarse de que esté por encima de todo */
}

.popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    position: relative;
    animation: fadeIn 0.3s ease-out; /* Animación de entrada */
}

/* Animación de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}

.close-btn:hover {
    color: #555;
}

.popup-image {
    max-width: 350px; /* Tamaño de la imagen dentro del popup */
    height: auto;
    margin-bottom: 20px;
}

.popup-content h3 {
    color: #28a745; /* Color verde para el título de éxito */
    margin-bottom: 15px;
    font-size: 1.6em;
}

.popup-content p {
    color: #555;
    margin-bottom: 25px;
    font-size: 1.1em;
    line-height: 1.5;
}

.popup-ok-btn {
    padding: 12px 25px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.popup-ok-btn:hover {
    background-color: #218838;
}