@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@600;700;800;900&display=swap");
:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #15172b;
  background: #f2f4f9;
  --navy: #070c40;
  --navy2: #070c40;
  --yellow: #f0f000;
  --line: #e2e6ef;
  --muted: #666d80;
  --green: #168a4b;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
select {
  font: inherit;
}
.topbar {
  height: 78px;
  padding: 0 max(22px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--yellow);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.brand div {
  display: grid;
  line-height: 1.12;
}
.brand strong {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.brand span {
  color: var(--yellow);
  font-weight: 800;
  font-size: 0.88rem;
}
.secure-pill {
  background: #ffffff18;
  padding: 9px 14px;
  border-radius: 99px;
  font-size: 0.84rem;
}
main {
  padding-bottom: 64px;
}
.hero {
  max-width: 1180px;
  min-height: 320px;
  margin: 32px auto;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #070c40, #070c40 72%, #070c40);
  color: #fff;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  box-shadow: 0 18px 55px #070c4038;
  position: relative;
}
.hero:after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -70px;
  top: -120px;
  border-radius: 50%;
  background: var(--yellow);
}
.hero-copy {
  padding: 54px 58px;
  position: relative;
  z-index: 1;
}
.eyebrow {
  color: var(--yellow);
  font-weight: 950;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  line-height: 1.02;
  max-width: 760px;
  margin: 12px 0 18px;
  letter-spacing: -0.045em;
}
.hero p {
  max-width: 640px;
  font-size: 1.05rem;
  color: #dfe3ff;
  line-height: 1.65;
}
.hero-logo {
  width: 270px;
  max-height: 245px;
  object-fit: contain;
  justify-self: center;
  border-radius: 20px;
  position: relative;
  z-index: 1;
}
.hero-steps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-steps span {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #ffffff16;
  border: 1px solid #ffffff22;
  padding: 8px 12px;
  border-radius: 99px;
  font-size: 0.84rem;
}
.hero-steps b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
}
.content-card {
  max-width: 1180px;
  margin: 26px auto;
  padding: 34px;
  background: #fff;
  border: 1px solid #e4e8f1;
  border-radius: 24px;
  box-shadow: 0 12px 35px #14162912;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 26px;
}
.section-heading h2 {
  margin: 8px 0 4px;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}
.section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
}
.step-tag {
  display: inline-flex;
  color: var(--navy);
  background: #fff5a3;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  padding: 6px 10px;
  border-radius: 99px;
}
.required-note {
  color: var(--muted);
  font-size: 0.8rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-grid label,
.vehicle-selector {
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 780;
}
.form-grid input,
.form-grid select {
  width: 100%;
  border: 1px solid #cfd5e2;
  border-radius: 12px;
  min-height: 48px;
  padding: 0 14px;
  background: #fff;
  outline: none;
  transition: 0.2s;
}
.form-grid input:focus,
.form-grid select:focus {
  border-color: var(--navy2);
  box-shadow: 0 0 0 4px #070c4016;
}
.span-2 {
  grid-column: span 2;
}
.vehicle-selector {
  border: 0;
  padding: 0;
  margin: 2px 0 0;
}
.vehicle-selector legend {
  margin-bottom: 10px;
}
.vehicle-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.vehicle-option {
  border: 1px solid #d7dce8;
  border-radius: 14px;
  background: #fafbfe;
  color: #25283a;
  min-height: 88px;
  padding: 12px;
  display: grid;
  place-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 760;
  transition: 0.2s;
}
.vehicle-option span {
  font-size: 1.55rem;
}
.vehicle-option:hover {
  transform: translateY(-2px);
}
.vehicle-option.active {
  background: var(--navy);
  color: var(--yellow);
  border-color: var(--navy);
  box-shadow: 0 8px 22px #070c4033;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
}
.primary-button,
.secondary-button,
.yes-button,
.no-button,
.whatsapp-button,
.copy-button {
  border: 0;
  border-radius: 12px;
  min-height: 48px;
  padding: 0 20px;
  font-weight: 880;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.primary-button {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 8px 20px #f0f0003d;
}
.primary-button:hover {
  transform: translateY(-1px);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none !important;
}
.secondary-button {
  background: var(--navy);
  color: var(--yellow);
  font-weight: 500;
}
.error-box {
  margin-top: 20px;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff1f0;
  color: #9b2222;
  border: 1px solid #ffc9c4;
}
.plan-cards {
  display: grid;
  grid-template-columns: repeat(var(--plan-count), minmax(0, 1fr));
  gap: 16px;
}
.plan-card {
  border: 2px solid #e1e5ee;
  border-radius: 18px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  background: #fff;
  transition: 0.2s;
}
.plan-card.selected {
  border-color: var(--navy);
  box-shadow: 0 12px 26px #070c401f;
}
.recommended {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.64rem;
  font-weight: 950;
  padding: 7px 12px;
  border-bottom-left-radius: 12px;
  letter-spacing: 0.08em;
}
.plan-card-head h3 {
  margin: 4px 0 6px;
  font-size: 1.35rem;
}
.plan-card-head p {
  min-height: 42px;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.4;
}
.plan-card-head strong {
  display: block;
  color: var(--navy);
  font-size: 2rem;
  line-height: 1;
}
.plan-card-head > span {
  color: var(--muted);
  font-size: 0.8rem;
}
.choose-plan {
  margin-top: 20px;
  background: #f3f5fb;
  border-radius: 10px;
  padding: 12px;
  display: flex !important;
  grid-auto-flow: column;
  justify-content: flex-start;
  gap: 9px;
  align-items: center;
  font-weight: 800;
  cursor: pointer;
}
.choose-plan input {
  accent-color: var(--navy);
  width: 17px;
  height: 17px;
}
.comparison-table {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.comparison-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.5fr) repeat(
      var(--plan-count),
      minmax(180px, 1fr)
    );
  border-top: 1px solid var(--line);
}
.comparison-row:first-child {
  border-top: 0;
}
.comparison-row > div {
  min-height: 62px;
  padding: 12px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.comparison-row > div:first-child {
  border-left: 0;
}
.comparison-header {
  background: var(--navy);
  color: #fff;
  font-weight: 850;
  text-align: center;
}
.coverage-name {
  font-weight: 760;
  background: #fafbfe;
}
.coverage-state {
  text-align: center;
  align-items: center;
  gap: 3px;
}
.coverage-state span {
  font-size: 1.15rem;
}
.coverage-state small {
  color: var(--muted);
  line-height: 1.25;
}
.coverage-state.optional {
  background: #fffdf2;
}
.coverage-state.not_included {
  background: #fbfbfd;
}
.selection-summary {
  margin-top: 22px;
  padding: 18px;
  border-radius: 16px;
  background: #f6f7fb;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  align-items: center;
}
.selection-summary div {
  display: grid;
  gap: 3px;
}
.selection-summary span {
  color: var(--muted);
  font-size: 0.8rem;
}
.selection-summary strong {
  color: var(--navy);
  font-size: 1.1rem;
}
.proposal-card {
  text-align: center;
}
.proposal-success {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  background: #dff5e7;
  color: var(--green);
  font-size: 2rem;
  font-weight: 900;
}
.proposal-card h2 {
  font-size: 1.8rem;
  margin: 10px 0 8px;
}
.proposal-card > p {
  color: var(--muted);
  font-size: 1.05rem;
}
.quote-details {
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
}
.quote-details div {
  padding: 16px;
  display: grid;
  gap: 4px;
  border-left: 1px solid var(--line);
}
.quote-details div:first-child {
  border-left: 0;
}
.quote-details span {
  color: var(--muted);
  font-size: 0.75rem;
}
.quote-details strong {
  font-size: 0.93rem;
}
.proposal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.accept-box {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 8px 8px 16px;
  border-radius: 14px;
  background: #f5f6fa;
}
.accept-box span {
  font-weight: 800;
  margin-right: 5px;
}
.yes-button {
  background: #dff5e7;
  color: #126a3d;
  min-height: 40px;
}
.no-button {
  background: #ffe6e4;
  color: #9b2222;
  min-height: 40px;
}
.inspection-box {
  margin-top: 26px;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8f9ff, #fffdea);
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border: 1px solid #e3e7f0;
}
.inspection-box h3 {
  margin: 8px 0 6px;
}
.inspection-box p {
  color: var(--muted);
  margin: 0;
}
.inspection-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.whatsapp-button {
  background: #1fa855;
  color: #fff;
}
.copy-button {
  background: #fff;
  border: 1px solid #d4d9e6;
  color: #2b2e40;
}
.declined-box {
  margin-top: 22px;
  padding: 16px;
  border-radius: 12px;
  background: #fff2f1;
  color: #922;
}
.new-quote {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 850;
  margin-top: 26px;
  cursor: pointer;
}
footer {
  min-height: 86px;
  background: #070c40;
  color: #cbd0ed;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  padding: 20px;
}
footer img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .topbar {
    padding: 0 18px;
  }
  .hero,
  .content-card {
    margin-left: 16px;
    margin-right: 16px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-logo {
    display: none;
  }
  .hero-copy {
    padding: 42px 28px;
  }
  .vehicle-options {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-cards {
    grid-template-columns: 1fr;
  }
  .comparison-table {
    overflow-x: auto;
  }
  .comparison-row {
    min-width: calc(300px + var(--plan-count) * 220px);
  }
  .selection-summary {
    grid-template-columns: 1fr 1fr;
  }
  .selection-summary button {
    grid-column: span 2;
  }
  .quote-details {
    grid-template-columns: repeat(2, 1fr);
  }
  .inspection-box {
    flex-direction: column;
    align-items: stretch;
  }
  .inspection-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 620px) {
  .secure-pill {
    display: none;
  }
  .hero h1 {
    font-size: 2.35rem;
  }
  .content-card {
    padding: 22px 18px;
    border-radius: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: span 1;
  }
  .vehicle-options {
    grid-template-columns: 1fr;
  }
  .form-actions .primary-button {
    width: 100%;
  }
  .selection-summary {
    grid-template-columns: 1fr;
  }
  .selection-summary button {
    grid-column: span 1;
  }
  .quote-details {
    grid-template-columns: 1fr;
  }
  .quote-details div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .quote-details div:first-child {
    border-top: 0;
  }
  .accept-box {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .proposal-actions > a {
    width: 100%;
  }
}

/* Seleção explícita de benefícios opcionais */
.optional-section {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid #e1e5ee;
  border-radius: 18px;
  background: #fbfcff;
}
.optional-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}
.optional-heading h3 {
  margin: 8px 0 0;
  font-size: 1.25rem;
}
.optional-heading p {
  max-width: 520px;
  margin: 2px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.88rem;
}
.optional-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.optional-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  border: 2px solid #e2e6ef;
  border-radius: 14px;
  background: #fff;
  padding: 15px;
  cursor: pointer;
  transition: 0.2s;
}
.optional-card:hover {
  border-color: #aeb6d2;
  transform: translateY(-1px);
}
.optional-card.selected {
  border-color: var(--navy);
  background: #f7f8ff;
  box-shadow: 0 8px 22px #070c4015;
}
.optional-card.unavailable {
  opacity: 0.58;
  cursor: not-allowed;
}
.optional-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.optional-check {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #eef0f7;
  color: var(--navy);
  font-weight: 950;
}
.optional-card.selected .optional-check {
  background: var(--navy);
  color: #fff;
}
.optional-content {
  display: grid;
  gap: 4px;
}
.optional-content strong {
  font-size: 0.93rem;
}
.optional-content small {
  color: var(--muted);
  line-height: 1.35;
}
.optional-price {
  display: grid;
  text-align: right;
  color: var(--navy);
  font-weight: 900;
  white-space: nowrap;
}
.optional-price small {
  font-weight: 650;
  color: var(--muted);
  font-size: 0.7rem;
}
.selection-summary {
  grid-template-columns: 1.3fr repeat(3, minmax(120px, 0.8fr)) auto;
}
.selection-total {
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff3a7;
}
.selection-total strong {
  font-size: 1.3rem !important;
}
.quote-details {
  grid-template-columns: repeat(4, 1fr);
}
.quote-optionals {
  margin: -8px 0 24px;
  text-align: left;
}
.quote-optionals h3 {
  font-size: 1rem;
  margin: 0 0 10px;
}
.quote-optional-list {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.quote-optional-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 13px 15px;
  border-top: 1px solid var(--line);
}
.quote-optional-list > div:first-child {
  border-top: 0;
}
.quote-optional-list span {
  display: grid;
  gap: 3px;
}
.quote-optional-list small {
  color: var(--muted);
}
.quote-optional-list b {
  color: var(--navy);
  white-space: nowrap;
}
.no-optionals {
  padding: 13px 15px;
  border-radius: 12px;
  background: #f5f6fa;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .optional-list {
    grid-template-columns: 1fr;
  }
  .optional-heading {
    flex-direction: column;
    gap: 8px;
  }
  .selection-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .selection-summary button {
    grid-column: span 2;
  }
  .quote-details {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .optional-card {
    grid-template-columns: auto 1fr;
  }
  .optional-price {
    grid-column: 2;
    text-align: left;
  }
  .selection-summary {
    grid-template-columns: 1fr;
  }
  .selection-summary button {
    grid-column: span 1;
  }
  .quote-optional-list > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .quote-details {
    grid-template-columns: 1fr;
  }
}

/* Vistoria digital, câmera e compartilhamento */
body.modal-open {
  overflow: hidden;
}
.inspection-box.inspection-pending {
  border-left: 5px solid var(--yellow);
}
.inspection-box.inspection-complete {
  border-left: 5px solid var(--green);
  background: linear-gradient(135deg, #f1fbf5, #fffdea);
}
.inspection-box strong {
  color: var(--navy);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #050829cc;
  backdrop-filter: blur(7px);
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
}
.inspection-modal {
  position: relative;
  width: min(900px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 90px #0008;
  padding: 34px;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f0f2f8;
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.inspection-modal h2 {
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  margin: 11px 44px 8px 0;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.inspection-modal > section > p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 22px;
}
.guideline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.guideline-grid article {
  display: grid;
  gap: 7px;
  padding: 17px;
  border-radius: 15px;
  background: #f7f8fc;
  border: 1px solid var(--line);
}
.guideline-grid b {
  color: var(--navy);
}
.guideline-grid span {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
.capture-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.capture-progress > span {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--navy);
  white-space: nowrap;
}
.capture-progress > div {
  height: 8px;
  border-radius: 99px;
  background: #e8eaf2;
  flex: 1;
  overflow: hidden;
}
.capture-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--yellow);
  border-radius: inherit;
  transition: width 0.25s;
}
.capture-preview {
  min-height: 310px;
  border: 2px dashed #ccd2e2;
  border-radius: 18px;
  background: #f8f9fc;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.capture-preview img {
  width: 100%;
  height: min(52vh, 430px);
  object-fit: contain;
  background: #101229;
}
.camera-placeholder {
  text-align: center;
  color: var(--muted);
  padding: 28px;
}
.camera-placeholder span {
  font-size: 3rem;
}
.camera-placeholder p {
  margin: 9px 0 0;
}
.preview-approved {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: #dff5e7;
  color: #126a3d;
  border-radius: 99px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 900;
}
.camera-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.capture-actions {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.capture-actions button {
  width: 100%;
}
.inspection-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.review-photo {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 135px 1fr;
  align-items: center;
}
.review-photo:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 20px #070c4014;
}
.review-photo img {
  width: 135px;
  height: 105px;
  object-fit: cover;
  background: #101229;
}
.review-photo span {
  display: grid;
  gap: 5px;
  padding: 12px;
}
.review-photo b {
  font-size: 0.86rem;
  color: var(--navy);
}
.review-photo small {
  color: var(--muted);
}
.upload-status {
  margin-top: 16px;
  padding: 15px;
  border-radius: 14px;
  background: #f5f7fc;
  display: flex;
  align-items: center;
  gap: 13px;
}
.upload-status div {
  display: grid;
  gap: 4px;
}
.upload-status small {
  color: var(--muted);
  line-height: 1.35;
}
.upload-spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid #dce0ec;
  border-top-color: var(--navy);
  animation: spin 0.8s linear infinite;
  flex: none;
}
.upload-failed {
  color: #922;
}
.upload-failed small {
  color: #922;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 700px) {
  .inspection-modal {
    padding: 26px 18px;
    border-radius: 18px;
    max-height: calc(100vh - 16px);
  }
  .modal-backdrop {
    padding: 8px;
  }
  .guideline-grid {
    grid-template-columns: 1fr;
  }
  .capture-preview {
    min-height: 240px;
  }
  .capture-actions {
    grid-template-columns: 1fr 1fr;
  }
  .capture-actions #capture-back {
    grid-column: span 2;
  }
  .inspection-review-grid {
    grid-template-columns: 1fr;
  }
  .review-photo {
    grid-template-columns: 105px 1fr;
  }
  .review-photo img {
    width: 105px;
    height: 90px;
  }
  .review-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .inspection-actions > * {
    width: 100%;
  }
  .inspection-box {
    padding: 20px;
  }
  .proposal-actions button {
    width: 100%;
  }
}

.mandatory-fee-note {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  line-height: 1.3;
  color: #555b72;
}

/* Seleção Sim/Não para veículo 0 km */
.zero-km-selector {
  border: 0;
  padding: 0;
  margin: 2px 0 0;
  display: grid;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 780;
}
.zero-km-selector legend {
  margin-bottom: 0;
}
.binary-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: 10px;
}
.binary-option {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: center;
  min-height: 48px;
  border: 1px solid #cfd5e2;
  border-radius: 12px;
  background: #fafbfe;
  cursor: pointer;
  transition: 0.2s;
  color: #25283a;
}
.binary-option:hover {
  border-color: #8e97b8;
  transform: translateY(-1px);
}
.binary-option.selected {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--yellow) !important;
  box-shadow: 0 7px 18px #070c4026;
}
.binary-option input {
  position: absolute !important;
  opacity: 0;
  pointer-events: none;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
}
.binary-option span {
  font-weight: 850;
}
.binary-option:focus-within {
  box-shadow: 0 0 0 4px #070c4016;
}
.binary-option.selected:focus-within {
  box-shadow:
    0 0 0 4px #070c4028,
    0 7px 18px #070c4026;
}
@media (max-width: 620px) {
  .binary-options {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
}

/* Modo público de autoatendimento */
body.self-service-mode .topbar {
  background: #070c40;
}
body.self-service-mode .content-card:first-of-type {
  border-top: 4px solid var(--yellow);
}
body.self-service-mode #customer-cpf-field {
  display: grid !important;
}
.self-service-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}
.inspection-actions .direct-inspection-link {
  background: #fff;
  border: 1px solid #cfd5e2;
  color: var(--navy);
}
@media (max-width: 620px) {
  body.self-service-mode #back-link {
    display: inline-flex;
  }
  .topbar {
    height: auto;
    min-height: 78px;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px;
  }
  .brand div {
    max-width: 180px;
  }
}

/* Campo de placa condicionado ao veículo 0 km. */
.field-help {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.35;
}
#plate:disabled {
  background: #edf0f5;
  color: #7b8295;
  cursor: not-allowed;
  border-color: #d8dce6;
}

/* Identidade visual oficial NH - Manual da Marca 2026 */
:root {
  font-family:
    "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, Inter,
    sans-serif;
  color: #070c40;
  background: #f7f8fb;
  --navy: #070c40;
  --navy2: #070c40;
  --yellow: #f0f000;
  --line: #e0e4ed;
  --muted: #596078;
  --font-brand:
    "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, Inter,
    sans-serif;
  --font-slogan: "League Spartan", "Helvetica Neue", Arial, sans-serif;
}
body,
button,
input,
select,
textarea {
  font-family: var(--font-brand);
}
h1,
h2,
h3,
h4,
h5,
h6,
.brand strong {
  font-family: var(--font-brand);
}
.eyebrow,
.step-tag,
.brand span,
.recommended {
  font-family: var(--font-slogan);
  letter-spacing: 0.08em;
}
.topbar,
body.self-service-mode .topbar {
  background: var(--navy);
  border-bottom-color: var(--yellow);
}
.brand img,
.hero-logo,
footer img {
  filter: none !important;
  transform: none !important;
  object-fit: contain;
}
.hero {
  background: var(--navy);
  border: 1px solid rgba(240, 240, 0, 0.42);
  box-shadow: 0 18px 48px rgba(7, 12, 64, 0.16);
}
.hero:after {
  background: var(--yellow);
  opacity: 0.1;
}
.hero p {
  color: rgba(255, 255, 255, 0.86);
}
.primary-button,
.yes-button,
.recommended {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 9px 22px rgba(7, 12, 64, 0.15);
}
.secondary-button,
.vehicle-option.active,
.binary-option.selected {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--yellow);
}
.primary-button:hover {
  background: var(--yellow);
  box-shadow: 0 12px 25px rgba(7, 12, 64, 0.2);
}
.content-card,
.plan-card,
.optional-card,
.inspection-modal {
  border-color: rgba(7, 12, 64, 0.14);
  box-shadow: 0 10px 32px rgba(7, 12, 64, 0.07);
}
.content-card:first-of-type {
  border-top: 4px solid var(--yellow);
}
.step-tag {
  background: rgba(240, 240, 0, 0.24);
  color: var(--navy);
}
.form-grid input:focus,
.form-grid select:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(240, 240, 0, 0.24);
}
.plan-card.selected,
.optional-card.selected {
  border-color: var(--yellow);
  box-shadow: 0 12px 28px rgba(7, 12, 64, 0.12);
}
.comparison-header,
footer {
  background: var(--navy);
}
.selection-total {
  background: rgba(240, 240, 0, 0.24);
}
.capture-progress i {
  background: var(--yellow);
}
.modal-backdrop {
  background: rgba(7, 12, 64, 0.86);
}
.inspection-guide-grid figure {
  background: var(--navy);
  border-color: rgba(240, 240, 0, 0.65);
}
.binary-option.selected {
  box-shadow:
    inset 0 -3px 0 var(--yellow),
    0 8px 20px rgba(7, 12, 64, 0.18);
}
.whatsapp-button {
  background: #16834d;
}

.national-scope-badge {
  display: inline-flex !important;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef0ff;
  color: #070c40 !important;
  font-size: 0.76rem !important;
  font-weight: 850;
}

/* Descontos comerciais — NH */
.discount-section {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(7, 12, 64, 0.14);
  border-radius: 18px;
  background: #fff;
}
.discount-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.discount-heading h3 {
  margin: 5px 0 0;
  color: #070c40;
}
.discount-heading p {
  margin: 0;
  max-width: 650px;
  color: #62677b;
  font-size: 0.92rem;
}
.discount-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.discount-button,
.discount-clear {
  min-width: 82px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid #070c40;
  background: #fff;
  color: #070c40;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.discount-button:hover,
.discount-button.active {
  background: #f0f000;
  border-color: #f0f000;
  color: #070c40;
}
.discount-clear {
  font-weight: 500;
}
.discount-condition {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 12px;
  background: rgba(240, 240, 0, 0.16);
  color: #070c40;
  line-height: 1.45;
}
.discount-condition input {
  margin-top: 3px;
  flex: 0 0 auto;
}
@media (max-width: 760px) {
  .discount-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .discount-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .discount-button,
  .discount-clear {
    width: 100%;
  }
}
.discount-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f2f3f7;
  border-color: #c6cad6;
  color: #777d91;
}
.discount-button:disabled:hover {
  background: #f2f3f7;
  border-color: #c6cad6;
  color: #777d91;
}

/* Refinos visuais — botões da cotação */
.vehicle-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.vehicle-option {
  min-height: 92px;
  height: 100%;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: balance;
}
.vehicle-option span {
  display: none;
}
.binary-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: 12px;
  align-items: stretch;
}
.binary-option {
  min-height: 48px;
  padding: 0 14px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center;
  line-height: 1.15;
}
.binary-option span,
.vehicle-option {
  font-weight: 700;
}
@media (max-width: 1024px) {
  .vehicle-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .vehicle-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vehicle-option {
    min-height: 86px;
    font-size: 0.98rem;
  }
}
@media (max-width: 520px) {
  .vehicle-options {
    grid-template-columns: 1fr;
  }
  .binary-options {
    grid-template-columns: 1fr 1fr;
  }
}

/* Ajuste final — botão confirmar plano */
.selection-summary #confirm-plan {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 12px 20px;
  justify-self: stretch;
  align-self: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  text-align: center;
  line-height: 1.2;
}

@media (min-width: 901px) {
  .selection-summary #confirm-plan {
    grid-column: 2 / -1;
  }
}

@media (max-width: 900px) {
  .selection-summary #confirm-plan {
    grid-column: 1 / -1;
  }
}

/* V31 — observação e tabela promocional de motocicletas */
.form-grid textarea {
  width: 100%;
  min-height: 110px;
  padding: 13px 14px;
  border: 1px solid #cfd5e2;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  outline: none;
  resize: vertical;
  line-height: 1.45;
}
.form-grid textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(240, 240, 0, 0.24);
}
.plan-card[data-code="MOTO_PROMO_2026"] {
  border-color: rgba(240, 240, 0, 0.85);
  background: linear-gradient(180deg, #fffef2, #fff);
}
.plan-card[data-code="MOTO_PROMO_2026"] .recommended {
  display: inline-flex;
}
@media (max-width: 620px) {
  .form-grid textarea {
    font-size: 16px;
    min-height: 120px;
  }
}

/* Vencimento das mensalidades — V32 */
.billing-due-field select {
  min-height: 52px;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
}
.billing-due-field .field-help {
  max-width: 850px;
}
@media (max-width: 620px) {
  .billing-due-field select {
    min-height: 54px;
    font-size: 16px;
  }
}

/* Tabela Promocional - Motocicletas: seleção explícita */
.promo-category-button {
  border-color: rgba(240, 240, 0, 0.8);
  grid-column: span 2;
}
.promo-motorcycle-selector {
  border: 1px solid rgba(7, 12, 64, 0.14);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(180deg, #fffef1, #fff);
}
.promo-motorcycle-selector legend {
  padding: 0 6px;
  color: var(--navy);
  font-weight: 800;
}
.promo-motorcycle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.promo-motorcycle-option {
  min-width: 0;
  min-height: 92px;
  padding: 14px 12px;
  border: 1px solid #cfd5e2;
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  line-height: 1.2;
}
.promo-motorcycle-option strong {
  font-size: 0.95rem;
  font-weight: 700;
}
.promo-motorcycle-option span {
  font-size: 1.08rem;
  font-weight: 800;
}
.promo-motorcycle-option:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
}
.promo-motorcycle-option.active {
  background: var(--navy);
  color: var(--yellow);
  border-color: var(--navy);
  box-shadow:
    inset 0 -3px 0 var(--yellow),
    0 8px 20px rgba(7, 12, 64, 0.16);
}
@media (max-width: 900px) {
  .promo-motorcycle-grid {
    grid-template-columns: 1fr;
  }
  .promo-motorcycle-option {
    min-height: 76px;
  }
}

@media (max-width: 760px) {
  .promo-category-button {
    grid-column: 1 / -1 !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 78px;
    padding: 12px 16px;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.2;
    text-align: center;
  }
}

/* Ajuste final da Tabela Promocional de Motocicletas */
.promo-motorcycle-selector {
  padding: 14px;
}
.promo-motorcycle-selector legend {
  font-size: 0.92rem;
  line-height: 1.2;
}
.promo-motorcycle-option {
  min-height: 76px;
  padding: 11px 10px;
  gap: 5px;
}
.promo-motorcycle-option strong {
  font-size: 0.86rem;
  line-height: 1.18;
}
.promo-motorcycle-option span {
  font-size: 1rem;
}
/* Nome e CPF: mesmo alinhamento, sem legendas externas */
.customer-identity-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.customer-identity-row > input,
.customer-identity-field input {
  width: 100%;
  border: 1px solid #cfd5e2;
  border-radius: 12px;
  min-height: 48px;
  padding: 0 14px;
  background: #fff;
  outline: none;
}
.customer-identity-row > input:focus,
.customer-identity-field input:focus {
  border-color: var(--navy2);
  box-shadow: 0 0 0 4px #070c4016;
}
@media (max-width: 620px) {
  .customer-identity-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


.comparison-share-actions {
  display:grid;
  grid-template-columns:minmax(320px, 560px) minmax(300px, 420px);
  align-items:stretch;
  gap:18px;
  margin-top:20px;
  padding:18px 20px;
  border:1px solid rgba(17, 24, 99, 0.12);
  border-radius:24px;
  background:linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(246,247,252,0.96) 100%);
  box-shadow:0 10px 26px rgba(17, 24, 99, 0.08);
}
.consultant-whatsapp-share-field {
  display:grid;
  gap:8px;
  min-width:0;
  align-content:start;
}
.consultant-whatsapp-share-field > span {
  font-weight:800;
  color:var(--navy);
  font-size:1rem;
}
.consultant-whatsapp-share-field input {
  width:100%;
  min-height:54px;
}
.consultant-whatsapp-share-field small {
  color:var(--muted);
  line-height:1.45;
  max-width:58ch;
}
.comparison-share-actions .secondary-button {
  width:100%;
  min-width:0;
  min-height:56px;
  align-self:end;
  justify-self:end;
  white-space:normal;
  text-align:center;
}
@media (max-width: 960px) {
  .comparison-share-actions {
    grid-template-columns:1fr;
    padding:16px;
  }
  .comparison-share-actions .secondary-button {
    justify-self:stretch;
  }
}
@media (max-width: 800px) {
  .comparison-share-actions {
    gap:14px;
    margin-top:16px;
  }
}

.vehicle-history-selector {
  border:0;
  padding:0;
  margin:2px 0 0;
  display:grid;
  gap:10px;
  font-size:.88rem;
  font-weight:780;
}
.vehicle-history-selector legend { margin-bottom:0; color:#070c40; }
.vehicle-history-selector legend small { font-weight:600; color:#6a7086; }
.vehicle-history-selector .field-help { max-width:760px; line-height:1.45; }

footer {
  flex-wrap: wrap;
}
footer .footer-developer {
  width: 100%;
  text-align: center;
}
footer .footer-developer a {
  color: #f0f000;
  font-weight: 900;
  text-decoration: none;
}
footer .footer-developer a:hover,
footer .footer-developer a:focus-visible {
  text-decoration: underline;
}

/* V50 — planos dinâmicos no mobile
   Garante que qualquer plano criado pelo Admin seja exibido no celular,
   independentemente da quantidade de planos retornada pela API. */
@media (max-width: 900px) {
  #plans-section,
  #plan-cards,
  .plan-cards {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #plan-cards.plan-cards {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
  }

  #plan-cards > .plan-card {
    display: block !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
  }
}

@media (max-width: 520px) {
  #plan-cards.plan-cards {
    gap: 14px !important;
  }

  #plan-cards > .plan-card {
    padding: 18px 16px !important;
    border-radius: 16px !important;
  }

  #plan-cards .plan-card-head h3 {
    font-size: 1.2rem !important;
    overflow-wrap: anywhere;
  }

  #plan-cards .plan-card-head p {
    min-height: 0 !important;
  }
}
