.contact-us {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  min-height: 80vh;
  position: relative;
  padding: 180px 180px 10px 14%;
  color: var(--text-colour-dark);
  overflow: hidden;
}
.contact-us::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90%;
  background-image: url("../assets/rainbow-illustration.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-size: 65% 120%;
  opacity: 0.7;
  z-index: -1;
  overflow: hidden;
}
/* Contact Details */
.contact-details {
  flex: 1 1 45%;
  max-width: 45%;
}
.contact-details h1 {
  margin-bottom: 20px;
}
.contact-details ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}
.contact-details li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}
.contact-details iframe {
  border: 0;
  border-radius: 10px;
  margin-top: 10px;
  width: 100%;
  height: 300px;
  box-shadow: 0px 4px 20px rgba(19, 33, 155, 0.1);
}
.contact-list {
  list-style: none;
  padding: 0;
}
.contact-list li {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}
.contact-list .icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

/* Send Message Form */
.send-message {
  flex: 1 1 45%;
  max-width: 45%;
  max-height: fit-content;
  background-color: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 4px 4px 20px rgba(19, 33, 155, 0.1);
}
.send-message h2 {
  margin-bottom: 20px;
}
.send-message p {
  margin-bottom: 20px;
}
.send-message form label {
  display: block;
  margin-bottom: 5px;
}
.send-message form input,
.send-message form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 24px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}
.send-message form textarea {
  resize: none;
  height: 100px;
}
.send-message form button {
  width: 100%;
  font-size: var(--body2-font-size);
}

.loader {
  border: 3px solid #fff;
  border-top: 3px solid transparent;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  display: inline-block;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Media Queries */
@media screen and (max-width: 1200px) {
  .contact-us {
    flex-direction: column;
    height: auto;
    padding: 160px 5%;
  }
  .contact-details,
  .send-message {
    flex: 1 1 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }
  .contact-details iframe {
    width: 100%;
    height: 300px;
  }
  .contact-us::before {
    display: none;
  }
}
