section#contact {
  display: flex;
  width: 100%;
  min-height: 100vh;
  padding: var(--navbar-height-sticky) 0 0 0;
}

section#contact .container {
  margin: 0 auto;
  padding: 20px;
}

section#contact h2 {
  margin: unset;
  margin-bottom: 15px;
}

section#contact span.info {
  margin-bottom: 15px;
  display: block;
}

section#contact .contact-info {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

section#contact .info-card {
  background: var(--background-color);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  flex: 1;
  min-width: 250px;
  text-align: center;
  transition: var(--default-transition);
}

section#contact .info-card:hover {
  transform: var(--default-transform);
}

section#contact .info-icon {
  width: 60px;
  height: 60px;
  border: 2px dotted var(--secondary-color);
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

section#contact .info-card p {
  margin-bottom: 10px;
}

section#contact .info-card p:last-child {
  font-weight: bold;
}

section#contact .contact-main {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

section#contact .map-container {
  flex: 1;
  min-width: 500px;
}

section#contact #map {
  height: 400px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section#contact .form-container {
  flex: 1;
  min-width: 500px;
}

section#contact .group-field {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

section#contact .field {
  flex: 1;
}

section#contact .field input,
section#contact .field select,
section#contact .field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--secondary-color);
  border-radius: 3px;
  transition: border-color var(--transition-speed);
}

section#contact .field textarea {
  min-height: 150px;
  resize: none;
  overflow-y: scroll;
}

section#contact .field select#id_service {
  margin-bottom: 20px;
}

section#contact .policy {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

section#contact .policy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

section#contact .field label {
  display: none;
}

section#contact .policy label {
  font-size: var(--h6-font-size);
  color: var(--text-color);
}

section#contact .policy a {
  color: var(--secondary-color);
  text-decoration: none;
}

section#contact .policy a:hover {
  color: var(--secondary-color-hover);
}

section#contact button.primary.form {
  width: 100%;
  padding: 14px;
  background: var(--secondary-color);
  color: var(--background-color);
  border: none;
}

section#contact button.primary.form:hover {
  background: var(--secondary-color-hover);
}

section#contact #spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

section#contact .loader {
  border: 4px solid #f3f3f3;
  border-radius: 50%;
  border-top: 4px solid #8f8f8fde;
  width: 25px;
  height: 25px;
  animation: spin 2s linear infinite;
}

@media (max-width: 1200px) {
  section#contact {
    flex-direction: column;
    padding: 0 0 8rem 0;
  }

  section#contact .container {
    padding: 0 2rem;
  }

  section#contact .group-field {
    flex-direction: column;
  }
}

@media (max-width: 599px) {
  section#contact {
    padding-top: var(--navbar-height-sticky);
  }

  section#contact .map-container {
    min-width: 300px;
  }

  section#contact .form-container {
    min-width: 300px;
  }
}
