/* =========================
   CONTACT
========================= */

#contact.contact-section{
  padding: var(--section-space) 0;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

#contact .contact-wrap{
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 28px;
  align-items: stretch;
}

#contact .contact-left{
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#contact .contact-intro{
  text-align: center;
  margin-bottom: 20px;
}

#contact .contact-left h2{
  margin: 0 0 12px;
  color: var(--ink);
  text-align: center;
}

#contact .contact-left p{
  margin: 0 auto 18px;
  color: var(--ink-soft);
  max-width: 560px;
  text-align: center;
  font-size: 1.05rem;
}

#contact .contact-links{
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: 14px 28px;
  margin-top: 18px;
  margin-bottom: 36px;
}

#contact .contact-info{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--green-dark);
  background: transparent;
  padding: 0;
  justify-content: center;
  font-size: 1.15rem;
}

#contact .contact-info i{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  min-width: 1.05rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  color: transparent;
}

#contact .contact-info .fa-phone{
  background-image: url("phone_icon.svg");
}

#contact .contact-info .fa-envelope{
  background-image: url("mail_icon.svg");
}

#contact .contact-info i::before{
  content: "";
}

#contact .contact-card{
  position: relative;
  box-sizing: border-box;
  overflow: visible;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(245,248,247,0.98));
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  margin-top: auto;
  padding: 22px 24px;
  width: calc(100% - 42px);
  align-self: start;
}

#contact .contact-card-img{
  position: absolute;
  left: 12px;
  bottom: 0;
  height: 108%;
  max-height: 220px;
  width: auto;
  object-fit: contain;
  pointer-events: none;
}

#contact .contact-card-text{
  max-width: 380px;
  margin-left: 185px;
  margin-right: 6px;
  text-align: left;
}

#contact .contact-card-text h3{
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 1.3rem;
  line-height: 1.2;
  text-align: center;
}

#contact .contact-card-text p{
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

#contact .contact-right{
  min-width: 0;
  background: var(--green-dark);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow-md);
  align-self: start;
}

#contact .contact-form{
  display: grid;
  gap: 14px;
}

#contact .form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

#contact .form-field{
  display: grid;
  gap: 6px;
}

#contact .form-field--trap{
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#contact .form-field label{
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: left;
}

#contact .contact-form input,
#contact .contact-form textarea,
#contact .contact-form select{
  width: 100%;
  box-sizing: border-box;
  display: block;
  border: 1px solid rgba(255,255,255,0.18);
  background: var(--bg);
  color: #181818;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  font-weight: 500;
}

#contact .contact-form input,
#contact .contact-form select{
  height: 46px;
  padding: 10px 12px;
}

#contact .contact-form textarea{
  padding: 12px;
  min-height: 140px;
  resize: vertical;
}

#contact .contact-form input[type="file"]{
  height: auto;
  padding: 10px;
  background: rgba(230,239,238,0.96);
}

#contact .contact-form input::placeholder,
#contact .contact-form textarea::placeholder{
  color: rgba(18,18,18,0.5);
  font-weight: 500;
  transition: opacity 0.16s ease;
}

#contact .contact-form input:focus::placeholder,
#contact .contact-form textarea:focus::placeholder{
  opacity: 0;
}

#contact .form-hint{
  color: rgba(255,255,255,0.74);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: left;
}

#contact .contact-submit{
  margin-top: 6px;
  border: none;
  border-radius: 999px;
  padding: 13px 16px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

#contact .contact-submit:hover{
  background: var(--green-deep);
  transform: translateY(-1px);
}

#contact .contact-submit:disabled{
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

#contact .contact-status{
  margin: 2px 0 0;
  color: rgba(255,255,255,0.78);
  font-size: 0.88rem;
  text-align: left;
}

#contact .contact-status.is-success{
  color: #c7f0cf;
}

#contact .contact-status.is-error{
  color: #ffd1d1;
}

@media (max-width: 980px){
  #contact .contact-wrap{
    grid-template-columns: 1fr;
  }

  #contact .contact-card{
    min-height: 220px;
  }
}

@media (max-width: 768px){
  #contact.contact-section{
    padding: var(--section-space) 0;
  }

  #contact .contact-intro,
  #contact .contact-left h2,
  #contact .contact-left p{
    text-align: center;
  }

  #contact .form-row{
    grid-template-columns: 1fr;
  }

  #contact .contact-links{
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 18px;
  }

  #contact .contact-card{
    min-height: 0;
    padding: 20px;
    display: grid;
    gap: 12px;
    width: 100%;
  }

  #contact .contact-card-img{
    position: relative;
    left: 0;
    margin: 0 auto;
    max-height: 220px;
    height: auto;
  }

  #contact .contact-card-text{
    margin: 0;
    max-width: none;
  }

  #contact .contact-right{
    border-radius: 8px;
    padding: 18px;
  }
}

@media (max-width: 520px){
  #contact .contact-card{
    padding: 16px;
  }

  #contact .contact-card-img{
    max-height: 190px;
  }

  #contact .contact-card-text h3{
    font-size: 1.16rem;
  }

  #contact .contact-submit{
    width: 100%;
    justify-content: center;
  }
}
