* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui;
}

.app {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100dvh;
}

.form {
    width: 100%;
    max-width: 768px;
    height: 100%;
    max-height: 560px;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    margin: 1rem;
    padding: 2rem;
}

h1 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: .25rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.radio-group {
    display: flex;
    flex-direction: column;
}

.radio-label {
    display: flex;
    align-items: center;
}

.full-width {
    grid-column: 1 / -1;
}

input {
    width: 20px;
}

button {
    margin-top: .75rem;
}

.gender {
    display: flex;
    flex-direction: column;
}

button,
.radio-group,
.form-group input,
.form-group textarea {
    width: 100%;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: .5rem;
    }

    .form-group {
        flex-direction: row;
    }

    .gender {
        flex-direction: row;
    }

    .radio-group {
        flex-direction: row;
    }

    .radio-label span {
        margin-right: .25rem;
    }

    .form-group label,
    .gender > label {
        margin-right: .25rem;
    }
}