.contact-section {
  display: flex;
  position: relative;
  padding: 1rem;
  gap: 4rem;
  align-items: center;
  flex-wrap: wrap;
}
.contact-text {
  padding: 0 1rem;
  text-align: justify;
  width: 400px;
  display: flex;
  flex-direction: column;
}

.contact-text p a {
  text-decoration: underline;
  font-size: 0.8rem;
}

.contact-text p a :where(:focus, :active, :hover, :visited) {
  color: var(--text-color);
}

.contact-form {
  background-color: var(--block);
  padding: 2rem;
  border-radius: 10px;
  width: 40%;
}
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
.contact-form p {
  font-weight: bold;
  font-size: 28px;
}
.block {
  width: 100%;
}
.contact-form :where(input, textarea) {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 15px;
}
.contact-form :where(input, textarea):focus {
  border: none;
  outline-color: var(--secondary-color);
}
.contact-form textarea {
  height: 80px;
}
input[type="checkbox"] {
    width: 20px; 
    height: 20px;
    margin:5px;
}
.checkPrivacy {
  display:flex;
  flex-direction: row;
}
.checkPrivacy label {
  font-size: 0.8rem;
}
.contact-form button {
  margin-top: 10px;
  padding: 10px;
  background-color: rgba(0, 123, 255, 0.27);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.contact-form button:hover {
  background-color: rgba(0, 123, 255, 1);
  transition: background-color 0.25s ease-in-out;
}
.map-instructions {
  background-color: var(--article-color);
  flex: 1;
  position: relative;
  padding: 1rem;
  gap: 2rem;
  display: flex;
  align-items: center;
}
.map-box {
  width: 100%;
  margin: 1rem;
  object-fit: cover;
  border-radius: 5%;
  /*filter: grayscale(100%) brightness(50%);*/
  max-width: 400px;
  height: 400px;
}
.map-box:hover {
  filter: none;
}
.instructions-box {
  text-align: center;
  max-width: 485px;
}

/* Media Queries for responsiveness */
@media (max-width: 1255px) {
  .contact-text {
    max-width: 670px;
    width: fit-content;
  }
}
@media (max-width: 989px) {
  .contact-section :is(.contact-form, .contact-text) {
    width: 80%;
  }

  .contact-section {
    gap: 2rem;
  }
}
@media (max-width: 768px) {
  .contact-section :is(.contact-form, .contact-text) {
    width: 98%;
  }
  .contact-section {
    padding-inline: 0;
  }

  .map-instructions {
    flex-direction: column-reverse;
    gap: 0;
  }
}
