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

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  padding: 8px;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 15px;
}

form {
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  padding: 15px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  gap: 8px
}

form h1, form h3 {
  text-align: center;
  margin-bottom: 20px;
}

section {
  border: #A1A1A1 1px solid;
  border-radius: 5px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

section h3 {
  margin-bottom: 0;
}

form input[type="text"], form input[type="email"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
  transition: 0.2s;
  margin-bottom: 8px;
}

.form-item {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: #A1A1A1 1px solid;
  border-radius: 5px;
  padding: 0.5rem;
}

.form-item label {
  display: block;
  margin-bottom: 5px;
}

.form-item-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-item-range input {
  width: 70%;
  appearance: none;
  height: 5px;
  border-radius: 5px;
  background-color: #ccc;
}

.form-item-range input:not([step="0"]) {
  appearance: auto;
}

.form-item-range p {
  width: 30%;
}

.form-item-range p:nth-child(3) {
  text-align: right;
}

form button {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

form button:hover {
  background-color: #0056b3;
}

form .checkbox-item {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: -8px 0 8px 0;
}

@media screen and (max-width: 768px) {
  form h1, form h3 {
    margin-bottom: 10px;
  }
  
  form .form-item-range {
    flex-direction: column;
    gap: 5px;
  }
  
  form .form-item-range input {
    width: 90%;
  }
  
  form .form-item-range p {
    width: 100%;
    text-align: left;
  }
}

@media screen and (max-width: 500px) {
  .container {
    padding: 0;
  }
}
