@font-face 
{
  font-family: 'Inconsolata';
  src: url('../assets/fonts/Inconsolata-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Body / fundo baseado no exemplo */
body 
{
  margin: 0;
  min-height: 100vh;
  font-family: 'Inconsolata', monospace, Arial, sans-serif;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 75% 25%, rgba(122,49,209,0.25) 0%, rgba(23,6,57,0.9) 30%),
              linear-gradient(180deg, #0d0c1d 0%, #1f1147 100%);
  padding: 40px 0;
}

/* ajuda responsiva */
.container { width: 420px; padding: 24px; box-sizing: border-box; }

/* Formulário (tela inicial) */
#main-section 
{
  background: rgba(0,0,0,0.45);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  text-align: center;
  padding: 32px;
}

.form-header 
{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 1.2rem;
  font-weight: 600;
}

.form-header img 
{
  width: 28px;
  height: 28px;
}

h1 
{
  margin: 0 0 12px 0;
  font-size: 2.2rem;
  line-height: 1.2;
  color: #fff;
}

.subtitle 
{
  margin: 0 0 24px 0;
  color: #d3d3d3;
  font-size: 1rem;
}

.effects-lines 
{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/pattern-lines.svg');
  background-repeat: repeat;
  background-size: contain;
  opacity: 1;
  z-index: -5;
  pointer-events: none;
}

.effects-right 
{
    position: fixed;
    right: -30px;
    top: 70px;
    width: 500px;
    height: 500px;
    background-image: url('../assets/images/pattern-squiggly-line-top.svg');
    background-repeat: no-repeat;
    background-size: contain;
    z-index: -6;
    pointer-events: none;
}


/* Estampas do plano de fundo */
.effects-left 
{
    position: fixed;
    left: -60px;
    bottom: -50px;
    width: 1000px;
    height: 500px;
    background-image: url('../assets/images/pattern-squiggly-line-bottom-desktop.svg');
    background-repeat: no-repeat;
    background-size: contain;
    z-index: -6;
    pointer-events: none;
}

.effects-circle-top
{
    position: fixed;
    top: -100px;
    left: 30px;
    width: 200px;
    height: 200px;
    background-image: url('../assets/images/pattern-circle.svg');
    background-repeat: no-repeat;
    background-size: contain;
    z-index: -7;
    pointer-events: none;
}

.effects-circle-center 
{
    position: fixed;
    top: 50%;
    right: 570px;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background-image: url('../assets/images/pattern-circle.svg');
    background-repeat: no-repeat;
    background-size: contain;
    z-index: -7;
    pointer-events: none;
    opacity: 0.1;
}

h2 { margin: 0 0 14px 0; font-size: 1.6rem; color: #fff; }

label 
{
  display: block;
  text-align: left;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #e6e2e8;
}

input, button 
{
  width: 100%;
  padding: 14px;
  margin-bottom: 16px;
  border-radius: 8px;
  border: 1px solid #4a4a68;
  box-sizing: border-box;
  font-size: 1rem;
}

input[type="text"],
input[type="email"] 
{
  background: #1c1a2e;
  color: #e6e2e8;
}

input::placeholder { color: #6c6a7c; }

button 
{
  background: #f9657c;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  border-radius: 10px;
  border: none;
  margin-top: 16px;
}

button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(249, 101, 124, 0.25); }

.file-upload-area 
{
  border: 2px dashed #4a4a68;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background-color: #1c1a2e;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #a8a3b0;
}

.file-upload-area i 
{
  font-size: 1.5rem;
  color: #f9657c;
  margin-bottom: 12px;
}

.file-upload-info 
{
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: #a8a3b0;
  margin-bottom: 16px;
}

/* esconder elemento */
.hidden { display: none; }

/* --- Tela do ticket --- */
.ticket-screen 
{
  width: 900px;
  max-width: calc(100vw - 40px);
  text-align: center;
  color: #e6e2e8;
}

/* Mensagem grande */
.message h1 
{
  font-size: 4rem;
  margin: 10px 0 6px;
  letter-spacing: 0.5px;
}
.message .sub { font-size: 3.7rem; margin: 0 0 8px; }
#ticket-name-highlight { color: #ff9aa2; }

/* formato do ticket */
.ticket-page #ticket-format 
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem auto;
    padding: 1.5rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
    background-image: url('../assets/images/pattern-ticket.svg');
    background-size: 140% 100%;
    background-repeat: no-repeat;
    background-position: center;
    width: 450px;
    max-width: 100%;
    min-height: 180px;
    background-color: rgba(0, 0, 0, 0.45);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    z-index: 10;
}

/* esconder o ticket para quando nao for exibido */
body:not(.ticket-page) #ticket-format 
{
  display: none;
}

.ticket-header 
{
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticket-logo-mark 
{
  width: 40px;
  height: 40px;
}

/* esquerda do ticket */
.ticket-left { text-align: left; flex: 1 1 auto; }
.ticket-brand 
{ 
  font-weight: 700; 
  font-size: 1.5rem; 
  color: #ffd2c9; 
}
.ticket-date 
{ 
  font-size: 0.85rem; 
  color: #c9bfd0; 
}

/* persona */
.ticket-person { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.ticket-person img 
{
  width: 72px; height: 72px; border-radius: 12px; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.12);
}
.ticket-person-name { font-size: 1rem; font-weight: 700; }
.ticket-person-gh { font-size: 0.9rem; color: #cfc6d6; margin-top: 4px; }

/* direita do ticket */
.ticket-right { width: 90px; text-align: center; color: rgba(255,255,255,0.18); font-weight: 700; font-size: 0.9rem; }

/* botão voltar */
#back-button 
{
  margin-top: 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: #e6e2e8;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 0;
}

@media (max-width: 720px) 
{
  .container 
  {
    width: 100%;
    padding: 20px;
  }

  h1 
  {
    font-size: 1.9rem;
  }

  .subtitle 
  {
    font-size: 0.9rem;
  }

  .effects-right, .effects-circle-center 
  {
    display: none;
  }

  .effects-left 
  {
    width: 300px;
    height: 300px;
    left: -100px;
    bottom: -100px;
  }

  .ticket-screen 
  {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .message h1 
  {
    font-size: 2.2rem;
  }

  .message .sub 
  {
    font-size: 1.2rem;
  }
  
  .email-info 
  {
    font-size: 0.9rem;
    padding: 0 10px;
  }

  #ticket-format 
  {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    width: 100%;
    max-width: 380px;
    box-sizing: border-box;
    background-size: cover;
    align-items: flex-start;
  }

  .ticket-left 
  {
    text-align: left;
    width: 100%;
  }

  .ticket-brand, .ticket-date 
  {
    position: static;
    margin: 0;
    text-align: left;
  }

  .ticket-brand 
  {
    font-size: 1.5rem;
    margin-bottom: 4px;
  }

  .ticket-date 
  {
    font-size: 0.8rem;
  }

  .ticket-person 
  {
    margin-top: 1.5rem;
  }

  .ticket-right 
  {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 0.8rem;
    background: rgba(0,0,0,0.3);
    padding: 4px 8px;
    border-radius: 4px;
    width: auto;
  }
}