* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

 :root{
    --primary-color: orange;
    --secondary-color: blue;
    --font-family:'Arial', sans-serif;
    font-size: 10px;
    --body-bg-color: white;
}

body {
    font-family: var(--font-family);
    background-color: var(--body-bg-color);
    font-size: 1.6rem;
    padding: 2rem;
}
@media (min-width:400) {
    body{
        padding: 20px;
    }
}
h1 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 2rem;
}
 p {
    color: #333;
    margin-bottom: 1rem;
 }
 form fieldset{
    border: 0;
    background: #fff;
    padding: 2rem;
 }

 form fieldset legend{
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: bold;
 }

 input[type='text'],
input[type='email'],
input[type='password'],
input[type='tel'],
select,
input[type='date'] {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

 label{
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
 }

 .pref-block{
    display: none;
 }
 @media (min-width:400px) {
    .pref-block{
        display: block;
    }
 }
 form {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
 }
 
 @media (min-width:1000px) {
    form{
        max-width: 900px;
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
    }
    form fieldset{
        flex-basis: calc(50%-40%);
    }
 }
