@import "../styles/variables.css";

.contact-container {
  overflow: hidden;
}

.contact-container > .contact-wrapper {
  margin: auto;
  width: 90%;
}

.contact-container > .contact-wrapper > .contact-header-wrapper {
  width: 70%;
  padding-top: 100px;
}

.contact-container
  > .contact-wrapper
  > .contact-header-wrapper
  > .contact-header
  > h4 {
  color: #9780b1;
}

.contact-container
  > .contact-wrapper
  > .contact-header-wrapper
  > .contact-header
  > h1 {
  padding-bottom: 20px;
  margin-top: 0px;
}

.contact-container
  > .contact-wrapper
  > .contact-header-wrapper
  > .contact-form-wrapper {
  background: linear-gradient(45deg, #faf0fc, #d3e7f7);
  box-shadow: var(--box-shadow);
  border-radius: 10px;
  padding: 30px;
}

.contact-container
  > .contact-wrapper
  > .contact-header-wrapper
  > .contact-form-wrapper
  > .form-text
  > h2 {
  margin: 0;
}

.contact-container
  > .contact-wrapper
  > .contact-header-wrapper
  > .contact-form-wrapper
  > .form-text
  > p {
  width: 65%;
  align-self: center;
}

.contact-container
  > .contact-wrapper
  > .contact-header-wrapper
  > .contact-form-wrapper
  > .form-text {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.contact-container
  > .contact-wrapper
  > .contact-header-wrapper
  > .contact-form-wrapper
  > .form-text
  > h4 {
  font-weight: 500;
}

.contact-container
  > .contact-wrapper
  > .contact-header-wrapper
  > .contact-form-wrapper
  > .form-text
  > p {
  padding-bottom: 20px;
}

.contact-container
  > .contact-wrapper
  > .contact-header-wrapper
  > .contact-form-wrapper
  > form
  > .user-info-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-container
  > .contact-wrapper
  > .contact-header-wrapper
  > .contact-form-wrapper
  > form
  > .user-info-wrapper
  > div
  > input {
  border-radius: 10px;
  border: 1px solid var(--dark-purple);
  height: 45px;
  width: calc(100% - 12px);
  padding: 0 0 0 10px;
  margin-top: 5px;
  color: var(--dark-purple);
}

.contact-container
  > .contact-wrapper
  > .contact-header-wrapper
  > .contact-form-wrapper
  > form
  > .user-info-wrapper
  > div
  > input:focus {
  border: 1px solid var(--dark-purple);
  outline: none;
}

.contact-container
  > .contact-wrapper
  > .contact-header-wrapper
  > .contact-form-wrapper
  > form
  > .user-info-wrapper
  > .subject {
  grid-column: 1/3;
}

.contact-container
  > .contact-wrapper
  > .contact-header-wrapper
  > .contact-form-wrapper
  > form
  > legend {
  font-weight: 600;
  padding: 20px 0 20px 0;
}

.contact-container
  > .contact-wrapper
  > .contact-header-wrapper
  > .contact-form-wrapper
  > form
  > fieldset {
  border: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.contact-container
  > .contact-wrapper
  > .contact-header-wrapper
  > .contact-form-wrapper
  > form
  > fieldset
  > div {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-container
  > .contact-wrapper
  > .contact-header-wrapper
  > .contact-form-wrapper
  > form
  > fieldset
  > div
  > input[type="checkbox"] {
  accent-color: var(--dark-purple);
  font-size: 30px;
  width: 20px;
  height: 20px;
}

.contact-container
  > .contact-wrapper
  > .contact-header-wrapper
  > .contact-form-wrapper
  > form
  > .message {
  display: flex;
  flex-direction: column;
  padding-top: 20px;
}

.contact-container
  > .contact-wrapper
  > .contact-header-wrapper
  > .contact-form-wrapper
  > form
  > .message
  > textarea {
  border-radius: 10px;
  border: 1px solid var(--dark-purple);
  height: 100px;
  padding: 10px;
  margin: 5px 0 30px 0;
  color: var(--dark-purple);
  resize: none;
}

.contact-container
  > .contact-wrapper
  > .contact-header-wrapper
  > .contact-form-wrapper
  > form
  > .message
  > textarea:focus {
  border: 1px solid var(--dark-purple);
  outline: none;
}

.contact-container
  > .contact-wrapper
  > .contact-header-wrapper
  > .contact-form-wrapper
  > form
  > .solid-button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
}

.contact-container
  > .contact-wrapper
  > .contact-header-wrapper
  > .contact-form-wrapper
  > form
  > .solid-button:hover:enabled {
  color: #fff;
  cursor: pointer;
}

.contact-container
  > .contact-wrapper
  > .contact-header-wrapper
  > .contact-form-wrapper
  > form
  > .solid-button:disabled {
  opacity: 0.2;
  cursor: default;
  box-shadow: none;
}

.contact-container > .contact-wrapper > .company-info-wrapper {
  margin-top: 80px;
}

.contact-container
  > .contact-wrapper
  > .company-info-wrapper
  > .get-in-touch-wrapper
  > h2 {
  margin: 0;
}

.contact-container
  > .contact-wrapper
  > .company-info-wrapper
  > .get-in-touch-wrapper
  > p {
  margin-bottom: 50px;
}

.contact-container
  > .contact-wrapper
  > .company-info-wrapper
  > .contact-map-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  gap: 50px;
  margin-bottom: 150px;
}

.contact-container
  > .contact-wrapper
  > .company-info-wrapper
  > .contact-map-wrapper
  > .email-location-wrapper {
  width: 40%;
}

.contact-container
  > .contact-wrapper
  > .company-info-wrapper
  > .contact-map-wrapper
  > .email-location-wrapper
  > .email {
  margin-bottom: 60px;
}

.contact-container
  > .contact-wrapper
  > .company-info-wrapper
  > .contact-map-wrapper
  > .email-location-wrapper
  > .email
  > a {
  color: var(--dark-purple);
}

.contact-container
  > .contact-wrapper
  > .company-info-wrapper
  > .contact-map-wrapper
  > .email-location-wrapper
  > .email
  > .icon-text-wrapper
  > h3 {
  margin: 0;
  padding: 0;
}

.contact-container
  > .contact-wrapper
  > .company-info-wrapper
  > .contact-map-wrapper
  > .email-location-wrapper
  > .email
  > .icon-text-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.contact-container
  > .contact-wrapper
  > .company-info-wrapper
  > .contact-map-wrapper
  > .email-location-wrapper
  > .email
  > .icon-text-wrapper
  > i {
  font-size: 20px;
}

.contact-container
  > .contact-wrapper
  > .company-info-wrapper
  > .contact-map-wrapper
  > .email-location-wrapper
  > .office
  > .icon-text-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.contact-container
  > .contact-wrapper
  > .company-info-wrapper
  > .contact-map-wrapper
  > .email-location-wrapper
  > .office
  > .icon-text-wrapper
  > h3 {
  margin: 0;
  padding: 0;
}

.contact-container
  > .contact-wrapper
  > .company-info-wrapper
  > .contact-map-wrapper
  > .email-location-wrapper
  > .office
  > .icon-text-wrapper
  > i {
  font-size: 20px;
}

.contact-container
  > .contact-wrapper
  > .company-info-wrapper
  > .contact-map-wrapper
  > iframe {
  width: 60%;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.g-recaptcha {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.toast-container {
  position: fixed;
  top: 85px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 200px;
  max-width: 350px;
  padding: 12px 20px;
  background-color: var(--medium-purple);
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: auto;
  animation: slideIn 0.5s forwards, stayThenFade 5s forwards;
}

.toast.success {
  background-color: var(--medium-purple);
}
.toast.error {
  background-color: #d16b6b;
}

@keyframes slideIn {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes stayThenFade {
  0% {
    opacity: 1;
  }
  93.75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
