/* PingLater — Uninstall feedback page */

:root {
  --bg-primary: #0a0f0d;
  --bg-secondary: #111916;
  --bg-card: #1a1f1c;
  --bg-hover: #252a27;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #666666;
  --accent: #4ade80;
  --accent-dim: rgba(74, 222, 128, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --danger: #f87171;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(74, 222, 128, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 80%, rgba(74, 222, 128, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.lang-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.lang-label {
  white-space: nowrap;
}

.lang-wrap select {
  appearance: none;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 36px 8px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b0b0b0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.lang-wrap select:focus {
  border-color: rgba(74, 222, 128, 0.5);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand span {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

h1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.lead {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 12px;
}

.lead-sub {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 14px;
}

.lead-sub strong {
  color: var(--text-primary);
  font-weight: 500;
}

.x-note {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.5;
}

.x-note a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.x-note a:hover {
  text-decoration: underline;
}

.success-x {
  margin-bottom: 24px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.reasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.reason {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.reason:hover {
  border-color: rgba(74, 222, 128, 0.35);
  background: var(--bg-hover);
}

.reason:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.reason input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.reason span {
  font-size: 14px;
  color: var(--text-primary);
}

label.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  margin-bottom: 24px;
  outline: none;
  transition: border-color 0.2s ease;
}

textarea::placeholder {
  color: var(--text-muted);
}

textarea:focus {
  border-color: rgba(74, 222, 128, 0.5);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

button[type="submit"] {
  appearance: none;
  border: none;
  background: var(--accent);
  color: #0a0f0d;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

button[type="submit"]:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.skip {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  padding: 10px 8px;
}

.skip:hover {
  color: var(--text-secondary);
}

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

.note a {
  color: var(--accent);
  text-decoration: none;
}

.note a:hover {
  text-decoration: underline;
}

.footer {
  margin-top: auto;
  padding-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent);
}

.success {
  text-align: center;
  padding: 16px 0 8px;
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 28px;
  height: 28px;
}

.success h1 {
  margin-bottom: 8px;
}

.success p {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.success .cta {
  display: inline-block;
  background: var(--accent);
  color: #0a0f0d;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
}

@media (max-width: 480px) {
  .page {
    padding: 32px 16px 48px;
  }

  .card {
    padding: 24px 18px;
  }

  h1 {
    font-size: 24px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  button[type="submit"],
  .skip {
    text-align: center;
  }
}
