html {
    min-height: 100%;
    background: var(--gradient);
}

#contact_info {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  --border: 2px solid rgba(0, 0, 0, 0.05);
}

#contact_info > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: var(--border);
  padding: 2rem;
  width: min(350px, 90vw);
}

#contact_info h2 {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0;
}

#contact_info p {
  margin: 0;
  margin-top: 0.15rem;
}

#contact_info div:nth-of-type(2) svg {
  margin-right: 0.25rem;
}

#contact_info a {
  color: black;
  text-decoration: none;
  text-align: center;
}

.social-media {
  display: flex;
  flex-direction: row !important;
  justify-content: center;
  gap: 2rem;
  border-bottom: none !important;
}

.social-media svg {
  height: 1.35rem;
}

.basic-info {
  padding-inline: 1rem !important;
  border-right: none !important;
  border-top: var(--border);
}

.basic-info h2 {
  margin-top: 0;
}

table td {
  padding: 0.3rem 0.75rem;
}

#form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(222, 226, 230, 1) 0%,
    rgb(232, 234, 236) 50%,
    rgba(222, 226, 230, 1) 100%
  );
  padding-bottom: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  gap: 0.5rem;
}

form > div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

div > label {
  width: 100%;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

textarea {
  width: min(95vw, 500px);
  min-height: 200px;
  resize: vertical;
}

input,
textarea {
  border: none;
  padding: 0.5rem;
  transition: box-shadow 200ms ease-in-out;
}

input:focus:not(:disabled),
textarea:focus:not(:disabled) {
  outline: none;
  box-shadow: 0 0 0 0.2rem var(--highlight-color);
}

form button {
  font-size: 1rem;
  padding: 1rem;
  margin-top: 0.5rem;
  border: none;
  cursor: pointer;
  background: var(--gradient);
  transition: background 250ms ease-in-out, color 100ms;
}

form button:hover:not(:disabled),
form button:focus:not(:disabled) {
  background: var(--highlight-color);
  color: white;
}

#message {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

#message:empty {
  display: none;
}

@media (min-width: 690px) {
  #contact_info > div {
    margin-block: 2rem;
    width: unset;
    border-right: var(--border);
    border-bottom: none;
    padding: 1rem 2rem;
  }

  #contact_info > div:nth-of-type(3) {
    border-right: none;
  }

  .social-media {
    width: 100% !important;
    margin-top: -1rem !important;
    margin-bottom: -1rem !important;
  }

  form > div {
    flex-direction: row;
  }
}
