:root {
  --brand: #821518;
  --brand-dark: #5f0f12;
  --brand-soft: rgba(130, 21, 24, 0.08);
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --surface: #ffffff;
  --surface-muted: #f7f7f8;
  --border: #e4e4e7;
  --shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --focus-ring: 0 0 0 3px rgba(130, 21, 24, 0.25);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1080px;
  --touch-min: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: linear-gradient(180deg, #fafafa 0%, #f2f2f4 100%);
  min-height: 100vh;
}

[x-cloak] {
  display: none !important;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
  outline: none;
  box-shadow: var(--focus-ring);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background: var(--brand);
  color: #fff;
  padding: 1.25rem 1rem 1.5rem;
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.header__logo {
  display: block;
  max-width: 180px;
  width: 100%;
  height: auto;
}

.header__tagline {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.92;
}

.main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

.hero {
  margin-bottom: 1.25rem;
}

.hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.layout {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.card__title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
}

.form {
  display: grid;
  gap: 1rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form__group--grow {
  flex: 1;
}

.form__row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__label {
  font-weight: 600;
  font-size: 0.9375rem;
}

.form__input {
  width: 100%;
  min-height: var(--touch-min);
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235c5c5c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.25rem;
}

.form__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.form__price-tag {
  margin: 0;
  align-self: flex-start;
  padding: 0.375rem 0.625rem;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.summary {
  display: grid;
  gap: 1rem;
}

.summary__list {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.summary__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border);
}

.summary__item dt {
  margin: 0;
  color: var(--text-muted);
  font-weight: 500;
}

.summary__item dd {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}

.summary__item--fee dt,
.summary__item--fee dd {
  color: var(--text);
}

.summary__label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.info-tooltip {
  position: relative;
  display: inline-flex;
}

.info-tooltip__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.info-tooltip__trigger:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.info-tooltip__trigger:focus-visible {
  outline: none;
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: var(--focus-ring);
}

.info-tooltip__content {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.5rem);
  left: 0;
  width: min(18.5rem, calc(100vw - 2rem));
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text);
  text-align: left;
}

.info-tooltip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.375rem;
}

.info-tooltip__subnote {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.info-tooltip__disclaimer {
  margin: 0.625rem 0 0;
  padding-top: 0.625rem;
  border-top: 1px dashed var(--border);
  font-weight: 600;
  color: var(--brand-dark);
  font-size: 0.75rem;
}

@media (max-width: 767px) {
  .card--summary,
  .summary,
  .summary__list {
    overflow: visible;
  }

  .summary__item--fee {
    position: relative;
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 0;
  }

  .summary__item--fee .info-tooltip {
    position: static;
  }

  .summary__item--fee .info-tooltip__content {
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 0.5rem;
  }
}

.summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.summary__total-label {
  font-weight: 600;
}

.summary__total-value {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  color: var(--brand);
}

.summary__note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.payment-info {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.payment-info__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.payment-info__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.payment-info__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.payment-info__icon {
  font-size: 1.125rem;
}

.payment-info__hint {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.payment-info__fine-print {
  margin: 0.625rem 0 0;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 1.25rem;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(130, 21, 24, 0.25);
}

.btn--primary:hover {
  background: var(--brand-dark);
}

.btn--primary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn--primary[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

@keyframes btn-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(130, 21, 24, 0.25);
  }

  50% {
    transform: scale(1.012);
    box-shadow: 0 10px 24px rgba(130, 21, 24, 0.3);
  }
}

.btn--primary[aria-disabled='false'] {
  animation: btn-pulse 2.8s ease-in-out infinite;
}

.btn--primary[aria-disabled='false']:hover,
.btn--primary[aria-disabled='false']:focus-visible,
.btn--primary[aria-disabled='false']:active {
  animation: none;
}

.cta {
  margin-top: 1.25rem;
}

.cta__stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  min-height: 14rem;
  padding-top: 7rem;
}

.cta__mascot {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 0;
  width: auto;
  height: min(15rem, 44vw);
  max-width: 100%;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
  user-select: none;
}

.cta__btn {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 0;
}

.cta-hint {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.footer {
  padding: 1.25rem 1rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer p {
  margin: 0;
}

@media (min-width: 768px) {
  .header {
    padding: 1.5rem 1.5rem 1.75rem;
  }

  .header__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .main {
    padding: 2rem 1.5rem 2.5rem;
  }

  .layout {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: 1.25rem;
  }

  .card--summary {
    position: sticky;
    top: 1rem;
  }

  .form__row {
    flex-direction: row;
    align-items: flex-end;
  }

  .form__price-tag {
    align-self: center;
    margin-bottom: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.cnh-brasil{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

@media screen and (min-width: 768px) {
  .cnh-brasil{
    flex-direction: row;
  }
}

@media screen and (max-width: 768px) {
  .cnhDoBrasil{
    width: 90px;
    height: auto;
    object-fit: contain;
    object-position: center;
  }
}
.cnhDoBrasil{
  border-radius: 10px;
}