/*---------------------------------
  Contents
---------------------------------*/
.form{
  margin: 0 80px 320px 80px;
}

.form_element{
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.form_element_field{
  display: flex;
  align-items: center;
}

.form_element_field_required{
  background-color: #C80000;
  height: 40px;
  width: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #FFFFFF;
  font-size: 1.6rem;
  margin-right: 40px;
}

.form_element_field_optional{
  background-color: #D9D9D9;
  height: 40px;
  width: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #FFFFFF;
  font-size: 1.6rem;
  margin-right: 40px;
}

.form_element_field_label{
  font-size: 1.6rem;
  width: 200px;
  margin-right: 80px;
  flex-shrink: 0;
}

.form_element_input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #D9D9D9;
  font-size: 1.6rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form_element_input:focus {
  border-color: #2AA0DB;
  box-shadow: 0 0 0 2px rgba(42, 160, 219, 0.2);
  outline: none;
}

.form_element_textarea{
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #D9D9D9;
  font-size: 1.6rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form_element_textarea:focus {
  border-color: #2AA0DB;
  box-shadow: 0 0 0 2px rgba(42, 160, 219, 0.2);
  outline: none;
}

.form_privacy_policy_link{
  font-size: 1.6rem;
  text-align: center;
  margin: 160px 0 40px 0;
}

.form_privacy_policy_link a{
  color: #434343;
  text-decoration: none;
  position: relative;
}

.form_privacy_policy_link a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  bottom: -8px;
  background-color: #434343;
  transition: width 0.3s ease;
}

.form_privacy_policy_link:hover a::after {
  width: 100%;
}

.form_button{
  background: linear-gradient(to right, #2AA0DB, #013D90);
  color: white;
  width: 200px;
  height: 60px;
  border-radius: 100px;
  border: none;
  z-index: 1;
  transition: all .3s;
  font-size: 1.6rem;
  display: block;
  margin: 0 auto; 
}

.form_button:hover {
  transform: scale(1.1,1.1);
}

@media (max-width: 768px) {
  .form {
    margin: 0 20px 160px 20px;
  }

  .form_element {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .form_element_field {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .form_element_field_required,
  .form_element_field_optional {
    height: 20px;
    width: 40px;
    font-size: 1.0rem;
    margin-right: 10px;
  }

  .form_element_field_label {
    font-size: 1.2rem;
    width: auto;
    margin-right: 0;
    flex-shrink: 0;
  }

  .form_element_input,
  .form_element_textarea {
    font-size: 1.2rem;
    width: 100%;
    padding: 10px 14px;
    box-sizing: border-box;
  }

  .form_privacy_policy_link {
    font-size: 1rem;
    margin: 80px 0 20px 0;
    text-align: center;
  }

  .form_button {
    width: 100%;
    max-width: 300px;
    height: 50px;
    font-size: 1.4rem;
  }
}
