.contact-form {
  position: relative;
  font-size: 91.2%;
  padding-inline: 20px;
  background-color: #0f172a;
  background-image: url("./assets/background.webp");
  background-size: auto;
  background-position: left top;
}
.contact-form::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0f172a;
  opacity: 0.71;
  z-index: 0;
}
.contact-form__wrapper {
  position: relative;
  z-index: 1;
  padding-top: 55px;
  padding-bottom: 25px;
}
.contact-form__title,
.entry-content .contact-form__title {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1em;
  color: #ffffff;
}
.contact-form__subtitle {
  margin-top: 17px;
  font-size: 1em;
  line-height: 1.6em;
  color: #ffffff;
}
.contact-form__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
  margin-top: 10px;
}
.contact-form__form input {
  padding: 0.75em;
  height: auto;
  border-width: 1px;
  border-style: solid;
  border-color: #dddddd;
  border-radius: 2px;
  color: #000000;
  background-color: #fafafa;
  box-shadow: none;
  transition: all 0.2s linear;
  outline: none;
  font-size: 1em;
  line-height: 1.6em;
  font-weight: 400;
  width: 100%;
}
.contact-form__form input:focus {
  border-color: #888888;
  border-style: dotted;
  border-width: thin;
}
.contact-form__form input::placeholder {
  color: #000000;
}
.contact-form__form textarea {
  background-color: #fafafa;
  color: #000000;
  border-radius: 2px;
  padding: 12px;
  font-size: 1em;
  line-height: 1.6em;
  font-weight: 400;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s linear;
}
.contact-form__form textarea:hover,
.contact-form__form textarea:focus {
  border-color: #888888;
  border-style: dotted;
  border-width: thin;
}
.contact-form__form textarea::placeholder {
  color: #000000;
}
.contact-form__form button {
  font-family: sans-serif;
  background-color: #ffffff;
  color: #2d8c55;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
.contact-form__form button:disabled {
  cursor: not-allowed;
  opacity: .8;
}
.contact-form__message {
  display: none;
}
.contact-form__loading {
  margin-top: 12px;
  font-weight: 600;
  color: #ffffff;
  opacity: 0.9;
  display: none;
  align-items: center;
  gap: 10px;
}
.contact-form__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 1);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: block;
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}
@media (min-width: 768px) {
  .contact-form {
    font-size: 100%;
    padding-block: 100px;
  }
  .contact-form__wrapper {
    padding: 0;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
  }
  .contact-form__texts {
    max-width: 373px;
    padding: 30px;
  }
  .contact-form__title,
  .entry-content .contact-form__title {
    font-size: 2.25rem;
  }
  .contact-form__form {
    margin-top: 0;
    width: 100%;
    max-width: 600px;
    padding: 10px;
  }
}
@media (hover: hover) and (pointer: fine) {
  .contact-form__form input:hover {
    color: #000000;
    border-color: #888888;
  }
  .contact-form__form button:hover {
    background-color: #e6e6e6;
    color: #000000;
  }
}
