body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    justify-content: space-between;
}

form {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px solid #e2e1e7;
  border-radius: 10px;
  margin-top: 50px;
  background-color: #fff;
  box-shadow: 3px 3px #efefef;
}

.form-title-container {
  padding: 20px 44px;
  border-bottom: 1px solid rgb(220, 220, 220);
}

.form-input-container {
  padding: 35px 25px 10px 25px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

input {
  margin: 7px 5px;
  width: 255px;
  height: 56px;
}

.form-submit-container {
  display: flex;
  padding: 35px;
  justify-content: space-between;
  align-items: center;
}

.form-submit-container>div{
  display: flex;
  flex-direction: row;
  align-items: end;
  font-weight: 600;
  font-size: 18px;

}

.form-submit-container>div>img{
  margin-right: 3px;
}

.form-submit-container>button{
  margin: 0;
}

input, button {
  outline: 0;
  border: 0;
  padding: 17px 22px;
  border-radius: 5px;
  background: #e9e9ef;
  color: #424141;
  font-size: 16px;
  font-family: 'General Sans', sans-serif;
  font-weight: 500;
  resize: none;
}

input:focus {
  outline: none;
  border: 2px solid #20419a;
}

button {
  background: #20419a;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  margin-top: 20px;
  transition: transform 0.25s ease;
}

button:hover {
  transform: scale(1.02);
}


h1 {
    text-align: center;
    color: #13275c;
    margin-bottom: 0;
}

h2 {
  margin: 0 0 20px 0;
  text-align: center;
  color: #26253c;
}

.checkbox {
  padding: 0 35px;
}

.checkbox input[type="checkbox"] {
  display: none; /* Приховуємо стандартний чекбокс */
}

.checkbox label {
  position: relative;
  padding-left: 30px; /* Відступ для кастомної галочки */
  cursor: pointer;
  font-size: 16px;
}

.checkbox label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 15px;
  height: 15px;
  background-color: #fff;
  border: 1px solid #3f579ba5; /* Синій колір бордера */
  border-radius: 4px; /* Круглий або квадратний за бажанням */
  transition: background-color 0.3s, border-color 0.3s;
}

.checkbox input[type="checkbox"]:checked + label::before {
  background-color: #20419a; /* Синій фон при checked */
  border-color: #20419a; /* Синій бордер */
}

.checkbox input[type="checkbox"]:checked + label::after {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.5 2.8 8.1l1.4-1.4 2 2 5.6-5.6 1.4 1.4z' fill='white'/%3E%3C/svg%3E");
  position: absolute;
  left: -4px;
  top: -1px;
  width: 25px;
  height: 25px;
  background-size: contain;
  background-repeat: no-repeat;
  transition: 0.3s ease;
}

.checkbox input[type="checkbox"]:focus + label::before {
  box-shadow: 0 0 0 3px rgba(32, 65, 154, 0.3); /* Додаємо фокусний ефект */
}

.burger-container>button {
  padding: 0;
}


@media (max-width: 768px) {
  form {
    max-width: calc(100% - 20px);
  }
  h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 18px;
  }

  .form-title-container { 
    padding: 20px 15px;
  }

  .form-input-container {
    padding: 15px 10px;
  }

  .checkbox {
    padding: 0 15px;
  }
  .form-submit-container {
    padding: 20px 15px 30px 15px;
  } 
}


@media (max-width: 605px) {
  input {
    width: 100%;
     
  }

  .form-submit-container {
    flex-direction: column;
  }

  .form-submit-container>div {
    margin-bottom: 15px;
    
  }
}