#contact {
  align-items: center;
  background: #f7f7f7;
  display: flex;
  flex-direction: column;
  padding: 24px 0 48px 0;
  width: 100%;
}

#contact div.field {
  display: flex;
  flex-direction: column;
  position: relative;
}

#contact form div.honeypot {
  display: none;
}

#contact form {
  display: flex;  
  flex-direction: column;
  gap: 16px;
  min-width: 320px;
}

#contact form button {
  appearance: none;
  background: #3B82F6;
  border: none;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  margin: 0;
  padding: 8px 16px 8px 16px;
  width: 100%;
  text-rendering: optimizeLegibility;  
  -moz-osx-font-smoothing: grayscale;      
  -webkit-font-smoothing: antialiased;            
}

#contact form button:hover {
  background: #2563EB;
}

#contact form input,
#contact form select,
#contact form textarea {
  appearance: none;
  background: #ffffff;
  border: solid 1px #e4e4e7;
  border-radius: 6px;
  box-sizing: border-box;
  color: #1a1a1a;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin: 0;
  min-width: 0;
  outline: none;
  padding: 8px 16px 8px 16px;
  position: relative;
  resize: none;
  width: 100%;
  text-rendering: optimizeLegibility;  
  -moz-osx-font-smoothing: grayscale;      
  -webkit-font-smoothing: antialiased;              
}

#contact form div.field:has( select )::after {
  content: url( /img/select.down.svg );
  cursor: pointer;
  position: absolute;
  right: 10px;  
  top: 34px;
}

#contact form input:focus,
#contact form select:focus,
#contact form textarea:focus {
  border: solid 1px #3B82F6;
  box-shadow: 0 0 0 3px #f4f4f4;  
}

#contact form label {
  color: #1a1a1a;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  margin: 0;
  padding: 0;
  text-rendering: optimizeLegibility;  
  -moz-osx-font-smoothing: grayscale;      
  -webkit-font-smoothing: antialiased;              
}

#contact form select {
  cursor: pointer;
}

#contact form textarea {
  appearance: none;
  background: #ffffff;
  border: solid 1px #e4e4e7;
  border-radius: 6px;
  box-sizing: border-box;
  color: #1a1a1a;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin: 0;
  min-width: 0;
  outline: none;
  padding: 8px 16px 8px 16px;
  width: 100%;
  text-rendering: optimizeLegibility;  
  -moz-osx-font-smoothing: grayscale;      
  -webkit-font-smoothing: antialiased;              
}

#contact h2 {
  color: #1a1a1a;
  cursor: default;
  font-family: Roboto, sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 32px;
  margin: 16px 0 16px 0;
  padding: 0;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;          
}

#contact p {
  color: #1a1a1a;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  line-height: 24px;
  margin: 16px 0 32px 0;
  padding: 0;
  text-align: center;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;          
  width: 70%;
}

#contact p.email {
  cursor: default;
  margin: 32px 0 0 0;
  text-align: center;
}

#contact p.email a {
  color: #3B82F6;
  cursor: pointer;
}

#contact p.email a:hover {
  color: #2563EB;
}

@media only screen and ( max-width: 1112px ) {    
  #contact > p:first-of-type {
    width: 60%;
  }
}

@media only screen and ( max-width: 800px ) {    
  #contact > p:first-of-type {
    width: 80%;
  }  
}

@media only screen and ( max-width: 640px ) {    
  #contact h2 {
    font-size: 28px;
  }

  #contact > p:first-of-type {
    width: 75%;
  }  
}

@media only screen and ( max-width: 480px ) {    
  #contact > p:first-of-type {
    width: 80%;
  }  

  #contact > p:last-of-type {
    width: 80%;
  }    
}

@media only screen and ( max-width: 430px ) {    
  #contact h2 {
    text-align: center;
    width: 80%;
  }

  #contact p:first-of-type {
    text-align: left;
  }
}

@media only screen and ( max-width: 330px ) {    
  #contact form {
    min-width: unset;
    width: 80%;
  }

  #contact {
    padding: 24px 0 32px 0;
  }
}
