/* ============================================================
   Drawer de cadastro do teste grátis
   ============================================================ */

html.trial-drawer-open,
body.trial-drawer-open {
  overflow: hidden;
}

.trial-drawer {
  position: fixed;
  z-index: 240;
  inset: 0;
}

.trial-drawer[hidden],
.trial-drawer [hidden] {
  display: none !important;
}

.trial-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 16, 30, 0.68);
  backdrop-filter: blur(4px);
  animation: trial-drawer-fade 200ms ease both;
}

.trial-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(630px, 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid rgba(2, 26, 48, 0.2);
  box-shadow: -38px 0 90px rgba(0, 8, 19, 0.45);
  background: var(--paper);
  animation: trial-drawer-slide 280ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes trial-drawer-fade {
  from { opacity: 0; }
}

@keyframes trial-drawer-slide {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
}

.trial-drawer__header {
  position: relative;
  padding: 26px 30px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  background: var(--navy-900);
  color: var(--white);
}

.trial-drawer__header .eyebrow {
  margin: 0 0 8px;
}

.trial-drawer__header h2 {
  max-width: none;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.trial-drawer__close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  align-self: start;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.trial-drawer__close:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.11);
}

.trial-drawer__close img {
  filter: brightness(0) invert(1);
}

.trial-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 30px 32px;
}

.trial-drawer__assurances {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(220px, 0.82fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #ead7cb;
  border-radius: 14px;
  background: #fbede4;
}

.trial-drawer__assurance-primary {
  min-width: 0;
  padding: 18px 20px 18px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  border-right: 1px solid rgba(199, 101, 64, 0.24);
}

.trial-drawer__assurance-mark {
  position: relative;
  width: 68px;
  height: 68px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--terracotta-dark);
}

.trial-drawer__assurance-mark img,
.trial-drawer__assurance-proof-icon img {
  filter: invert(38%) sepia(57%) saturate(1025%) hue-rotate(332deg) brightness(93%) contrast(92%);
}

.trial-drawer__assurance-mark img:last-child {
  position: absolute;
  right: 0;
  bottom: 4px;
  padding: 4px;
  border-radius: 5px;
  background: #fbede4;
}

.trial-drawer__assurance-copy {
  min-width: 0;
}

.trial-drawer__assurance-copy strong,
.trial-drawer__assurance-copy small {
  display: block;
}

.trial-drawer__assurance-copy strong {
  color: var(--navy-850);
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.trial-drawer__assurance-copy small {
  margin-top: 6px;
  color: #69757b;
  font-size: 16px;
  line-height: 1.1;
}

.trial-drawer__assurance-proofs {
  min-width: 0;
  padding: 10px 18px;
  display: grid;
}

.trial-drawer__assurance-proof {
  min-width: 0;
  display: flex;
  gap: 12px;
  align-items: center;
}

.trial-drawer__assurance-proof + .trial-drawer__assurance-proof {
  border-top: 1px solid rgba(199, 101, 64, 0.2);
}

.trial-drawer__assurance-proof-icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
}

.trial-drawer__assurance-proof strong,
.trial-drawer__assurance-proof small {
  display: block;
}

.trial-drawer__assurance-proof strong {
  color: var(--navy-850);
  font-size: 15px;
  line-height: 1.1;
}

.trial-drawer__assurance-proof small {
  margin-top: 3px;
  color: #69757b;
  font-size: 12px;
  line-height: 1.15;
}

.trial-drawer__card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

.trial-drawer__card-heading .eyebrow {
  margin: 0 0 4px;
  font-size: 10px;
}

.trial-drawer__card-heading h3 {
  margin: 0;
  color: var(--navy-850);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.trial-drawer__method {
  margin: 16px 0;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid #dfd5ce;
  border-radius: 6px;
  background: var(--paper-2);
}

.trial-drawer__method button {
  min-height: 38px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #66737a;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.trial-drawer__method button.is-active {
  box-shadow: 0 2px 8px rgba(1, 26, 48, 0.1);
  background: var(--white);
  color: var(--terracotta-dark);
}

.trial-drawer__form {
  display: grid;
  gap: 13px;
}

.trial-drawer__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trial-drawer__fields label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #52616a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trial-drawer__fields label > span:first-child em {
  margin-left: 4px;
  color: #92999d;
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.trial-drawer__fields input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d9cec7;
  border-radius: 5px;
  outline: none;
  background: #fbf8f5;
  color: var(--navy-850);
  font: 500 13px/1.3 var(--sans);
  text-transform: none;
  letter-spacing: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.trial-drawer__fields input:focus {
  border-color: var(--terracotta-dark);
  box-shadow: 0 0 0 3px rgba(169, 78, 44, 0.12);
  background: var(--white);
}

.trial-drawer__fields input[aria-invalid="true"] {
  border-color: #ad3d36;
  box-shadow: 0 0 0 3px rgba(173, 61, 54, 0.1);
}

.trial-drawer__password {
  position: relative;
  display: block;
}

.trial-drawer__password input {
  padding-right: 46px;
}

.trial-drawer__password button {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #69777e;
  cursor: pointer;
  transform: translateY(-50%);
}

.trial-drawer__password button:hover {
  background: #eee6df;
  color: var(--terracotta-dark);
}

.trial-drawer__google-note {
  min-height: 66px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #d9cec7;
  border-radius: 6px;
  background: #fbf8f5;
}

.trial-drawer__google-note img {
  flex: none;
}

.trial-drawer__google-note strong {
  display: block;
  color: var(--navy-850);
  font-size: 12px;
}

.trial-drawer__google-note p {
  margin: 3px 0 0;
  color: #718087;
  font-size: 11px;
  line-height: 1.35;
}

.trial-drawer__consents {
  display: grid;
  gap: 7px;
}

.trial-drawer__consents label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #6a767c;
  font-size: 10px;
  line-height: 1.45;
}

.trial-drawer__consents input {
  width: 15px;
  height: 15px;
  flex: none;
  margin: 0;
  accent-color: var(--terracotta-dark);
}

.trial-drawer__consents a,
.trial-drawer__login a {
  color: var(--navy-850);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(3, 40, 67, 0.25);
  text-underline-offset: 3px;
}

.trial-drawer__feedback {
  min-height: 18px;
  margin: 0;
  color: #68757b;
  font-size: 11px;
  line-height: 1.45;
}

.trial-drawer__feedback:empty {
  min-height: 0;
}

.trial-drawer__feedback[data-tone="error"] {
  color: #a43832;
}

.trial-drawer__feedback[data-tone="success"] {
  color: #1b6f59;
}

.trial-drawer__submit,
.trial-drawer__google-button {
  min-height: 47px;
  width: 100%;
  border-radius: 5px;
  font: 900 13px/1 var(--sans);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.trial-drawer__submit {
  border: 1px solid var(--terracotta-dark);
  box-shadow: 0 8px 20px rgba(169, 78, 44, 0.18);
  background: var(--terracotta-dark);
  color: var(--white);
}

.trial-drawer__google-button {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cad2d7;
  background: var(--white);
  color: #243b4a;
}

.trial-drawer__submit:hover:not(:disabled),
.trial-drawer__google-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(2, 34, 57, 0.16);
}

.trial-drawer__submit:disabled,
.trial-drawer__google-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.trial-drawer__google-action {
  display: grid;
  gap: 8px;
}

.trial-drawer__google-render {
  min-height: 44px;
  overflow: hidden;
}

.trial-drawer__google-action > p {
  margin: 0;
  color: #778288;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

.trial-drawer__google-action > p[data-tone="error"] {
  color: #a43832;
}

.trial-drawer__login {
  margin: 15px 0 0;
  color: #778288;
  font-size: 10px;
  text-align: center;
}

@media (max-width: 640px) {
  .trial-drawer__header {
    padding: 20px 14px 18px;
    gap: 10px;
  }

  .trial-drawer__header h2 {
    font-size: clamp(17px, 5vw, 22px);
  }

  .trial-drawer__body {
    padding: 14px 14px 24px;
  }

  .trial-drawer__card {
    padding: 15px;
  }

  .trial-drawer__fields {
    grid-template-columns: 1fr;
  }

  .trial-drawer__assurances {
    grid-template-columns: 1fr;
  }

  .trial-drawer__assurance-primary {
    padding: 15px 16px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(199, 101, 64, 0.24);
  }

  .trial-drawer__assurance-mark {
    width: 58px;
    height: 58px;
  }

  .trial-drawer__assurance-mark img:first-child {
    width: 49px;
    height: 49px;
  }

  .trial-drawer__assurance-copy strong {
    font-size: 25px;
  }

  .trial-drawer__assurance-proofs {
    padding: 11px 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .trial-drawer__assurance-proof + .trial-drawer__assurance-proof {
    padding-left: 12px;
    border-top: 0;
    border-left: 1px solid rgba(199, 101, 64, 0.2);
  }

  .trial-drawer__assurance-proof {
    gap: 8px;
  }

  .trial-drawer__assurance-proof-icon {
    width: 28px;
    height: 28px;
  }

  .trial-drawer__assurance-proof-icon img {
    width: 25px;
    height: 25px;
  }

  .trial-drawer__assurance-proof strong {
    font-size: 13px;
  }

  .trial-drawer__assurance-proof small {
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .trial-drawer__header {
    padding-inline: 12px;
    gap: 8px;
  }

  .trial-drawer__close {
    width: 38px;
    height: 38px;
  }

  .trial-drawer__header h2 {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trial-drawer__backdrop,
  .trial-drawer__panel {
    animation: none;
  }
}
