.imp-reseller {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 28px 0 0;
  overflow: hidden;
  background-color: #690915;
  scroll-margin-top: 92px;
  box-sizing: border-box;
}

.imp-reseller__inner {
  width: min(100% - 48px, 1500px);
  max-width: 1500px !important;
  margin-inline: auto;
}

.imp-reseller__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(460px, 1.05fr);
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 4vw, 76px) !important;
  padding: 36px 72px !important;
  overflow: hidden;
  background-color: #690915;
  border-radius: 28px;
  isolation: isolate;
}

.imp-reseller__panel::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-image: var(--imp-reseller-pattern);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.4;
  pointer-events: none;
}

.imp-reseller__heading {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 16px;
}

.imp-reseller__title {
  margin: 0;
  color: #fff;
  font-family: var(--imp-font-display, "Longreach", Impact, sans-serif);
  font-size: clamp(54px, 4.2vw, 70px);
  font-weight: 400;
  line-height: 0.92;
  text-transform: uppercase;
  flex: 0 0 auto;
  width: max-content;
  max-width: none;
}

.imp-reseller__icon {
  width: 78px;
  height: auto;
  flex: 0 0 78px;
  margin: 0;
}

.imp-reseller__form {
  display: grid;
  gap: 15px;
  width: 100%;
  max-width: 620px;
}

.imp-reseller__field input {
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  color: #6d2f35;
  font-family: var(--imp-font-body, "Montserrat", Arial, sans-serif);
  font-size: 1.05rem;
  background: #fff;
  border: 0;
  border-radius: 10px;
}

.imp-reseller__consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #fff;
  font-size: 0.82rem;
  font-family: var(--imp-font-body, "Montserrat", Arial, sans-serif);
  line-height: 1.35;
}

.imp-reseller__consent a {
  color: #fff4b8;
}

.imp-reseller__submit {
  justify-self: end;
  min-height: 44px;
  padding: 0 28px;
  color: #fff;
  font-family: var(--imp-font-body, "Montserrat", Arial, sans-serif);
  font-weight: 900;
  background-color: #16a51f;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 190ms ease, box-shadow 190ms ease, filter 190ms ease;
}

.imp-reseller__submit:not([disabled]):hover,
.imp-reseller__submit:not([disabled]):focus-visible {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.06);
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.24);
}

.imp-reseller__submit:not([disabled]):active {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

.imp-reseller__submit[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.imp-reseller__media {
  display: flex;
  justify-content: center;
  align-self: center;
}

.imp-reseller__freezer {
  display: block;
  width: 100%;
  max-width: 620px;
  max-height: 660px;
  height: auto;
  object-fit: contain;
}

.imp-reseller__notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  color: #fff;
  border-radius: 8px;
}

.imp-reseller__notice--success {
  background: rgba(22, 165, 31, 0.7);
}

.imp-reseller__notice--error {
  background: rgba(0, 0, 0, 0.22);
}

.imp-reseller__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.imp-reseller input:focus-visible,
.imp-reseller button:focus-visible,
.imp-reseller a:focus-visible {
  outline: 3px solid #fff4b8;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .imp-reseller {
    padding-top: 0;
    scroll-margin-top: 76px;
  }

  .imp-reseller__inner {
    width: 100%;
  }

  .imp-reseller__panel {
    grid-template-columns: 1fr;
    padding: 36px clamp(16px, 5vw, 24px) 46px !important;
    overflow: visible;
  }

  .imp-reseller__content,
  .imp-reseller__form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .imp-reseller__heading,
  .imp-reseller__title {
    min-width: 0;
  }

  .imp-reseller__heading {
    gap: 5px;
    align-items: center;
    width: 100%;
  }

  .imp-reseller__title {
    max-width: calc(100% - 54px);
    width: auto;
    flex: 0 1 auto;
    font-size: clamp(42px, 12vw, 54px);
    line-height: 0.92;
  }

  .imp-reseller__icon {
    width: clamp(42px, 12vw, 50px);
    flex-basis: clamp(42px, 12vw, 50px);
  }

  .imp-reseller__field input {
    min-height: clamp(46px, 13vw, 52px);
    padding-inline: 16px;
    font-size: clamp(15px, 4.2vw, 17px);
  }

  .imp-reseller__consent {
    font-size: 0.9rem;
  }

  .imp-reseller__submit {
    justify-self: stretch;
    min-height: 46px;
  }

  .imp-reseller__media {
    align-self: center;
    justify-content: center;
    margin-top: 18px;
    min-height: 0;
    overflow: visible;
  }

  .imp-reseller__freezer {
    max-width: min(100%, 390px) !important;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 360px) {
  .imp-reseller__title {
    max-width: calc(100% - 48px);
    font-size: clamp(38px, 12.5vw, 44px);
  }

  .imp-reseller__icon {
    width: 42px;
    flex-basis: 42px;
  }
}

@media (min-width: 1025px) {
  .home .e-con:has(> .elementor-widget-imperatriz_reseller),
  .home .elementor-widget-imperatriz_reseller {
    position: relative;
    z-index: 3;
    overflow: visible;
    background-color: #690915;
  }

  .imp-reseller {
    padding-top: 0;
  }

  .home .imp-reseller,
  .page-template-page-sobre-nos .imp-reseller {
    position: relative;
    z-index: 3;
    overflow: visible;
  }

  .page-template-page-sobre-nos .imp-reseller {
    margin-top: -24px;
  }

  .home .imp-reseller .imp-reseller__inner {
    width: min(100% - 48px, 1500px);
    max-width: 1500px !important;
    margin-inline: auto;
    box-sizing: border-box;
  }

  .home .imp-reseller .imp-reseller__panel {
    position: relative;
    z-index: 3;
    align-items: center;
    padding-top: 36px !important;
    padding-bottom: 36px !important;
    border-radius: 28px;
  }

  .home .imp-reseller .imp-reseller__content {
    align-self: center;
  }

  .home .imp-reseller .imp-reseller__heading {
    display: inline-flex;
    justify-content: flex-start;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
  }

  .home .imp-reseller .imp-reseller__title {
    flex: 0 0 auto;
    width: max-content;
    max-width: none;
    font-size: clamp(58.5px, 4.6vw, 78px);
  }

  .home .imp-reseller .imp-reseller__icon {
    width: 78px;
    height: auto;
    flex: 0 0 78px;
    margin: 0;
  }

  .home .imp-reseller .imp-reseller__form {
    gap: 15px;
  }

  .home .imp-reseller .imp-reseller__media {
    align-self: center;
  }

  .home .imp-reseller .imp-reseller__freezer {
    width: 100%;
    max-width: 620px !important;
    height: auto;
    object-fit: contain;
  }
}

@media (min-width: 1921px) {
  .imp-reseller__panel {
    grid-template-columns: minmax(0, 620px) minmax(0, 680px);
    justify-content: center;
    gap: 88px !important;
    padding-inline: 92px !important;
  }

  .imp-reseller__form {
    max-width: 620px;
  }

  .imp-reseller__media {
    justify-content: center;
  }

  .imp-reseller__freezer {
    max-width: 620px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .imp-reseller__submit {
    transition: none;
  }

  .imp-reseller__submit:not([disabled]):hover,
  .imp-reseller__submit:not([disabled]):focus-visible,
  .imp-reseller__submit:not([disabled]):active {
    transform: none;
  }
}
