/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: center/cover no-repeat url(../assets/images/background-mobile.png);
  color: white;
  font-family: Inconsolata;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Conteúdo principal */
.body_minor {
  width: 100%;
  position: relative;
  z-index: 10; /* formulário acima dos decorativos */
}

.hidden {
  display: none !important;
}

/* Cabeçalho */
.heading_element {
  display: flex;
  gap: 10px;
  text-transform: capitalize;
  margin: 2rem auto;
  align-items: center;
  justify-content: center;
}

.heading_element img {
  height: 1rem;
}

/* Subtítulo e descrição */
.second_element {
  margin: 0 auto 2rem auto;
  text-align: center;
  width: 80%;
  color: hsl(245, 15%, 58%);
}

.second_element h2 {
  margin-bottom: 1.3rem;
  color: white;
  font-weight: 700;
}

.second_element h4 {
  color: hsl(245, 15%, 58%);
}

/* Formulário */
form {
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 11; /* acima dos decorativos */
}

.form_upload label,
.inputs label {
  text-transform: capitalize;
  margin-left: 4.5%;
  letter-spacing: 1px;
  font-size: 20px;
  margin-top: 13px;
}

/* Upload de avatar */
.upload_avatar {
  color: hsl(245, 15%, 58%);
  width: 90%;
  background: rgba(75, 72, 106, 0.3);
  margin: 10px auto;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px dashed hsl(252, 6%, 83%);
  border-radius: 10px;
  z-index: 100;
  cursor: pointer;
}

.upload_avatar .img_cont,
.upload_avatar .alternate {
  background: rgba(75, 72, 106, 0.6);
  border-radius: 10px;
  margin-top: 10px;
  margin-bottom: 15px;
  height: 3rem;
  width: 10%;
  min-width: 3rem;
  min-height: 3rem;
  max-height: 3rem;
  max-width: 10%;
  object-fit: cover;
}

.upload_avatar .img_stuff,
.upload_avatar .alternate_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

.uploaded_text_div {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.uploaded_text_div button {
  background: rgba(75, 72, 106, 0.6);
  padding: 4px 1rem;
  border-radius: 5px;
  color: hsl(245, 15%, 58%);
  text-transform: capitalize;
  border: none;
  cursor: pointer;
}

.uploaded_text_div button:hover {
  background: rgba(75, 72, 106, 0.3);
}

/* Inputs e botões */
input,
button {
  color: white;
  width: 90%;
  background: rgba(75, 72, 106, 0.3);
  margin: 8px auto 6px auto;
  padding: 1rem 10px;
  border: 1px solid hsl(252, 6%, 83%);
  border-radius: 10px;
}

input:hover {
  background: rgba(75, 72, 106, 0.6);
}

button {
  background: hsl(7, 88%, 67%);
  color: hsl(248, 70%, 10%);
  margin-bottom: 6rem;
  border: none;
  cursor: pointer;
}

button:hover {
  background: hsl(7, 71%, 60%);
}

/* Mensagens de erro */
.error-message {
  color: red;
  font-size: 12px;
  display: none;
  padding-left: 2px;
}

/* Tickets */
.ticket {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  margin-bottom: 8rem;
  width: 100%; 
  padding: 0 1rem;
  box-sizing: border-box;
}

.sub_ticket {
  width: 100%; 
  max-width: 700px;
}

.ticket_in {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  
  position: relative; 
  height: 0; 
  padding-bottom: 62.5%; 
  
  background-image: url('../assets/images/pattern-ticket.svg');
  background-size: cover; 
  background-position: center;
  background-repeat: no-repeat;
  
  border-radius: 10px; 
  overflow: hidden; 
}

.ticket_in_main {
  position: absolute;
  top: 1.5rem; 
  left: 1.5rem; 
  right: 1.5rem; 

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  
  box-sizing: border-box; 
}

.side {
  position: absolute;
  bottom: 1.5rem; 
  right: 1.5rem; 
  text-align: right;
  
  box-sizing: border-box; 
}

.company,
.user {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.user .packed {
  display: flex;
  flex-direction: column;
}

/* Elementos decorativos */
.bottom_design,
.top_curl_design,
.line_design,
.circle_design_left,
.circle_design_right {
  position: absolute;
  z-index: 1; /* abaixo do form */
  pointer-events: none; /* não bloqueia cliques */
}

/* Ajustes responsivos */
@media screen and (min-width: 900px) {
  form {
    width: 60%;
  }

  .second_element h2 {
    font-size: 2.5em;
    max-width: 60%;
  }

  .ticket {
    width: 60%; 
    margin: 0 auto;
    padding: 0; 
  }
}

@media screen and (min-width: 1400px) {
  body {
    background: center no-repeat url(../assets/images/background-desktop.png);
  }

  form {
    width: 35%;
  }

  .ticket {
    width: 40%;
    margin-top: 6rem;
  }
}