*, *::before, *::after {
  box-sizing: inherit;
}

html, body {
  margin: 0;
  padding: 0;
  padding-top: 3%;
  height: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background-image: url('../images/slingerbackground3.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px;
}

.contact-container {
  padding: 40px;
  margin: 0;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.contact-container h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: center;
  color: white;
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-group input,
.form-group textarea {
  padding: 10px;
  font-size: 1.1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

.form-group textarea {
  resize: vertical;
  min-height: 30px;
  height: 42px;
  max-height: 100%;
}

button.submit-btn {
  padding: 15px 50px;
  background-color: #00aaff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  align-self: center;
}

button.submit-btn:hover {
  background-color: #e67e00;
}

@media (max-width: 1080px) {
  .contact-container {
    padding: 50px;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-container h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
  }

  .contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    font-size: 1.5rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
  }

  .form-group textarea {
    min-height: 80px;
    resize: vertical;
  }

  button.submit-btn {
    padding: 20px 40px;
    font-size: 1.5rem;
    border-radius: 5px;
  }

  .location-content {
    flex-direction: column;
    align-items: center;
  }

  .location-text h1 {
    font-size: 2rem;
    color: white;
    text-align: center;
  }

  .close-btn {
    font-size: 4rem;
    top: 20px;
    right: 20px;
  }
}

