/* ========================================
   ListingLock — Audit Flow Styles
   Form + Teaser Report pages
   ======================================== */

/* ---- AUDIT PAGE SHELL ---- */
.audit-page {
  background: var(--bg);
  min-height: 100vh;
}

.audit-main {
  padding: calc(var(--nav-h) + 48px) 24px 80px;
}

/* ---- AUDIT FORM WRAP ---- */
.audit-form-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.audit-hero-text {
  margin-bottom: 36px;
}

.audit-hero-text h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 12px;
  margin-top: 16px;
}

.audit-sub {
  color: var(--fg-body);
  font-size: 1.05rem;
  line-height: 1.65;
}

.audit-error {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-radius: var(--radius-sm);
  color: var(--red);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  margin-bottom: 20px;
}

/* ---- FORM ---- */
.audit-form {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.form-field input {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  color: var(--fg);
  background: var(--bg-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  width: 100%;
}

.form-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.form-field input::placeholder {
  color: var(--fg-dim);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-audit-submit {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.spin-ring {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

.form-disclaimer {
  font-size: 13px;
  color: var(--fg-muted);
  text-align: center;
  margin-top: 12px;
}

/* ---- TRUST BADGES ---- */
.audit-trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fg-body);
  font-weight: 500;
}

/* ================================================================
   REPORT PAGE
   ================================================================ */

.report-main {
  padding: calc(var(--nav-h) + 32px) 24px 80px;
}

.report-wrap {
  max-width: 680px;
  margin: 0 auto;
}

/* ---- ALARM BAR ---- */
.report-alarm {
  background: var(--red-bg);
  border: 1.5px solid var(--red-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.alarm-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.alarm-headline {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}

.alarm-headline strong {
  color: var(--red);
}

.alarm-sub {
  font-size: 14px;
  color: var(--fg-body);
}

/* ---- REPORT SECTIONS ---- */
.report-section {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
}

.report-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.report-section-sub {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

/* ---- CATEGORY GRID ---- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.category-card {
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 0.15s ease;
}

.category-card.has-issues {
  background: var(--red-bg);
  border-color: var(--red-border);
}

.category-card.no-issues {
  background: var(--green-bg);
  border-color: var(--green-border);
}

.category-icon {
  margin-bottom: 6px;
}

.category-card.has-issues .category-icon svg { stroke: var(--red); }
.category-card.no-issues .category-icon svg { stroke: var(--green); }

.category-label {
  font-size: 11px;
  color: var(--fg-body);
  margin-bottom: 6px;
  line-height: 1.3;
}

.category-count {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}

.category-card.has-issues .category-count { color: var(--red); }
.category-card.no-issues .category-count { color: var(--green); font-size: 1.1rem; }

.category-unit {
  font-size: 11px;
  color: var(--fg-muted);
}

/* ---- PROOF ITEMS ---- */
.proof-item {
  border: 1px solid var(--red-border);
  background: var(--red-bg);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
}

.proof-item:last-child { margin-bottom: 0; }

.proof-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.proof-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}

.proof-detail {
  font-size: 13px;
  color: var(--fg-body);
  margin-bottom: 10px;
}

.proof-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.proof-link:hover { color: var(--accent-hover); }

/* ---- LOCKED SECTION ---- */
.locked-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--fg-muted);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.locked-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.locked-item:last-of-type { border-bottom: none; }

.locked-dot {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--border);
  flex-shrink: 0;
}

.locked-name {
  flex: 1;
  font-size: 13px;
  color: var(--border);
  background: var(--border);
  border-radius: 4px;
  user-select: none;
  filter: blur(0px);
}

.locked-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-radius: 100px;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.locked-more {
  font-size: 13px;
  color: var(--fg-muted);
  text-align: center;
  padding: 12px 0 4px;
}

/* ---- CTA ---- */
.report-cta {
  background: var(--bg-white);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  margin-top: 24px;
}

.cta-headline {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.cta-sub {
  color: var(--fg-body);
  font-size: 15px;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 24px;
}

.btn-cta-large {
  font-size: 17px;
  padding: 18px 40px;
  box-shadow: 0 4px 20px rgba(59,130,246,0.3);
}

.cta-notes {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.cta-notes span {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
}

.cta-detail {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 12px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .audit-form {
    padding: 24px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audit-trust {
    gap: 16px;
  }

  .report-cta {
    padding: 28px 20px;
  }

  .report-section {
    padding: 20px;
  }

  .report-alarm {
    padding: 20px;
    flex-direction: column;
    gap: 12px;
  }

  .cta-notes {
    gap: 12px;
  }

  .btn-cta-large {
    width: 100%;
    font-size: 16px;
    padding: 16px 24px;
  }
}
