/* CONTACT FORM */

#contact {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  background-color: var(--primary-background-color);
  color: var(--primary-color);
}

.section-header {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 1080px;
  height: auto;
  text-align: center;
  color: var(--primary-color);
}

.section-description {
  grid-column: 1 / -1;
  padding: 0;
  width: 100%;
  max-width: 1080px;
  height: auto;
  text-align: center;
  color: var(--secondary-color);
}

.contact-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  width: 100%;
  max-width: 779px;
  padding: 1rem;
}

/* Left contact page */
.form-horizontal {
  width: 100%;
  margin: 0 1rem 0 0;
  text-align: center;
}

.form-control, textarea {
  width: 100%;
  background-color: var(--secondary-background-color);
  color: var(--primary-color);
  border: 1px solid var(--box-shadow-color);
  border-radius: var(--border-radius);
  margin: 12px 0;
  outline: none;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.form-control:focus, textarea:focus {
  background-color: var(--primary-background-color);
  color: var(--secondary-color);
  border-color: var(--highlight-color);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1rem;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  background-color: var(--button-background-color);
  border: 1px solid var(--button-background-color);
  border-radius: var(--border-radius);
  color: var(--button-text-color);
  transition: background-color 0.3s, border-color 0.3s;
}

.btn-primary:hover {
  background-color: var(--button-hover-background-color);
  border-color: var(--button-hover-background-color);
}

.send-button {
  margin-top: 15px;
  height: 48px;
  width: 300px;
  max-width: 100%;
  overflow: hidden;
  transition: all .2s ease-in-out;
}

.alt-send-button {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease-in-out;
}

.send-text {
  display: block;
  letter-spacing: 2px;
  line-height: 34px; /* Ensure this matches the height of the button */
}

.alt-send-button:hover {
  /* Add hover effects if needed */
}

/* Begin Right Contact Page */
.direct-contact-container {
  width: 100%;
}

/* Location, Phone, Email Section */
.contact-list {
  list-style-type: none;
  margin-left: 0;
  padding-right: 0;
}

.contact-list ul {
  list-style-position: outside;
}

.contact-list-item {
  margin-top: 1em;
  line-height: 1.5;
  color: #aaa;
  font-size: 18px;
  display: flex;
  align-items: center;
}

.contact-list-item i {
  margin-right: 10px;
  font-size: 32px;
  display: flex;
  align-items: center; /* Center align icons with text */
}

.contact-text {
  font: 300 18px 'Rubik', sans-serif;
  letter-spacing: 1px;
}

.place,
.phone,
.mail,
.skype,
.zoom {
  margin-left: calc(24px + 1px); /* Align with Mosjøen Recording */
  display: inline-block;
}


.contact-text a {
  color: #bbb;
  text-decoration: none;
  transition-duration: 0.2s;
}

.contact-text a:hover {
  color: #fff;
  text-decoration: none;
}

#response {
  margin-top: 20px;
  font-size: 16px;
  color: green;
}

#spinner {
  width: 24px;
  height: 24px;
  display: none; /* Initially hidden */
}

.send-text {
  margin-left: 8px;
}

/* Begin Media Queries */
@media screen and (max-width: 740px) {
  #contact {
    padding: 0;
  }

  .contact-wrapper {
    display: flex;
    flex-direction: column;
  }

  .form-horizontal {
    width: 100%;
    max-width: 100%;
    margin: 0 0;
  }

  .direct-contact-container {
    margin-top: 60px;
    margin-left: 55px;
    width: 100%;
    max-width: 100%;
  }
}
