/* Public unsubscribe pages — standalone 21 Digital shell */

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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --text: #111827;
  --text-light: #5b6472;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e5e7eb;
  --danger: #dc2626;
  --danger-dark: #b91c1c;
  --success-bg: #d1fae5;
  --success-text: #065f46;
  --info-bg: #dbeafe;
  --info-text: #1e40af;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

body.unsubscribe-page {
  min-height: 100vh;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 34%),
    linear-gradient(135deg, var(--bg-dark) 0%, #1e3a8a 58%, var(--primary) 100%);
}

.unsubscribe-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.unsubscribe-card {
  width: min(100%, 620px);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 6vw, 48px);
}

.unsubscribe-eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--primary-dark);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.unsubscribe-card h1 {
  color: var(--text);
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin-bottom: 18px;
}

.unsubscribe-lede {
  color: var(--text-light);
  font-size: 18px;
  margin-bottom: 22px;
}

.status-banner {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 16px;
  margin: 0 0 22px;
}

.status-banner.success {
  background: var(--success-bg);
  color: var(--success-text);
}

.status-banner.info {
  background: var(--info-bg);
  color: var(--info-text);
}

.email-chip {
  width: 100%;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  overflow-wrap: anywhere;
  padding: 13px 14px;
  margin: 0 0 18px;
  text-align: center;
}

.unsubscribe-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.unsubscribe-form label {
  display: block;
  color: #374151;
  font-weight: 700;
  margin-bottom: 6px;
}

.unsubscribe-form select,
.unsubscribe-form input[type="email"],
.unsubscribe-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: white;
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
}

.unsubscribe-form textarea {
  min-height: 92px;
  resize: vertical;
}

.unsubscribe-form select:focus,
.unsubscribe-form input[type="email"]:focus,
.unsubscribe-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.unsubscribe-submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  color: white;
  font-size: 17px;
  font-weight: 800;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.unsubscribe-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
}

.unsubscribe-submit.danger {
  background: var(--danger);
}

.unsubscribe-submit.danger:hover {
  background: var(--danger-dark);
}

.unsubscribe-submit.primary {
  background: var(--primary);
}

.unsubscribe-submit.primary:hover {
  background: var(--primary-dark);
}

.retention-panel {
  display: grid;
  gap: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  margin: 0 0 18px;
  padding: 20px;
}

.retention-eyebrow {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.retention-panel h2 {
  color: var(--text);
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.retention-flaw {
  color: #334155;
  font-size: 16px;
  font-weight: 700;
}

.retention-consequence {
  color: var(--text-light);
  font-size: 15px;
}

.retention-save-form {
  margin-top: 4px;
}

.feedback-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-light);
  padding: 12px 14px;
}

.feedback-panel summary {
  cursor: pointer;
  color: var(--primary-dark);
  font-weight: 800;
}

.feedback-fields {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.trust-note {
  color: var(--text-light);
  font-size: 14px;
  margin-top: 20px;
}

.unsubscribe-footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 18px;
  text-align: center;
}

.unsubscribe-footer a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.unsubscribe-footer a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

@media (max-width: 520px) {
  .unsubscribe-shell {
    align-items: flex-start;
    padding: 16px;
  }

  .unsubscribe-card {
    border-radius: 22px;
  }

  .unsubscribe-lede {
    font-size: 16px;
  }
}
