/* MODAL CONTATO NOVO */

.newcontact-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 24px;
}

.newcontact-modal.is-open {
  display: flex;
}

.newcontact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 20, 16, 0.72);
  backdrop-filter: blur(3px);
}

.newcontact-box {
  position: relative;
  z-index: 1;

  width: min(1040px, 100%);
  max-height: calc(100vh - 48px);

  display: grid;
  grid-template-columns: 40% 60%;

  overflow: auto;
  border-radius: 18px;
  background: #faf7f1;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.newcontact-close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 3;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #414019;

  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.newcontact-close:hover {
  transform: rotate(90deg);
  background: #e79058;
  color: #fff;
}

.newcontact-image {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #79472a;
}

.newcontact-image > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.newcontact-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(34, 30, 23, 0.72),
    rgba(34, 30, 23, 0.08) 55%,
    rgba(34, 30, 23, 0.12)
  );
}



.newcontact-content {
  padding: 50px 54px 42px;
}

.newcontact-heading {
  margin-bottom: 30px;
  padding-right: 42px;
}

.newcontact-heading span {
  display: block;
  margin-bottom: 8px;

  color: #e79058;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.newcontact-heading h2 {
  margin: 0 0 10px;

  color: #414019;
  font-size: 2.15rem;
  font-weight: 500;
  line-height: 1.08;
}

.newcontact-heading p {
  max-width: 440px;
  margin: 0;

  color: #79472a;
  font-size: 0.95rem;
  line-height: 1.55;
}

.newcontact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.newcontact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.newcontact-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.newcontact-field label {
  color: #414019;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.newcontact-field input,
.newcontact-field select,
.newcontact-field textarea {
  width: 100%;
  box-sizing: border-box;

  border: 1px solid #dfd2c5;
  border-radius: 8px;
  outline: none;

  background: #fffdf9;
  color: #414019;

  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;

  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newcontact-field input,
.newcontact-field select {
  height: 46px;
  padding: 0 14px;
}

.newcontact-field textarea {
  min-height: 104px;
  padding: 13px 14px;
  resize: vertical;
}

.newcontact-field select {
  cursor: pointer;
}

.newcontact-field input:focus,
.newcontact-field select:focus,
.newcontact-field textarea:focus {
  border-color: #e79058;
  box-shadow: 0 0 0 3px rgba(231, 144, 88, 0.16);
}

.newcontact-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 5px;

  border: 0;
  border-radius: 8px;

  background: #e79058;
  color: #fff;

  font-family: "Montserrat", sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;

  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.newcontact-submit:hover {
  transform: translateY(-2px);
  background: #79472a;
}

.newcontact-feedback {
  min-height: 18px;
  margin: 0;

  color: #79472a;
  font-size: 0.82rem;
  line-height: 1.35;
}

/* TABLET */

@media screen and (max-width: 820px) {
  .newcontact-box {
    grid-template-columns: 34% 66%;
  }

  .newcontact-content {
    padding: 48px 34px 38px;
  }

  .newcontact-image {
    min-height: 600px;
  }
}

/* CELULAR */

@media screen and (max-width: 620px) {
  .newcontact-modal {
    align-items: flex-start;
    padding: 14px;
    overflow-y: auto;
  }

  .newcontact-box {
    width: 100%;
    max-height: none;
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

  .newcontact-image {
    display: none;
  }

  .newcontact-content {
    padding: 56px 22px 28px;
  }

  .newcontact-heading {
    margin-bottom: 25px;
    padding-right: 28px;
  }

  .newcontact-heading h2 {
    font-size: 2rem;
  }

  .newcontact-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .newcontact-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }
}
.newcontact-submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.newcontact-feedback.is-loading {
  color: #79472a;
}

.newcontact-feedback.is-success {
  color: #414019;
  font-weight: 600;
  background: #e3d8d0;
  border-left: 4px solid #e79058;
  padding: 10px 12px;
  border-radius: 6px;
}

.newcontact-feedback.is-error {
  color: #b23a2e;
  font-weight: 600;
}