/* ==========================================================================
   Módulo Placa - AntiFraudeBrasil
   placa.css v1.0 — Estilos de todas as páginas do módulo /placa
   ========================================================================== */

/* ──────────────────────────────────
   RESET & BASE
   ────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1f2937;
  line-height: 1.6;
  background: #f5f7fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }

/* ──────────────────────────────────
   HERO SECTION
   ────────────────────────────────── */
.pv-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d6a9f 100%);
  padding: 100px 20px 90px;
  color: #fff;
  text-align: center;
  position: relative;
}

.pv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.08)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,128C672,128,768,160,864,165.3C960,171,1056,149,1152,128C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  pointer-events: none;
}

.pv-hero__container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.pv-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff !important;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.pv-hero__title {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
  color: #fff !important;
}

.pv-hero__subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 0;
  max-width: 600px;
  margin-inline: auto;
}

/* ──────────────────────────────────
   FORM SECTION
   ────────────────────────────────── */
.pv-form-section {
  margin-top: -50px;
  padding: 0 20px 60px;
  position: relative;
  z-index: 2;
}

.pv-form-card {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.14);
  padding: 44px 40px;
  animation: pvSlideUp .55s ease-out;
}

@keyframes pvSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pv-form-card__title {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 28px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pv-form-card__title i {
  color: #2d6a9f;
  font-size: 26px;
}

/* Form Groups */
.pv-form-group {
  margin-bottom: 20px;
}

.pv-form-label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  font-size: 14px;
}

.pv-form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  background: #fafafa;
}

.pv-form-input:focus {
  outline: none;
  border-color: #2d6a9f;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(45,106,159,0.1);
}

.pv-form-input.pv-placa-input {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.pv-form-error {
  color: #dc2626;
  font-size: 12px;
  margin-top: 5px;
}

/* Button */
.pv-btn-primary {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d6a9f 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 4px 18px rgba(45,106,159,0.35);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pv-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(45,106,159,0.45);
}

.pv-btn-primary:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pv-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #32BCAD 0%, #1db584 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 4px 18px rgba(50,188,173,0.35);
  text-decoration: none;
}

.pv-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(50,188,173,0.45);
  color: #fff;
}

.pv-form-trust {
  margin-top: 18px;
  padding: 12px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  font-size: 12px;
  color: #166534;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

/* ──────────────────────────────────
   LOADING MODAL
   ────────────────────────────────── */
.pv-loading-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.pv-loading-modal.is-active { display: flex; }

.pv-loading-modal__box {
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  animation: pvModalIn .3s ease;
}

@keyframes pvModalIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}

.pv-loading-modal__spinner {
  width: 60px;
  height: 60px;
  border: 5px solid #e5e7eb;
  border-top-color: #2d6a9f;
  border-radius: 50%;
  animation: pvSpin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes pvSpin {
  to { transform: rotate(360deg); }
}

.pv-loading-modal__title {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
}

.pv-loading-modal__text {
  font-size: 15px;
  color: #6b7280;
}

.pv-loading-modal__plate {
  color: #2d6a9f;
  font-weight: 700;
}

/* ──────────────────────────────────
   BADGES / SELOS
   ────────────────────────────────── */
.pv-badges {
  padding: 40px 20px;
  background: #fff;
}

.pv-badges__container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.pv-badges__item img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  opacity: .8;
  transition: opacity .3s, transform .3s;
}

.pv-badges__item img:hover { opacity: 1; transform: scale(1.1); }

/* ──────────────────────────────────
   INSTITUTIONAL
   ────────────────────────────────── */
.pv-institutional {
  padding: 60px 20px;
  background: #f9fafb;
}

.pv-institutional__container {
  max-width: 1100px;
  margin: 0 auto;
}

.pv-section-title {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 44px;
  color: #1f2937;
}

.pv-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.pv-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 22px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.pv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(45,106,159,0.14);
  border-color: #2d6a9f;
}

.pv-card__icon {
  font-size: 2rem;
  color: #2d6a9f;
  margin-bottom: 16px;
}

.pv-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1f2937;
}

.pv-card p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

/* ──────────────────────────────────
   PAGAMENTO PAGE
   ────────────────────────────────── */
.pv-pay-header {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d6a9f 100%);
  padding: 50px 20px 80px;
  color: #fff;
  text-align: center;
}

.pv-pay-header h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pv-pay-header p { font-size: 16px; opacity: .92; }

.pv-pay-container {
  max-width: 600px;
  margin: -50px auto 40px;
  padding: 0 20px 60px;
  position: relative;
  z-index: 2;
}

.pv-pay-card {
  background: #fff;
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}

.pv-pay-card__title {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pv-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
}

.pv-summary-row:last-child {
  border-bottom: none;
  padding-top: 14px;
  font-size: 19px;
  font-weight: 700;
  color: #16a34a;
}

.pv-summary-label { color: #6b7280; }
.pv-summary-value { font-weight: 600; color: #1f2937; }

/* Plate badge in summary */
.pv-plate-badge {
  display: inline-flex;
  align-items: center;
  background: #1e3a5f;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 4px 14px;
  border-radius: 6px;
  border: 2px solid #2d6a9f;
}

/* Status bar */
.pv-status-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 22px;
}

.pv-status-bar.is-success {
  background: #dcfce7;
  border-left-color: #16a34a;
}

.pv-status-bar__icon { font-size: 22px; }

.pv-status-bar__text {
  flex: 1;
  font-size: 13px;
  color: #92400e;
}

.pv-status-bar.is-success .pv-status-bar__text { color: #166534; }

/* QR box */
.pv-qr-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
  margin-bottom: 22px;
}

.pv-qr-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pv-qr-image {
  margin: 18px auto;
  padding: 14px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  display: inline-block;
}

.pv-pix-code {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  word-break: break-all;
  color: #374151;
  margin-top: 14px;
}

.pv-copy-btn {
  margin-top: 12px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d6a9f 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(45,106,159,0.3);
}

.pv-copy-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(45,106,159,0.4); }

/* Error box */
.pv-error-box {
  background: #fee2e2;
  border-left: 4px solid #dc2626;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 22px;
}

.pv-error-box p { color: #991b1b; font-size: 14px; }
.pv-error-box a { color: #991b1b; text-decoration: underline; }

/* Spinner inline */
.pv-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: pvSpin 1s linear infinite;
}

/* ──────────────────────────────────
   RESULTADO PAGE
   ────────────────────────────────── */
.pv-result-header {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d6a9f 100%);
  padding: 48px 20px 80px;
  color: #fff;
  text-align: center;
}

.pv-result-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pv-result-container {
  max-width: 720px;
  margin: -50px auto 50px;
  padding: 0 20px 60px;
  position: relative;
  z-index: 2;
}

/* Vehicle hero card */
.pv-vehicle-hero {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.pv-vehicle-hero__icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #1e3a5f, #2d6a9f);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pv-vehicle-hero__icon i { font-size: 32px; color: #fff; }

.pv-vehicle-hero__info { flex: 1; min-width: 200px; }

.pv-vehicle-hero__model {
  font-size: 22px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 6px;
}

.pv-vehicle-hero__plate {
  display: inline-flex;
  align-items: center;
  background: #1e3a5f;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 4px;
  padding: 6px 18px;
  border-radius: 8px;
  border: 3px solid #2d6a9f;
  font-family: 'Courier New', monospace;
}

.pv-vehicle-hero__year {
  font-size: 14px;
  color: #6b7280;
  margin-top: 6px;
}

/* Data grid */
.pv-data-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

.pv-data-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f3f4f6;
}

.pv-data-card__title i { color: #2d6a9f; font-size: 18px; }

.pv-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.pv-info-item {
  background: #f8faff;
  border: 1px solid #e0eaf8;
  border-radius: 10px;
  padding: 14px 16px;
}

.pv-info-item__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #9ca3af;
  margin-bottom: 4px;
}

.pv-info-item__value {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
}

/* Owner card */
.pv-owner-card {
  background: linear-gradient(135deg, #f0f7ff, #e6f0fb);
  border: 2px solid #bdd7f5;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: 0 4px 12px rgba(45,106,159,0.1);
}

.pv-owner-card__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #2d6a9f;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pv-owner-card__name {
  font-size: 22px;
  font-weight: 800;
  color: #1e3a5f;
  margin-bottom: 8px;
}

.pv-owner-card__cpf {
  font-size: 15px;
  color: #374151;
  font-weight: 600;
  margin-bottom: 4px;
}

/* CPF CTA */
.pv-cpf-cta {
  background: linear-gradient(135deg, #1e3a5f 0%, #162d4a 100%);
  border-radius: 14px;
  padding: 28px 24px;
  margin-bottom: 22px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(30,58,95,0.25);
}

.pv-cpf-cta__eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.7);
  margin-bottom: 10px;
}

.pv-cpf-cta__title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.pv-cpf-cta__sub {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  margin-bottom: 22px;
}

.pv-cpf-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #32BCAD 0%, #1db584 100%);
  color: #fff;
  padding: 16px 36px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 4px 18px rgba(50,188,173,0.4);
}

.pv-cpf-cta__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(50,188,173,0.55);
  color: #fff;
}

.pv-cpf-cta__btn i { font-size: 20px; }

/* Status alert */
.pv-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13px;
  margin-bottom: 20px;
}

.pv-alert--info    { background: #eff6ff; border-left: 4px solid #3b82f6; color: #1e40af; }
.pv-alert--success { background: #dcfce7; border-left: 4px solid #16a34a; color: #166534; }
.pv-alert--warn    { background: #fef3c7; border-left: 4px solid #f59e0b; color: #92400e; }
.pv-alert--error   { background: #fee2e2; border-left: 4px solid #dc2626; color: #991b1b; }

/* WhatsApp float */
.pv-whatsapp-float {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.pv-whatsapp-float a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  transition: transform .2s, box-shadow .2s;
}

.pv-whatsapp-float a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37,211,102,0.6);
}

@keyframes pvWaBounce {
  0%   { opacity:0; transform: scale(.7) translateY(20px); }
  70%  { transform: scale(1.08) translateY(-4px); }
  100% { opacity:1; transform: scale(1) translateY(0); }
}

/* ──────────────────────────────────
   RESPONSIVE
   ────────────────────────────────── */
@media (max-width: 768px) {
  .pv-hero { padding: 80px 20px 70px; }
  .pv-hero__title { font-size: 30px; }
  .pv-hero__subtitle { font-size: 15px; }
  .pv-form-card { padding: 28px 20px; }
  .pv-cards-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pv-info-grid { grid-template-columns: 1fr; }
  .pv-vehicle-hero { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .pv-cards-grid { grid-template-columns: 1fr; }
  .pv-hero__title { font-size: 26px; }
}
