/* ── Submit Testimonial Page ───────────────────────────────── */
.st-main {
  min-height: calc(100vh - 120px);
  background: var(--bg-light);
  padding: 56px 16px 80px;
}

.st-container {
  max-width: 620px;
  margin: 0 auto;
}

/* ── State cards (disabled / success) ────────────────────── */
.st-state-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 56px 40px;
  text-align: center;
}
.st-state-card h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 16px 0 10px;
}
.st-state-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.7;
}
.st-state-card a { color: var(--primary); }
.st-state-icon { font-size: 3rem; color: var(--text-light); }
.st-state-icon.success { color: #16a34a; }

/* ── Form card ────────────────────────────────────────────── */
#st-form-wrap {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  overflow: hidden;
}

.st-header {
  background: var(--primary);
  color: #fff;
  padding: 36px 40px 28px;
  text-align: center;
}
.st-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 14px;
  color: #fff;
}
.st-header h1 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}
.st-header p {
  font-size: 0.9rem;
  opacity: 0.88;
  margin: 0;
  line-height: 1.6;
}

/* ── Form body ────────────────────────────────────────────── */
#st-form {
  padding: 32px 40px 36px;
}

.st-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 20px;
  margin-top: 4px;
}
.st-section-label + .st-section-label,
.form-group + .st-section-label {
  margin-top: 28px;
}

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

#st-form .form-group {
  margin-bottom: 20px;
}
#st-form .form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 7px;
}
.req { color: var(--accent); }
.req-hint { font-weight: 400; color: var(--text-light); font-size: 0.78rem; }

#st-form input[type="text"],
#st-form textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 0.93rem;
  color: var(--text-dark);
  background: var(--bg-white);
  font-family: var(--font-body);
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
#st-form input[type="text"]:focus,
#st-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
#st-form textarea { resize: vertical; min-height: 100px; }
.st-char-count {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ── Avatar ───────────────────────────────────────────────── */
.st-avatar-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.st-avatar-preview {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--text-light);
  overflow: hidden;
  transition: opacity 0.2s;
}
.st-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.st-avatar-preview.uploading { opacity: 0.5; }
.st-avatar-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  padding-top: 4px;
}
.btn-link-sm {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.btn-link-sm:hover { color: #dc2626; }
.st-upload-status { font-size: 0.8rem; min-height: 18px; }

/* ── Star picker ──────────────────────────────────────────── */
.st-star-picker {
  display: flex;
  gap: 6px;
}
.st-star-picker button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  color: #d1d5db;
  padding: 2px 4px;
  line-height: 1;
  transition: color 0.12s, transform 0.1s;
}
.st-star-picker button.active { color: #f59e0b; }
.st-star-picker button:hover { transform: scale(1.15); }

/* ── Error / submit ───────────────────────────────────────── */
.st-error-msg {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}
.btn-block {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 1rem;
}
.st-disclaimer {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
  margin-bottom: 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .st-main { padding: 32px 12px 70px; }
  .st-header { padding: 28px 24px 22px; }
  .st-header h1 { font-size: 1.35rem; }
  #st-form { padding: 24px 20px 28px; }
  .st-form-grid { grid-template-columns: 1fr; }
  .st-state-card { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .st-main { padding: 20px 8px 62px; }
  .st-header { padding: 24px 16px 18px; }
  #st-form { padding: 20px 16px 24px; }
  .st-star-picker button { font-size: 1.7rem; }
}
