/* Gorilla Public Auditor — Frontend Styles */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display&display=swap');

/* ─── Reset & Container ─────────────────────────────────────────────── */
.gpa-wrapper {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 60px;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

/* ─── Hero ───────────────────────────────────────────────────────────── */
.gpa-hero {
  text-align: center;
  padding: 56px 0 40px;
}

.gpa-title {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  color: #0c0c0c;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.gpa-subtitle {
  font-size: 16px;
  color: #666;
  line-height: 1.65;
  margin: 0;
  max-width: 480px;
  margin-inline: auto;
}

/* ─── Form Card ─────────────────────────────────────────────────────── */
.gpa-form-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  overflow: hidden;
}

.gpa-form-inner {
  padding: 36px 36px 32px;
}

/* ─── Fields ─────────────────────────────────────────────────────────── */
.gpa-field-group {
  margin-bottom: 24px;
}

.gpa-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.gpa-req {
  color: #dc2626;
}

.gpa-optional {
  font-weight: 400;
  color: #999;
  font-size: 12px;
}

.gpa-input {
  width: 100%;
  padding: 13px 16px;
  font-size: 15px;
  font-family: inherit;
  color: #1a1a1a;
  background: #fafafa;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.gpa-input:focus {
  border-color: #1a1a1a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.06);
}

.gpa-input::placeholder {
  color: #bbb;
}

.gpa-hint {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 6px;
  line-height: 1.5;
}

/* ─── Error ──────────────────────────────────────────────────────────── */
.gpa-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #dc2626;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ─── Submit Button ─────────────────────────────────────────────────── */
.gpa-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: #0c0c0c;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
  letter-spacing: -0.01em;
}

.gpa-submit-btn:hover {
  background: #222;
  transform: translateY(-1px);
}

.gpa-submit-btn:active {
  transform: translateY(0);
}

.gpa-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.gpa-btn-arrow {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.gpa-submit-btn:hover .gpa-btn-arrow {
  transform: translateX(3px);
}

/* ─── Privacy note ───────────────────────────────────────────────────── */
.gpa-privacy {
  text-align: center;
  font-size: 12px;
  color: #bbb;
  margin: 14px 0 0;
  line-height: 1.5;
}

/* ─── Progress Card ─────────────────────────────────────────────────── */
.gpa-progress-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  padding: 48px 36px;
  text-align: center;
}

.gpa-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid #f0f0f0;
  border-top-color: #0c0c0c;
  border-radius: 50%;
  animation: gpa-spin 0.8s linear infinite;
  margin: 0 auto 24px;
}

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

.gpa-progress-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.gpa-progress-steps {
  text-align: left;
  display: inline-block;
  margin-bottom: 24px;
}

.gpa-step {
  font-size: 14px;
  color: #999;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.gpa-step.active {
  color: #1a1a1a;
  font-weight: 500;
}

.gpa-step.done {
  color: #16a34a;
}

.gpa-progress-note {
  font-size: 12px;
  color: #bbb;
}

/* ─── Results Card ───────────────────────────────────────────────────── */
.gpa-results-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  overflow: hidden;
}

.gpa-results-header {
  background: #0c0c0c;
  color: #fff;
  padding: 36px;
  text-align: center;
}

.gpa-checkmark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 16px;
  border: 1.5px solid rgba(255,255,255,0.2);
}

.gpa-results-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}

.gpa-results-sub {
  font-size: 14px;
  color: #aaa;
  margin: 0;
  line-height: 1.6;
}

/* Score grid */
.gpa-score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1px;
  background: #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.gpa-score-item {
  background: #fff;
  padding: 20px 16px;
  text-align: center;
}

.gpa-score-num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.gpa-score-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
}

.gpa-score-num.good { color: #16a34a; }
.gpa-score-num.warn { color: #d97706; }
.gpa-score-num.crit { color: #dc2626; }

/* Summary */
.gpa-summary-text {
  padding: 24px 32px;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  border-bottom: 1px solid #f0f0f0;
}

/* Download button */
.gpa-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 32px 12px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: #0c0c0c;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.gpa-download-btn:hover {
  background: #222;
  color: #fff;
  text-decoration: none;
}

.gpa-new-audit {
  display: block;
  width: calc(100% - 64px);
  margin: 0 32px 24px;
  padding: 12px;
  background: none;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #666;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.gpa-new-audit:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

/* Admin */
.gpa-admin-wrap h1 {
  margin-bottom: 20px;
}
.gpa-shortcode-box {
  margin: 20px 0;
  padding: 14px 18px;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
}
.gpa-shortcode-box code {
  background: #e8e8e8;
  padding: 2px 6px;
  border-radius: 3px;
}
.required { color: #dc2626; }

/* Responsive */
@media (max-width: 480px) {
  .gpa-form-inner { padding: 24px 20px 20px; }
  .gpa-progress-card { padding: 36px 20px; }
  .gpa-download-btn,
  .gpa-new-audit {
    margin-left: 20px;
    margin-right: 20px;
    width: calc(100% - 40px);
  }
  .gpa-summary-text { padding: 20px; }
}
