/* Body con Grid para centrar absolutamente todo */
body {
    margin: 0;
    padding: 0;
    background-color: #5cc8d9;
    font-family: 'Roboto', sans-serif;
    color: #eaeaea;
    min-height: 100vh;
    display: grid;
    place-items: center;
}

/* Envoltura para manejar scroll si es necesario */
.form-wrapper {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Contenedor del formulario */
.form-container {
    background: #262626;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

/* T铆tulo */
h2 {
    color: #5cc8d9;
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-align: center;
}

/* Etiquetas */
label {
    font-size: 16px;
    color: #5cc8d9;
    margin-bottom: 5px;
    display: block;
}

/* Campos de texto, select y textarea */
input[type="text"],
input[type="number"],
input[type="email"],
select,
textarea {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    margin: 8px auto;
    background: #333;
    color: #5cc8d9;
    border: 1px solid #555;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    display: block;
}

/* Efecto al enfocar */
input:focus,
select:focus,
textarea:focus {
    background-color: #444;
    border-color: #5cc8d9;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #ff0000;
}

.checkbox-group label {
    font-size: 14px;
    color: #fff;
    margin: 0;
    display: inline;
}

/* Bot贸n */
input[type="submit"].btn {
    width: 100%;
    max-width: 400px;
    background: linear-gradient(135deg, #5cc8d9, #5cc8d9, #5cc8d9);
    border: none;
    padding: 15px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin: 15px auto 0;
}

input[type="submit"].btn:hover {
    background: linear-gradient(135deg, #a00, #ff5555, #a00);
    transform: scale(1.05);
}

/* Fieldset */
fieldset {
    border: 3px solid #5cc8d9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background-color: #1a1a1a;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

legend {
    font-weight: bold;
    font-size: 1.7em;
    color: #5cc8d9;
    padding: 0 10px;
    text-align: center;
}

fieldset * {
    box-sizing: border-box;
    max-width: 100%;
    word-break: break-word;
}

/* Responsive tablets */
@media (max-width: 768px) {
    .form-container {
        padding: 15px;
    }

    input,
    select,
    textarea,
    .btn {
        font-size: 0.95em;
        max-width: 100%;
    }
}

/* Responsive m贸viles */
@media (max-width: 480px) {
    .form-container {
        padding: 10px;
    }

    input,
    select,
    textarea {
        font-size: 0.85em;
        padding: 8px;
    }

    input[type="submit"].btn {
        font-size: 1em;
        padding: 12px;
    }
}
