*{
  padding: 0px;
  margin: 0px;
  box-sizing: border-box;
  font-family: "Onest", sans-serif;
  font-style: normal;
}
.onest-uniquifier {
  font-family: "Onest", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}

body,html{
  height: 100%;
}
body{
  overflow: hidden;
}
.container{
  box-shadow: 0px 0px 4px 1px #f8e0e7;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}

header{
  display: flex;

  background-color: #F9F3FF;
  padding: 10px 20px 1px 10px;
  width: 100%;
  height: 60px;
  -webkit-box-align: center;
  align-items: center;
  z-index: 998;
  -webkit-box-pack: justify;
}

.top-content{
  background-color: #F9F3FF;
  padding: 0px 16px 20px;
  width: 100%;
}
.duvidas > p{
  font-size: 12px;
  margin-top: 16px;
}
.duvidas > div{
  font-size: 12px;
  margin-top: 12px;
}
.help-link{
  display: block;
  width: fit-content;
  margin-top: 12px;
  color: #6b409c;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.container{
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 100px;
}

.codigo-content{
  display: flex;
  justify-content: space-between;
  margin: 24px auto 0;
  padding: 8px 13px;
  background-color: white;
  border-radius: 3px;
  border: 0.1px solid #d3d3d370;
}
.codigo{
  display: flex;
  align-items: center;
  gap: 5px;
}

.codigo > p{
  font-size: 11px;
  color: #747474;
}
.codigo > div{
  font-size: 18px;
  color: #3d0e6b;
  font-weight: 700;
  font-family: "Roboto Mono";
}

.bt-docs{
  border: 0px;
  background-color: #F3E7FF;
  width: 268px;
  text-align: center;
  border-radius: 20px;
  font-size: 11px;
  color: #3d0e6b;
  font-weight: 700;
  cursor: pointer;
}
.links{
  display: flex;
  gap: 10px;
  width: 100%;
}
.links > a{
  display: inline-block;
  padding: 15px 16px;
  text-decoration: none;
  font-size: 14px;
  font-family: Onest;
  font-weight: 700;
  opacity: 0.5;
  width: fit-content;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.links > a.active{
  opacity: 1;
  border-bottom: 3px solid #3d0e6b;
  width: fit-content;
}

.content{
  margin: 45px 20px 0px;
  font-size: 14px;
  font-family: Onest;
  margin-bottom: 0;
}

.content > div{
  display: flex;
  flex-direction: column;
  -webkit-box-pack: center;
  justify-content: center;
  min-height: 32px;
}

.content  h3{
  font-weight: 700;
  font-family: Onest;
  font-size: 14px;
}

.content p{
  margin-top: 8px;
  color: #535154;
  line-height: 20px;
}

.observacao{
  margin: 18px 0px;
}

.bt-download{
  position: fixed;
  z-index: 900;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, calc(100% - 40px));
  max-width: 100%;
  margin: 0;
  height: 58px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background-color:#3d0e6b;
  font-family: Onest;
  color: white;
  font-weight: 700;
  font-family: Onest;
  font-style: normal;
  font-size: 14px;
  line-height: 120%;
  border: 0px;
  border-radius: 40px;
  cursor: pointer;
}

/* Botão "Como usar meu atestado médico?" — estilo espelhado do mevo.com.br */
.bt-como-usar{
  position: fixed;
  z-index: 900;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 460px;
  max-width: calc(100% - 40px);
  height: 14px;
  margin: 19px auto 0;
  border: 0;
  background: transparent;
  color: #6b409c;
  font-family: Onest, sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 14px;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.bt-como-usar:hover{ opacity: 0.8; }
.bt-como-usar svg{ flex: 0 0 auto; }

.howto-overlay{
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 0, 30, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.howto-overlay.open{ opacity: 1; visibility: visible; }
.howto-dialog{
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 32px 28px 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 30px rgba(30, 15, 40, .18);
  color: #28242d;
}
.howto-dialog h2{ margin: 0 34px 20px 0; color: #3d0e6b; font-size: 18px; line-height: 1.35; }
.howto-dialog ol{ margin: 0 0 18px; padding-left: 24px; }
.howto-dialog li,.howto-dialog p{ font-size: 14px; line-height: 1.55; color: #535154; }
.howto-dialog li{ padding-left: 4px; margin-bottom: 12px; }
.howto-dialog p{ margin: 0 0 22px; }
.howto-dialog p a{ color: #3d0e6b; font-weight: 600; }
.howto-close{ position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: #535154; font-size: 28px; line-height: 1; padding: 4px; }
.howto-share{ width: 100%; min-height: 48px; border: 0; border-radius: 24px; background: #3d0e6b; color: white; font-size: 14px; font-weight: 700; }

/* ============ MODAL DE DOWNLOAD DO ATESTADO ============ */
.download-overlay{
  position: absolute;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(15, 0, 30, .45);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.download-overlay.open{ opacity: 1; visibility: visible; }
.download-dialog{
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90%;
  overflow-y: auto;
  padding: 60px 30px 50px 30px;
  border: 1px solid rgba(61, 14, 107, .08);
  border-radius: 30px 30px 0 0;
  background: #fff;
  box-shadow: 0 20px 25px -5px rgba(61, 14, 107, .12), 0 10px 10px -5px rgba(61, 14, 107, .06);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.22, .75, .25, 1);
}
.download-overlay.open .download-dialog{ transform: translateY(0); }
.download-close{
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #535154;
  font: 28px/1 Onest, sans-serif;
  cursor: pointer;
}
.download-dialog h2{ margin: 0 28px 12px 0; color: #252228; font-size: 16px; line-height: 1.35; }
.download-dialog p{ margin: 0; color: #535154; font-size: 14px; line-height: 1.55; }
.access-code{ display: flex; justify-content: center; margin: 24px 0; }
.access-code input{
  width: 110px;
  height: 70px;
  border: 1px solid #d8d1df;
  border-radius: 8px;
  color: #545c62;
  background: #fff;
  font: 700 22px Onest, sans-serif;
  text-align: center;
  margin: 0px 2px;
  text-align: center;
  border: 1px solid;
  background: white;
  width: calc(25% - 5px);
  height: 70px;
  border-radius: 10px;
  font-family: "Roboto Mono";
  font-size: 16px;
}
.download-confirm{ width: 100%; min-height: 48px; border: 0; border-radius: 24px; background: #3d0e6b; color: #ffd3de; font: 700 14px Onest, sans-serif; cursor: pointer; padding: 21px 24px; margin-bottom: 15px;}
.download-confirm:hover{ background: #2a094d; }
.download-resend{
  font-family: "Onest" sans-serif;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
    display: flex;
    position: relative;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    width: 100%;
    height: 26px;
    border-radius: 20px;
    padding: 21px 24px;
    background-color: rgb(255, 255, 255);
    border: 1px solid rgb(255, 182, 191);
    cursor: pointer;
    transition: 0.5s !important;
    min-width: unset !important;
    text-decoration: none;
    box-shadow: 8px 8px 20px rgba(61, 14, 107, .2);
    color:#3d0e6b;
}
.download-resend:hover{ text-decoration: underline; }
@media (max-width: 480px){ .download-dialog{ padding: 28px 22px 22px; } .access-code{ gap: 8px; } .access-code input{ width: 44px; height: 52px; } }
.howto-demo-note{ margin: 10px 0 0 !important; font-size: 12px !important; text-align: center; }
.bt-download svg{ flex: 0 0 auto; }
@media (max-width: 500px){
  .content{
    margin-top: 24px;
  }
  .howto-dialog{ padding: 28px 22px 22px; }
}

/* ============ NAV BAR ============ */
header {
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  z-index: 1050;
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background-color: #999999;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animação do ícone "X" quando o menu está aberto */
.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.logo-link {
  color: #3d0e6b;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
}
.logo-link img {
  display: block;
  max-height: 16px;
  width: auto;
}

/* ============ OVERLAY ============ */
.overlay-mobile {
  position: fixed;
  inset: 0;
  background: rgba(15, 0, 30, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.overlay-mobile.open {
  opacity: 1;
  visibility: visible;
}

/* ============ MENU LATERAL ============ */
.atesto-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 80vw;
  background: #ffffff;
  z-index: 1050;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  padding-top: 0;
  pointer-events: none;
}
.atesto-sidebar.open {
  transform: translateX(0);
  pointer-events: auto;
}

.sidebar-close {
  position: absolute;
  top: 16px;
  right: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 2px solid #a9d8f0;
  border-radius: 9px;
  cursor: pointer;
  padding: 0;
  z-index: 1060;
}

.sidebar-header {
  flex: 0 0 64px;
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-header h2 {
  margin: 0;
  color: #29252d;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 30px;
}

.sidebar-section {
  margin: 0;
}
.sidebar-section:first-child { padding-top: 4px; }
.sidebar-section + .sidebar-section { margin-top: 40px; }

.sidebar-section-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: #29252d;
  margin: 0 0 16px;
  padding: 0 20px;
  text-transform: none;
  letter-spacing: 0;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  margin: 0;
}
.sidebar-list li + li { border-top: 1px solid #e8e8e8; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 0 20px;
  color: #5c5b60;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.sidebar-link:hover,
.sidebar-link:focus {
  color: #3d0e6b;
  background-color: #faf8fc;
}
.sidebar-icon { width: 18px; height: 18px; flex: 0 0 18px; overflow: visible; }
.sidebar-chevron { width: 6px; height: 10px; flex: 0 0 6px; margin-left: auto; color: #3d0e6b; }

/* ============ MODAL VER DOCUMENTOS ============ */
.modal-overlay{
  position: absolute;
  inset: 0;
  background: rgba(15, 0, 30, .45);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.modal-overlay.open{
  opacity: 1;
  visibility: visible;
}
.modal-container{
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  max-height: 90%;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 20px 25px -5px rgba(61, 14, 107, .12), 0 10px 10px -5px rgba(61, 14, 107, .06);
  overflow-y: auto;
  position: relative;
  transform: translateY(100%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.22, .75, .25, 1);
  display: flex;
  flex-direction: column;
  padding: 60px 30px 50px;
}
.modal-overlay.open .modal-container{
  transform: translateY(0);
  opacity: 1;
}
.modal-close{
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  color: #535154;
  font: 28px/1 Onest, sans-serif;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}
.modal-close svg{display:none;}
.modal-grabber{display:none;}
.modal-content{
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-title{
  font-size: 18px;
  font-weight: 600;
  color: #252228;
  margin: 0;
}
.modal-intro{
  font-size: 12px;
  color: #535154;
  line-height: 1.5;
  margin: 0;
}
.doc-header{
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}
.doc-label{
  font-size: 13px;
  font-weight: 700;
  color: #252228;
}
.doc-sub{
  font-size: 12px;
  color: #747474;
}
.doc-code-row{
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 8px 12px;
}
.doc-code-value{
  font-size: 22px;
  color: #3d0e6b;
  font-weight: 700;
  font-family: "Roboto Mono", monospace;
  white-space: nowrap;
}
.doc-list{display:flex;flex-direction:column;gap:16px;}
.doc-item{
  height:50px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 12px;
  background:#fafafa;
  border:1px solid #e4e4e4;
  border-radius:8px;
  color:#252228;
  font-size:14px;
  font-weight:600;
}
.doc-actions{display:flex;align-items:center;gap:12px;}
.doc-btn-icon{
  width:28px;
  height:28px;
  border:0;
  padding:0;
  background:#f3e7ff;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color:#3d0e6b;
  transition:background .2s ease;
}
.doc-btn-icon:hover{background:#e8d3ff;}
.doc-btn-icon svg{width:17px;height:17px;}
.modal-btn-voltar{
  width:100%;
  height:58px;
  flex:0 0 58px;
  margin:16px 0 0;
  padding:0 24px;
  border:0;
  border-radius:40px;
  background:#f3e7ff;
  color:#3d0e6b;
  font:700 14px Onest,sans-serif;
  cursor:pointer;
}
.modal-btn-voltar:hover{background:#ead8fa;}
@media (max-width: 480px){.modal-container{padding:28px 22px 22px;}}
