body {
    margin: 0;
    font-family: sans-serif;
    color: #eee;
    background: linear-gradient(to bottom, #333, #000);
    min-height: 100vh;
}

form {
    background-color: transparent;
    padding: 20px 0;
    max-width: 500px;
    margin: auto;
    margin-top: 50px;
    box-shadow: 0px 0px 55px #0009;
    border-radius: 8px;
    font-size: 16px;
    transition: box-shadow 0.1s ease;
    margin-bottom: 40px;
}

form:focus-within {
    box-shadow: 0px 0px 15px rgb(255, 255, 33);
}

h2 {
    text-align: center;
    margin: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 100;
    font-size: 1.4em;
    padding: 10px;
}

.form-input {
    padding: 6px 20px;
}

input:not(.checkbox),
textarea, select {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    border: none;
    border: 1px solid #666666;
    box-shadow: 0px 0px 15px #0003;
    background-color: transparent;
    border-radius: 4px;
    color: #eee;
    transition: box-shadow 0.3s ease;
    outline: none;
    font-size: 16px; /
}

option {
    background-color: #222;
}

textarea {
    min-width: 100%;
    resize: none;
    min-height: 102px;
    font-family: sans-serif;
}

label {
    font-size: 0.88em;
    line-height: 2;
}

.checkbox {
    width: auto;
    height: auto;
    margin-right: 10px;
    box-shadow: none;
}

input:focus,
textarea:focus {
    box-shadow: 0px 0px 8px rgb(255, 255, 33);
}

form:hover {
    box-shadow: 0px 0px 8px rgb(255, 255, 33);
}

input:not(.checkbox):focus,
textarea:focus {
    box-shadow: 0px 0px 8px rgb(255, 255, 33);
}

.checkbox:focus {
    box-shadow: none;
    outline: none;
}

fieldset {
    border-radius: 5px;
    border: 1px solid #666;
    padding: 8px 6px 20px 6px;
    margin: 20px;
}

legend {
    padding: 0 6px;
    color: #777;
}

.boton-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.boton-enviar {
    background-color: #444;
    color: #eee;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 16px; 
    min-height: 44px; 
}

.boton-enviar:hover {
    box-shadow: 0px 0px 5px rgb(255, 255, 33);
}

/* MEDIA QUERIES PARA MÓVILES */

@media screen and (max-width: 768px) {
    form {
        max-width: 90%;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    h2 {
        font-size: 1.2em;
    }

    fieldset {
        margin: 15px;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 0;
    }

    form {
        max-width: 95%;
        margin-top: 20px;
        margin-bottom: 20px;
        box-shadow: 0px 0px 30px #0009;
        border-radius: 6px;
    }

    h2 {
        font-size: 1.1em;
        padding: 8px;
        margin-bottom: 8px;
    }

    .form-input {
        padding: 5px 15px;
    }

    fieldset {
        margin: 10px;
        padding: 6px 4px 15px 4px;
    }

    legend {
        font-size: 0.85em;
    }

    label {
        font-size: 0.9em;
        line-height: 1.8;
    }

    input:not(.checkbox),
    textarea, select {
        padding: 8px 10px;
        font-size: 16px;
    }

    textarea {
        min-height: 90px;
    }

    .boton-enviar {
        padding: 12px 30px;
        width: 90%;
        max-width: 300px;
        font-size: 1em;
    }

    .checkbox {
        min-width: 20px;
        min-height: 20px;
        margin-right: 8px;
    }
}

@media screen and (max-width: 360px) {
    form {
        max-width: 98%;
        margin-top: 15px;
    }

    h2 {
        font-size: 1em;
    }

    .form-input {
        padding: 4px 12px;
    }

    fieldset {
        margin: 8px;
    }

    .boton-enviar {
        width: 95%;
    }
}

@media (hover: none) and (pointer: coarse) {
    form:hover {
        box-shadow: 0px 0px 55px #0009; 
    }

    .boton-enviar:hover {
        box-shadow: none; 
    }

    .boton-enviar:active {
        box-shadow: 0px 0px 5px rgb(255, 255, 33);
        transform: scale(0.98);
    }
}