:root {
  --primary: #C52332;
  --secondary: #f68a1e;
  --bg-light: #f9f9f9;
  --bg-white: #ffffff;
  --text-dark: #333333;
  --border-radius: 8px;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --font-family: 'ROBOTO', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

iframe {
  overflow: hidden !important;
  scrollbar-width: none; /* Para Firefox */
}

iframe::-webkit-scrollbar {
  display: none; /* Para Chrome, Safari e Edge */
}



body {
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 1024px;
  margin: 40px auto;
  padding: 0 24px;
}

.header {
  margin-bottom: 32px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.header-icon svg {
  width: 48px;
  height: 48px;
}
.header-icon svg {
    fill: #C52332 !important;
}
.header-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #C52332 !important;
    text-transform: uppercase;
    letter-spacing: .5px;
}
/* Barra de acompanhamento */
.tracking-container {
  margin-bottom: 32px;
}

.tracking-container h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.tracking-input {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tracking-input input {
  flex: 1;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  min-width: 0;
}

.tracking-input button {
  background: var(#C52332);
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  white-space: nowrap;
}

.tracking-input button:hover {
  background: #C52332;
}

/* Cards */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.card-icon svg {
  width: 64px;
  height: 64px;
}

.card-title {
  margin-top: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}

/* Formulário */
.form-container {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 32px;
  display: none;
}

.form-header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.form-icon svg {
  width: 48px;
  height: 48px;
  margin-right: 16px;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

textarea {
  min-height: 140px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.checkbox-group input {
  width: 18px;
  height: 18px;
}

.identification-fields {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 16px;
  margin-bottom: 24px;
  display: none;
}
#identificationFields {
    display: block; /* Certifique-se de que a exibição seja alterada para 'block' quando necessário */
}

.btn-primary {
  background:#C52332;
  color: #fff;
  padding: 14px 28px;
  font-size: 1rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background .2s;
}

.btn-primary:hover {
  background: #C52332;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 16px;
}

.modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease-in-out;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  color: #888;
  cursor: pointer;
}

.ticket-number {
  font-size: 16px;
  color: #C52332;
  font-weight: 600;
  margin: 10px 0 20px;
  word-break: break-word;
}

/* Modal Acompanhamento */
#modalAcompanhamento {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  padding: 16px;
}

#modalAcompanhamento .modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  max-height: 90vh;          /* Limite vertical */
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease-in-out;
  position: relative;
  text-align: left;
  overflow-y: auto;          /* Scroll se ultrapassar a altura */
}


#modalAcompanhamento .close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  color: #888;
  cursor: pointer;
}

/* Responsividade */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .tracking-input {
    flex-direction: column;
  }

  .tracking-input button {
    width: 100%;
  }

  .form-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-icon svg {
    margin-bottom: 12px;
  }

  .cards-container {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
