/* Project Rockford — Ban Appeals
   Same structure and CSS as tickets.projectrockford.com's transcript page:
   sticky blurred header bar, warm cream ground, boxed white panels with an
   accent-colored title, Space Grotesk throughout. */

:root {
  --bg: #fefdf5;
  --bg-secondary: #f4f2e6;
  --bg-header: #fefdf5;
  --text: #1a1a1a;
  --text-muted: #6b6b64;
  --border: #e6e3d4;
  --accent: #e64a36;
  --accent-text: #fefdf5;

  --green: #2f9e56;
  --green-bg: rgba(47, 158, 86, 0.1);
  --red-bg: rgba(230, 74, 54, 0.1);
  --yellow: #b5790c;
  --yellow-bg: rgba(181, 121, 12, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(230, 74, 54, 0.05), transparent 40%),
    radial-gradient(circle at 85% 100%, rgba(230, 74, 54, 0.05), transparent 40%);
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(254, 253, 245, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}

.top-header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-header .subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.panel-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent);
}

.steps {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.step-dot {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--bg-secondary);
  transition: background 0.2s ease;
}

.step-dot.active {
  background: var(--accent);
}

.step-dot.done {
  background: var(--green);
}

.field {
  margin-bottom: 16px;
}

.field:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s ease;
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

textarea:focus {
  border-color: var(--accent);
}

.hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.char-count {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

.char-count.ok {
  color: var(--green);
}

button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  width: 100%;
}

button.success {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 4px 14px rgba(230, 74, 54, 0.28);
}

button.success:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(230, 74, 54, 0.35);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-link {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 4px 14px rgba(230, 74, 54, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(230, 74, 54, 0.35);
}

.btn-link.done {
  background: var(--green);
  box-shadow: none;
  pointer-events: none;
}

.btn-link.disabled {
  background: var(--bg-secondary);
  color: var(--text-muted);
  box-shadow: none;
  pointer-events: none;
  cursor: not-allowed;
}

.error-box {
  background: var(--red-bg);
  border: 1px solid rgba(230, 74, 54, 0.35);
  color: #b8331f;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}

.error-box.show {
  display: block;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-muted);
  flex-shrink: 0;
}

.info-value {
  text-align: right;
  word-break: break-word;
}

.meta-line {
  font-size: 13px;
  color: var(--text-muted);
}

.meta-line strong {
  color: var(--text);
}

.reason-box {
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 13.5px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}

.status-box {
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
}

.status-box.pending {
  background: var(--yellow-bg);
  border: 1px solid rgba(181, 121, 12, 0.3);
  color: #8a5c09;
}

.status-box.approved {
  background: var(--green-bg);
  border: 1px solid rgba(47, 158, 86, 0.3);
  color: #226e3d;
}

.status-box.denied {
  background: var(--red-bg);
  border: 1px solid rgba(230, 74, 54, 0.3);
  color: #b8331f;
}

.status-box .status-title {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 15px;
}

.success-icon {
  font-size: 40px;
  text-align: center;
  margin-bottom: 8px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.footer-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── Standalone message pages (error / 404-style) ────────────────── */
.center-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.center-page .container {
  max-width: 480px;
  padding: 32px;
}

.center-page h1 {
  font-size: 90px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -3px;
  text-shadow: 0 6px 0 rgba(230, 74, 54, 0.12);
  margin: 0;
}

.center-page h2 {
  font-size: 21px;
  font-weight: 600;
  margin-top: 6px;
  letter-spacing: 0.5px;
  color: var(--text);
}

.center-page p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.center-page .cta {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(230, 74, 54, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.center-page .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(230, 74, 54, 0.35);
}

.center-page .rule {
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 18px auto 0;
  opacity: 0.5;
}

[hidden] {
  display: none !important;
}
