/* AISEOGrow Audit Form — Frontend Styles */
#aiseogrow-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px 48px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Steps */
.ag-steps {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  padding-top: 8px;
}
.ag-step { display: flex; align-items: center; gap: 8px; }
.ag-step-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  background: #e8e7e0; color: #888;
  border: 2px solid #ddd;
  flex-shrink: 0;
  transition: all 0.3s;
}
.ag-step.active .ag-step-dot { background: var(--ag-brand, #6C47D9); color: #fff; border-color: var(--ag-brand, #6C47D9); }
.ag-step.done .ag-step-dot   { background: #0F9B7E; color: #fff; border-color: #0F9B7E; }
.ag-step-label { font-size: 12px; color: #888; white-space: nowrap; }
.ag-step.active .ag-step-label { color: var(--ag-brand, #6C47D9); font-weight: 500; }
.ag-step-line { flex: 1; height: 2px; background: #ddd; margin: 0 8px; transition: background 0.3s; }
.ag-step-line.done { background: #0F9B7E; }

/* Card */
.ag-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.ag-title { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 6px; color: #1a1a18; }
.ag-sub { font-size: 14px; color: #666; margin-bottom: 24px; }

/* Error */
.ag-error-box {
  background: #FCEBEB; color: #A32D2D;
  border: 1px solid #F7C1C1;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* Form grid */
.ag-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ag-field { display: flex; flex-direction: column; gap: 5px; }
.ag-field-full { grid-column: 1 / -1; }
.ag-field label { font-size: 13px; font-weight: 500; color: #555; }
.ag-field .req { color: var(--ag-brand, #6C47D9); }
.ag-field input,
.ag-field select {
  padding: 10px 13px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1a18;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.ag-field input:focus,
.ag-field select:focus { border-color: var(--ag-brand, #6C47D9); }
.ag-field input.ag-error,
.ag-field select.ag-error { border-color: #A32D2D; }

/* Buttons */
.ag-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.ag-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
  line-height: 1;
}
.ag-btn-primary { background: var(--ag-brand, #6C47D9); color: #fff; }
.ag-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.ag-btn-primary:disabled { background: #bbb; cursor: not-allowed; transform: none; }
.ag-btn-outline { background: transparent; border: 1.5px solid #ddd; color: #444; }
.ag-btn-outline:hover { border-color: var(--ag-brand, #6C47D9); color: var(--ag-brand, #6C47D9); }
.ag-btn-cta { background: #7DFFCE; color: #0d0d1a; font-size: 15px; padding: 13px 28px; }
.ag-btn-cta:hover { opacity: 0.9; }
.ag-legal { font-size: 12px; color: #999; margin-top: 12px; }

/* Progress */
.ag-progress-wrap {
  background: #f4f3ef;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}
.ag-progress-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; color: #1a1a18; }
.ag-progress-track {
  background: rgba(0,0,0,0.1);
  border-radius: 6px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}
.ag-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--ag-brand, #6C47D9), #0F9B7E);
  border-radius: 6px;
  width: 0%;
  transition: width 0.3s ease;
}
.ag-progress-pct { font-size: 12px; color: #888; }

/* Check list */
.ag-check-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 14px; color: #444;
}
.ag-check-item:last-child { border: none; }
.ag-check-icon { font-size: 18px; flex-shrink: 0; transition: all 0.2s; }
.ag-check-icon.pending { color: #bbb; }
.ag-check-icon.running { color: #BA7517; }
.ag-check-icon.done    { color: #0F9B7E; }

/* Report */
.ag-report-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ag-report-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.ag-overall-box {
  background: #0d0d1a; color: #fff;
  border-radius: 12px; padding: 24px 28px;
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 16px;
}
.ag-overall-num { font-size: 56px; font-weight: 800; letter-spacing: -2px; color: #7DFFCE; line-height: 1; }
.ag-overall-grade { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.ag-overall-desc { font-size: 13px; color: rgba(255,255,255,0.55); }

.ag-score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.ag-score-card { background: #f4f3ef; border-radius: 10px; padding: 14px; text-align: center; border: 1px solid rgba(0,0,0,0.06); }
.ag-score-label { font-size: 11px; color: #888; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.4px; }
.ag-score-num { font-size: 28px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.ag-score-grade { font-size: 11px; font-weight: 500; }
.ag-s-high { color: #0F9B7E; } .ag-s-mid { color: #BA7517; } .ag-s-low { color: #A32D2D; }

.ag-section-title { font-size: 15px; font-weight: 700; margin: 22px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ag-brand, #6C47D9); color: var(--ag-brand, #6C47D9); }

.ag-finding { border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.ag-finding-hd { padding: 11px 15px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 13px; }
.ag-finding-hd.critical { background: #FCEBEB; color: #A32D2D; }
.ag-finding-hd.warning  { background: #FAEEDA; color: #BA7517; }
.ag-finding-hd.good     { background: #EAF3DE; color: #3B6D11; }
.ag-finding-badge { font-size: 11px; padding: 2px 9px; border-radius: 10px; background: rgba(0,0,0,0.08); }
.ag-finding-body { padding: 12px 15px; font-size: 13px; color: #444; line-height: 1.7; }

.ag-rec-list { list-style: none; padding: 0; margin: 0; }
.ag-rec-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 13px; }
.ag-rec-item:last-child { border: none; }
.ag-pri-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; flex-shrink: 0; margin-top: 2px; }
.ag-p-high { background: #FCEBEB; color: #A32D2D; }
.ag-p-mid  { background: #FAEEDA; color: #BA7517; }
.ag-p-low  { background: #EAF3DE; color: #3B6D11; }

.ag-cta-box { background: linear-gradient(135deg,#0d0d1a,#1a1030); color: #fff; border-radius: 14px; padding: 28px; text-align: center; margin-top: 24px; }
.ag-cta-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.ag-cta-box p  { color: rgba(255,255,255,0.6); font-size: 13px; margin-bottom: 18px; }
.ag-price-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.ag-price-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; padding: 13px 18px; min-width: 120px; text-align: center; }
.ag-price-card.ag-featured { border-color: #7DFFCE; }
.ag-plan-name  { font-size: 10px; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.ag-plan-price { font-size: 19px; font-weight: 700; }
.ag-plan-price span { font-size: 12px; font-weight: 400; }
.ag-price-card.ag-featured .ag-plan-price { color: #7DFFCE; }
.ag-plan-note  { font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 2px; }

.ag-hidden { display: none !important; }

@media (max-width: 600px) {
  .ag-form-grid { grid-template-columns: 1fr; }
  .ag-score-grid { grid-template-columns: repeat(2,1fr); }
  .ag-card { padding: 20px; }
  .ag-overall-box { flex-direction: column; text-align: center; }
  .ag-report-header { flex-direction: column; }
}
