.contact-container {
  display: flex;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  flex-direction: column;
  background-color: var(--black-100);
}

.contact-hero {
  align-self: stretch;
  padding: 4rem 7.5rem;
  background: linear-gradient(135deg,
      var(--black-300) 0%,
      var(--primary-dark) 100%);
  justify-content: space-between;
  align-items: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;

  @media (max-width: 768px) {
    padding: 40px 24px;
  }
}

.contact-hero__title {
  max-width: 33.125rem;
  text-align: center;
  color: var(--white-100);
  font-size: 3.5rem;
  /* 56px */

  @media (max-width: 768px) {
    font-size: var(--hero-text-1-size-mobile);
    max-width: 100%;
  }
}

.contact-hero__subtitle {
  text-align: center;
  color: var(--white-100);
  font-size: var(--heading-text-4-size-laptop);
  font-weight: var(--body-text-1-weight-laptop);
  margin: 0 auto;

  @media (max-width: 768px) {
    font-size: var(--subheading-text-1-size-mobile);
  }
}

/* Contact Section */
.contact-form-container {
  margin-inline: auto;
  padding-block: 5rem 4.5rem;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 4.4375rem;
  max-width: 75rem;
  width: 100%;

  @media (max-width: 768px) {
    flex-direction: column-reverse;
    align-items: center;
    gap: 1.5rem;
    padding: 40px 24px;
  }
}

/* Contact Info Section */
.contact-info {
  width: 100%;
  max-width: 26.25rem;
  display: flex;
  flex-direction: column;
  gap: 24px;

  @media (max-width: 768px) {
    max-width: 100%;
  }
}

.contact-card {
  width: 100%;
  background: var(--black-300);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  gap: 2rem;
  color: var(--white-100);
}

.contact-card.inner-card {
  display: flex;
  flex-direction: column;

  @media (max-width: 768px) {
    display: none;
  }
}

.contact-card.outer-card {
  display: none;

  @media (max-width: 768px) {
    display: flex;
    flex-direction: column;
  }
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-detail address {
  font-style: normal;
}

.detail-label {
  color: var(--white-200);
  font-size: var(--body-text-2-size-laptop);
  font-weight: var(--body-text-2-weight-laptop);
  font-family: var(--font-family);
  line-height: 1.375rem;

  @media (max-width: 768px) {
    font-size: var(--body-text-3-size-mobile);
  }
}

.detail-value {
  color: var(--white-100);
  font-size: var(--subheading-text-2-size-laptop);
  font-weight: var(--subheading-text-2-weight-laptop);
  font-family: var(--font-family);
  text-decoration: none;

  @media (max-width: 768px) {
    font-size: var(--subheading-text-4-size-mobile);
  }
}

/* Location Image */
.location-image {
  position: relative;
  width: 100%;
  aspect-ratio: 140/103;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

/* Contact Form */
.contact-form {
  width: 100%;
  max-width: 35.5625rem;
  background: var(--black-300);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--black-100);

  @media (max-width: 768px) {
    padding: 2rem 1.5rem;
    max-width: 100%;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-label {
  color: var(--white-100);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-family);
}

.form-input {
  width: 100%;
  padding: 1rem;
  background: var(--black-300);
  border: 1px solid var(--black-600);
  border-radius: 0.375rem;
  color: var(--white-100);
  font-family: var(--font-family);
  font-size: 0.875rem;
  line-height: 1.375rem;
  transition: border-color 0.3s ease;

  &::placeholder {
    color: var(--white-100);
  }
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-decoration {
  isolation: isolate;
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-bottom: 3.5rem;
  display: flex;
  justify-content: center;
  align-items: end;

  &::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 12.375rem;
    background: url('/static/assets/svg/contact-page-vector.svg');
    background-size: contain;
    background-position: bottom;
    background-repeat: no-repeat;
    z-index: -1;
  }

  @media (max-width: 768px) {
    padding-bottom: 0;

    &::before {
      width: 100%;
      aspect-ratio: 4.69;
    }
  }
}

.contact-decoration-image {
  width: 57.125rem;
  height: 27.5rem;
  display: flex;
  align-items: end;

  @media (max-width: 768px) {
    width: 100%;
    height: 100%;
    padding-inline: 1.875rem;
    padding-bottom: 1.875rem;
  }
}