:root {
  --blue: #3f73bd;
  --blue-dark: #173f7d;
  --purple: #2b0086;
  --purple-2: #4211b7;
  --red: #b31317;
  --text: #16233a;
  --muted: #64748b;
  --bg: #f4f7fb;
  --line: #e3e8f2;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(63, 115, 189, .16), transparent 34%),
    linear-gradient(135deg, #fbfaec, #eef4ff 55%, #f8fafc);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

/* HEADER - NÃO REMOVER */

.portal-header {
  min-height: 128px;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background:
    radial-gradient(circle at 90px 50%, rgba(255, 255, 255, .45), rgba(255, 255, 255, .15) 16%, transparent 32%),
    linear-gradient(160deg, var(--blue-dark) 0%, var(--blue) 52%, var(--purple) 100%);
  color: white;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 28px;
  text-decoration: none;
  color: inherit;
}

.portal-logo-card {
  width: 240px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-logo-card img {
  width: 230px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .25));
}

.portal-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portal-brand-text strong {
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}

.portal-brand-text span {
  margin-top: 6px;
  font-size: 20px;
  opacity: .94;
}

.portal-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.portal-nav a {
  color: white;
  text-decoration: none;
  font-weight: 900;
  font-size: 18px;
}

/* MAIN */

.portal-main {
  width: min(1180px, calc(100% - 36px));
  margin: 46px auto;
  flex: 1;
}

/* BOTÕES */

.btn,
button {
  border: 0;
  padding: 16px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), #4b05c8);
  color: white;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow: 0 16px 34px rgba(75, 5, 200, .22);
}

.btn-outline {
  background: #ffffff !important;
  color: #173f7d !important;
  border: 2px solid #dbe4f0 !important;
  box-shadow: none !important;
}

.btn-outline:hover {
  background: #eef4ff !important;
}

.btn-danger {
  background: linear-gradient(135deg, #991b1b, #dc2626) !important;
  box-shadow: 0 16px 34px rgba(153, 27, 27, .18) !important;
}

.cancel-note {
  display: block;
  color: #991b1b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}

/* MENSAGENS */

.portal-error-box,
.portal-warning-box,
.portal-success-box {
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 800;
}

.portal-error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.portal-warning-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.portal-success-box {
  background: #ecfdf3;
  border: 1px solid #86efac;
  color: #166534;
}

/* HOME */

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #2f63ac;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 20px;
  color: var(--red);
  font-size: 62px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.hero-box {
  padding: 38px;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  box-shadow: 0 26px 70px rgba(33, 79, 147, .30);
}

.hero-box h2 {
  margin: 0 0 18px;
  font-size: 48px;
}

.hero-box p {
  color: #eaf2ff;
}

.schedule-card {
  margin-top: 18px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
}

.schedule-card strong,
.schedule-card span {
  display: block;
  color: white;
}

.schedule-card strong {
  font-size: 20px;
}

.schedule-card span {
  margin-top: 6px;
  font-size: 18px;
}

.quick-buy,
.about,
.blog-preview,
.info-card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: 0 20px 54px rgba(15, 23, 42, .09);
}

.quick-buy,
.about,
.blog-preview {
  margin-top: 34px;
  padding: 38px;
}

.section-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.info-card {
  padding: 34px;
}

.red-card {
  background: linear-gradient(135deg, var(--red), #5b0fb8);
  color: white;
}

.red-card h2,
.red-card p {
  color: white;
}

.white-btn {
  background: white;
  color: var(--red);
  box-shadow: none;
}

.home-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 46px;
}

.location-box {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.location-box strong,
.location-box span {
  display: block;
}

.location-box span {
  margin-top: 5px;
  color: var(--muted);
}

.blog-preview {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: center;
}

.blog-card {
  padding: 26px;
  border-radius: 24px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

/* FORMS */

label {
  display: block;
  margin-bottom: 8px;
  color: #173f7d;
  font-weight: 900;
  font-size: 15px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  color: var(--text);
  font-size: 16px;
  outline: none;
  min-width: 0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(33, 79, 147, .12);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.portal-card {
  padding: 34px;
  border-radius: 32px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .10);
}

.portal-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.portal-section-head h1 {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 38px;
  line-height: 1.1;
}

.portal-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.portal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-group {
  min-width: 0;
}

.portal-terms-box {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid #dbe4f0;
  border-radius: 20px;
  background: #f8fafc;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.portal-terms-box input {
  width: 20px;
  height: 20px;
  min-height: auto;
  margin-top: 1px;
  flex: 0 0 auto;
}

.portal-terms-box label {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}

.portal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.parcel-destination-display {
  color: var(--muted);
  background: #eef4ff;
  cursor: default;
  font-weight: 800;
}

/* ENCOMENDAS */

.parcel-page {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: 26px;
  align-items: start;
}

.parcel-info-card {
  padding: 34px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .96)),
    radial-gradient(circle at top right, rgba(63, 115, 189, .15), transparent 35%);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .10);
}

.parcel-info-card h1 {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 46px;
  line-height: 1.08;
}

.parcel-lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.parcel-highlight,
.parcel-mini-card,
.parcel-locations article,
.parcel-deadline {
  border: 1px solid #dbe4f0;
  background: #ffffff;
  border-radius: 24px;
  padding: 22px;
}

.parcel-highlight {
  background: linear-gradient(135deg, #173f7d, #4211b7);
  color: #ffffff;
}

.parcel-highlight h2,
.parcel-highlight p {
  color: #ffffff;
}

.parcel-highlight h2,
.parcel-mini-card h2,
.parcel-locations h2,
.parcel-deadline h2,
.parcel-form-card h2 {
  margin: 0 0 10px;
  color: #173f7d;
  font-size: 22px;
  line-height: 1.2;
}

.parcel-highlight h2 {
  color: #ffffff;
}

.parcel-highlight p,
.parcel-mini-card p,
.parcel-locations p,
.parcel-deadline p {
  margin: 7px 0;
  line-height: 1.5;
}

.check-list {
  margin: 14px 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 850;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 14px;
  height: 8px;
  border-left: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: rotate(-45deg);
}

.parcel-whatsapp {
  width: 100%;
  background: #ffffff !important;
  color: #173f7d !important;
  box-shadow: none !important;
}

.parcel-info-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.parcel-locations {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.parcel-locations article {
  position: relative;
  overflow: hidden;
}

.parcel-locations article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--blue), var(--purple));
}

.parcel-locations span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.parcel-locations strong {
  display: block;
  margin-top: 12px;
  color: #173f7d;
}

.parcel-locations small {
  display: block;
  margin-top: 12px;
  color: #9a3412;
  font-weight: 850;
  line-height: 1.45;
}

.parcel-deadline {
  margin-top: 18px;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.parcel-form-card {
  min-width: 0;
}

.parcel-form-card form h2 {
  margin-top: 28px;
}

.parcel-form-card form h2:first-of-type {
  margin-top: 0;
}

/* LOGIN / CADASTRO */

.auth-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px;
  border-radius: 36px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
}

.auth-card h1 {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 46px;
}

/* COMPRA */

.flight-search {
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 38px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .10);
}

.flight-search-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}

.flight-search-top h1 {
  margin: 0;
  color: var(--red);
  font-size: 38px;
}

.trip-toggle {
  display: flex;
  gap: 10px;
}

.trip-toggle button {
  background: white;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
  box-shadow: none;
  padding: 12px 22px;
}

.trip-toggle button.active {
  background: #eef2ff;
  border-color: #4f46e5;
}

.flight-form {
  position: relative;
}

.route-bar {
  display: grid;
  grid-template-columns: 1fr 58px 1fr;
  align-items: stretch;
  border: 1px solid #9ca3af;
  border-radius: 18px;
  overflow: hidden;
  background: white;
}

.route-field {
  padding: 24px 28px;
  cursor: pointer;
}

.route-field span {
  display: block;
  color: #12004f;
  font-weight: 900;
  margin-bottom: 8px;
}

.route-field strong {
  display: block;
  color: #6b7280;
  font-size: 26px;
  font-weight: 500;
}

.swap-btn {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  align-self: center;
  justify-self: center;
  z-index: 2;
  padding: 0;
  color: #e11d48;
  background: white;
  border: 1px solid #e11d48;
  box-shadow: 0 8px 24px rgba(225, 29, 72, .12);
}

.enhanced-points {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px;
}

.enhanced-points .point-card {
  background: white;
  border: 1px solid #9ca3af;
  border-radius: 18px;
  padding: 18px 20px;
  min-height: 112px;
  position: relative;
  overflow: hidden;
}

.enhanced-points .point-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--blue), var(--purple));
}

.dropoff-card::before {
  background: linear-gradient(180deg, var(--red), #7c3aed) !important;
}

.point-card span {
  display: block;
  color: #6b7280;
  font-weight: 900;
  margin-bottom: 8px;
}

.point-card strong {
  display: block;
  color: #173f7d;
  font-size: 20px;
}

.point-card small {
  display: block;
  margin-top: 10px;
  color: #64748b;
  font-weight: 700;
}

.dropoff-card span {
  color: var(--red);
}

.dropoff-card select {
  margin-top: 8px;
}

.flight-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-box {
  min-height: 86px;
  border: 1px solid #9ca3af;
  border-radius: 16px;
  background: white;
  padding: 16px 20px;
  cursor: pointer;
}

.form-box label {
  color: #6b7280;
  margin: 0 0 8px;
}

.form-box input {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  height: auto;
  font-size: 24px;
}

.form-box strong {
  display: block;
  color: #374151;
  font-size: 24px;
  font-weight: 500;
}

/* PAINEL PASSAGEIROS DA BUSCA */

.passenger-panel {
  width: min(620px, 100%);
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
  margin-top: 12px;
}

.passenger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid #e5e7eb;
}

.passenger-row strong {
  display: block;
  color: #12004f;
  font-size: 22px;
}

.passenger-row span {
  color: #6b7280;
}

.counter-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.counter-actions button {
  background: transparent;
  color: #e11d48;
  box-shadow: none;
  font-size: 34px;
  padding: 0;
}

.counter-actions span {
  min-width: 24px;
  text-align: center;
  font-size: 22px;
  color: #374151;
}

.passenger-note {
  background: #eef2ff;
  color: #12004f;
  border-radius: 16px;
  padding: 18px;
  margin: 8px 0;
}

#pagamentoAviso {
  display: block;
  color: #64748b;
  font-weight: 800;
  margin-top: 16px;
}

/* HORÁRIOS */

.horario-card {
  margin-top: 24px;
  background: #fff;
  border-radius: 24px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  border: 1px solid #dbe3f0;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .05);
}

.horario-card h2 {
  margin: 0 0 18px;
  font-size: 42px;
  color: #183b8c;
}

.horario-info p {
  color: var(--text);
  margin: 8px 0;
}

.horario-locais {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e3e8f2;
}

.horario-locais p {
  margin: 6px 0;
  color: #1c2b48;
}

.horario-price {
  min-width: 240px;
  display: grid;
  gap: 10px;
  justify-items: end;
  align-content: center;
}

.price-from {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: -4px;
}

.horario-price strong {
  color: #d9143a;
  font-size: 32px;
  font-weight: 900;
}

.horario-price .btn {
  min-width: 190px;
  margin-top: 8px;
}

.horario-price form {
  width: 100%;
  display: grid;
  justify-items: end;
}

.horario-price form button {
  min-width: 190px;
}

.badge-vagas,
.badge-esgotado {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
}

.badge-vagas {
  background: #e8fff1;
  color: #0c8f4f;
}

.badge-esgotado {
  background: #fee2e2;
  color: #b91c1c;
}

/* PASSAGEIROS */

.resumo-viagem {
  background: #eef4ff;
  border: 1px solid #dbeafe;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
}

.resumo-viagem p {
  margin: 8px 0;
}

.passageiros-form {
  margin-top: 24px;
}

.passageiro-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .05);
}

.passageiro-box-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.passageiro-box-top h2 {
  margin: 0;
  color: #12004f;
  font-size: 26px;
}

.passageiro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field-full {
  grid-column: 1 / -1;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-line input {
  width: 20px;
  height: 20px;
  min-height: auto;
}

.checkbox-line label {
  margin: 0;
  color: var(--text);
}

/* PAGAMENTO */

.payment-options {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.payment-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.payment-card:hover {
  border-color: var(--blue);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}

.payment-card input {
  width: auto;
  height: auto;
  min-height: auto;
  margin-right: 10px;
}

.payment-card-content {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
}

.payment-card-text {
  display: grid;
  gap: 6px;
}

.payment-card-text strong,
.payment-card strong {
  color: #12004f;
  font-size: 18px;
  font-weight: 900;
}

.payment-card-text span,
.payment-card span {
  display: block;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.payment-values {
  min-width: 190px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 14px;
  align-items: center;
  text-align: right;
}

.payment-values span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.payment-values strong {
  color: #12004f;
  font-size: 16px;
  font-weight: 900;
}

/* FOOTERS DE AÇÃO */

.flight-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #e5e7eb;
  margin-top: 28px;
  padding-top: 24px;
}

.flight-footer button {
  min-width: 260px;
  background: linear-gradient(135deg, #e11d48, #b31317);
}

.actions-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.actions-footer .btn,
.actions-footer button {
  min-width: 220px;
}

.actions-footer form {
  margin: 0;
}

.hidden {
  display: none !important;
}

/* CUPOM TERMICO */

.thermal-screen {
  display: grid;
  justify-items: center;
  gap: 26px;
}

.thermal-actions {
  width: min(760px, 100%);
  padding: 22px 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .88);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .11);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.thermal-actions h1 {
  margin: 0;
  color: var(--red);
  font-size: 34px;
}

.thermal-actions-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.thermal-receipt {
  width: 80mm;
  max-width: 100%;
  padding: 5mm;
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .14);
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.25;
}

.thermal-receipt-header {
  text-align: center;
}

.thermal-receipt-header img {
  width: 42mm;
  height: auto;
  display: block;
  margin: 0 auto 5px;
}

.thermal-receipt-header strong,
.thermal-receipt-header span {
  display: block;
}

.thermal-receipt-header strong {
  font-size: 14px;
}

.thermal-receipt-header span {
  font-size: 11px;
}

.thermal-divider {
  border-top: 1px dashed #111827;
  margin: 8px 0;
}

.thermal-receipt h2 {
  margin: 0;
  text-align: center;
  font-size: 15px;
}

.thermal-number {
  margin: 3px 0 0;
  text-align: center;
  font-weight: 700;
}

.thermal-leg-title {
  margin: 0 0 6px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0;
}

.thermal-lines {
  margin: 0;
}

.thermal-lines div {
  display: grid;
  grid-template-columns: 24mm 1fr;
  gap: 5px;
  margin: 3px 0;
}

.thermal-lines dt {
  font-weight: 700;
}

.thermal-lines dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.thermal-total {
  margin-top: 9px;
  padding: 7px 0;
  border-top: 1px dashed #111827;
  border-bottom: 1px dashed #111827;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
}

.thermal-alert {
  margin: 7px 0;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
}

.thermal-receipt-footer {
  text-align: center;
}

.thermal-receipt-footer strong,
.thermal-receipt-footer span {
  display: block;
}

/* FOOTER - NÃO REMOVER */

.portal-footer {
  margin-top: 50px;
  padding: 32px 48px;
  background: #172033;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-footer strong,
.portal-footer span {
  display: block;
}

.portal-footer span {
  margin-top: 6px;
  color: #cbd5e1;
}

.portal-powered {
  display: flex;
  align-items: center;
  gap: 18px;
}

.portal-powered span {
  color: #cbd5e1;
  font-weight: 700;
}

.portal-powered img {
  height: 95px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* RESPONSIVO */

@media (min-width: 1440px) {
  .portal-main {
    width: min(1280px, calc(100% - 72px));
  }
}

@media (max-width: 1180px) {
  .portal-header {
    padding: 18px 28px;
    gap: 22px;
  }

  .portal-logo-card {
    width: 190px;
    height: 96px;
  }

  .portal-logo-card img {
    width: 184px;
  }

  .portal-brand {
    gap: 20px;
  }

  .portal-brand-text strong {
    font-size: 34px;
  }

  .portal-brand-text span {
    font-size: 17px;
  }

  .portal-nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .portal-nav a {
    font-size: 16px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-box h2 {
    font-size: 40px;
  }
}

@media (max-width: 1020px) {

  .hero,
  .section-grid,
  .blog-preview,
  .flight-grid,
  .enhanced-points,
  .parcel-page {
    grid-template-columns: 1fr;
  }

  .portal-header {
    min-height: auto;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .portal-logo-card {
    width: 160px;
    height: 80px;
  }

  .portal-logo-card img {
    width: 150px;
  }

  .portal-brand-text strong {
    font-size: 28px;
  }

  .portal-brand-text span {
    font-size: 15px;
  }

  .portal-nav {
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-start;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-box h2 {
    font-size: 34px;
  }

  .flight-search-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .route-bar {
    grid-template-columns: 1fr;
  }

  .swap-btn {
    margin: -12px 0;
  }

  .flight-footer {
    justify-content: stretch;
  }

  .flight-footer button {
    width: 100%;
  }

  .portal-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .payment-card-content {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .portal-main {
    width: min(100% - 16px, 1180px);
    margin: 18px auto;
  }

  .portal-header {
    padding: 16px;
  }

  .portal-brand {
    gap: 14px;
    width: 100%;
  }

  .portal-logo-card {
    width: 132px;
    height: 66px;
    flex: 0 0 auto;
  }

  .portal-logo-card img {
    width: 126px;
  }

  .portal-brand-text {
    min-width: 0;
  }

  .portal-brand-text strong {
    font-size: 25px;
    overflow-wrap: anywhere;
  }

  .portal-brand-text span {
    font-size: 13px;
    line-height: 1.25;
  }

  .portal-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .portal-nav a {
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: 14px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    gap: 20px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-box,
  .quick-buy,
  .about,
  .blog-preview,
  .info-card,
  .auth-card,
  .portal-card,
  .parcel-info-card {
    border-radius: 24px;
    padding: 24px;
  }

  .hero-box h2 {
    font-size: 30px;
  }

  .schedule-card {
    padding: 16px;
  }

  .schedule-card strong {
    font-size: 18px;
  }

  .schedule-card span {
    font-size: 16px;
  }

  .auth-card h1 {
    font-size: 32px;
  }

  .btn,
  button {
    min-height: 44px;
    padding: 12px 18px;
    font-size: 14px;
  }

  .flight-search {
    padding: 22px;
    border-radius: 24px;
  }

  .flight-search-top h1 {
    font-size: 30px;
  }

  .trip-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .trip-toggle button {
    padding: 11px 12px;
  }

  .route-field {
    padding: 18px;
  }

  .route-field strong,
  .form-box input,
  .form-box strong {
    font-size: 21px;
  }

  .enhanced-points .point-card {
    min-height: auto;
    padding: 16px 18px;
  }

  .point-card strong {
    font-size: 18px;
  }

  .passenger-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .passenger-row {
    align-items: flex-start;
    gap: 16px;
  }

  .passenger-row strong {
    font-size: 18px;
  }

  .counter-actions {
    gap: 14px;
  }

  .counter-actions button {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .horario-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }

  .horario-card h2 {
    font-size: 30px;
  }

  .horario-price {
    width: 100%;
    min-width: 0;
    justify-items: stretch;
  }

  .horario-price form {
    justify-items: stretch;
  }

  .horario-price form button {
    width: 100%;
  }

  .cancel-note {
    text-align: left;
  }

  .passageiro-grid {
    grid-template-columns: 1fr;
  }

  .portal-form-grid,
  .parcel-info-grid {
    grid-template-columns: 1fr;
  }

  .portal-section-head h1,
  .parcel-info-card h1 {
    font-size: 32px;
  }

  .portal-actions,
  .portal-actions .btn,
  .portal-actions button {
    width: 100%;
  }

  .field-full {
    grid-column: auto;
  }

  .passageiro-box {
    padding: 20px;
  }

  .payment-card-content {
    flex-direction: column;
    gap: 16px;
  }

  .payment-values {
    width: 100%;
    text-align: left;
    min-width: 0;
  }

  .actions-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .actions-footer .btn,
  .actions-footer button {
    width: 100%;
  }

  .thermal-actions {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 22px;
    padding: 18px;
  }

  .thermal-actions h1 {
    font-size: 28px;
  }

  .thermal-actions-buttons,
  .thermal-actions-buttons .btn,
  .thermal-actions-buttons button {
    width: 100%;
  }

  .thermal-receipt {
    width: min(80mm, 100%);
  }

  .portal-footer {
    padding: 28px 18px;
  }

  .portal-powered {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-powered img {
    height: 76px;
  }
}

@media (max-width: 420px) {
  .portal-main {
    width: calc(100% - 10px);
  }

  .portal-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-logo-card {
    width: 122px;
    height: 58px;
  }

  .portal-logo-card img {
    width: 116px;
  }

  .portal-brand-text strong {
    font-size: 24px;
  }

  .portal-nav {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 30px;
  }

  .flight-search,
  .hero-box,
  .quick-buy,
  .about,
  .blog-preview,
  .info-card,
  .auth-card,
  .portal-card,
  .parcel-info-card {
    padding: 18px;
    border-radius: 20px;
  }

  .flight-search-top h1,
  .auth-card h1,
  .thermal-actions h1 {
    font-size: 26px;
  }

  .trip-toggle {
    grid-template-columns: 1fr;
  }

  .passenger-row {
    flex-direction: column;
  }

  .counter-actions {
    width: 100%;
    justify-content: space-between;
  }

  .thermal-lines div {
    grid-template-columns: 21mm 1fr;
  }
}

@page {
  size: 80mm auto;
  margin: 3mm;
}

@media print {
  html,
  body {
    width: 80mm;
    min-height: auto;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  body {
    display: block;
  }

  .portal-header,
  .portal-footer,
  .thermal-actions,
  .portal-messages {
    display: none !important;
  }

  .portal-main {
    width: 80mm !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .thermal-screen {
    display: block !important;
  }

  .thermal-receipt {
    width: 74mm !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #000000 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .thermal-receipt-header img {
    width: 38mm !important;
    filter: grayscale(100%) contrast(130%);
  }

  .thermal-lines div {
    grid-template-columns: 22mm 1fr;
  }
}
