.dades {
    width: 80%;
    max-width: 37.5rem;
    height: auto;
    padding: 1.875rem;
    background-color: #F3F6F6;
    border-radius: 1.5625rem;
    box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.2);
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
}

.dades:hover{
    box-shadow: 0 0.625rem 1.875rem #bb86fc;
}

h2 {
    color: black;
    margin-bottom: 0.625rem;
    font-size: 1.8rem;
    text-align: center;
}

.dades > div {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 0.9375rem;
    align-items: center;
}

.dades label {
    width: 100%;
    height: 3.4375rem;
    padding: 0.625rem 1.25rem;
    background-color: white;
    border-radius: 1.875rem;
    box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.05);
    
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.9375rem;
    
    transition: all 0.3s ease;
    border: 0.125rem solid transparent;
}

.dades label:focus-within {
    border-color: #bb86fc;
}

.icon-container {
    color:black;
    font-size: 1.2rem;
    width: 1.875rem;
    display: flex;
    justify-content: center;
}

.dades input, .dades select {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 1.5625rem;
    outline: none;
    color: #333;
    padding: 0.3125rem 0.625rem;
    font-size: 1rem;
    background: transparent;
}

.dades select {
    cursor: pointer;
}

.dades input::placeholder {
    color: #aaa;
}

.double-field {
    display: flex;
    gap: 0.9375rem;
}

.double-field label {
    flex: 1;
}
button{
    width: 50%;
    height: 2.5rem;
    padding: 0.625rem 1.25rem;
}

@media screen and (max-width: 600px) {
    .dades {
        width: 95%;
    }
    .dades div {
        margin: 0;
    }
    .dades > div[class="double-field"] {
        flex-direction: column;
    }
    .double-field label {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }
}