:root {
  --color-bg: #eaf5fb;
  --color-card: #ffffff;
  --color-text: #17324d;
  --color-text-muted: #5d7182;
  --color-fine-print: #7e929f;
  --color-border: #d5e5ee;
  --color-accent: #1479b8;
  --color-accent-hover: #106090;
  --color-error: #c0392b;
  --color-success: #1e8e5a;
  --radius: 18px;
  --shadow: 0 7px 22px rgba(23, 50, 77, 0.1);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
}

.card {
  margin: auto;
  width: 100%;
  max-width: 420px;
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px 28px;
}

.card__header {
  text-align: center;
  margin-bottom: 24px;
}

.logo-mark {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 4px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.tagline {
  margin: 6px 0 0;
  color: var(--color-text-muted);
  font-size: 15px;
}

.notice {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #f3f9fd;
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.field input,
.field select {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--color-text);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #ffffff;
}

.field select:disabled {
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.field--honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.submit-button {
  margin-top: 4px;
  padding: 14px 18px;
  border: none;
  border-radius: 11px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(20, 121, 184, 0.25);
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.submit-button:hover {
  background: var(--color-accent-hover);
}

.submit-button:active {
  transform: translateY(1px);
}

.submit-button:disabled {
  background: var(--color-text-muted);
  cursor: not-allowed;
}

.status {
  min-height: 20px;
  margin: 4px 0 0;
  font-size: 14px;
  text-align: center;
}

.status[data-state="error"] {
  color: var(--color-error);
}

.status[data-state="success"] {
  color: var(--color-success);
}

.fine-print {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-fine-print);
  text-align: center;
}

.hidden {
  display: none !important;
}

.form--hidden {
  display: none;
}

.returning {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.returning .form {
  margin-top: 12px;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--color-accent);
  cursor: pointer;
  text-decoration: underline;
}

.link-button:hover {
  color: var(--color-accent-hover);
}

.link-button--danger {
  display: inline-block;
  color: var(--color-error);
  text-decoration: none;
  font-size: 14px;
}

.submit-button--secondary {
  background: #f1f5f9;
  color: var(--color-text);
}

.submit-button--secondary:hover {
  background: #e2e8f0;
}

.submit-button--danger {
  background: var(--color-error);
}

.submit-button--danger:hover {
  background: #b91c1c;
}

.unsubscribe-confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.unsubscribe-confirm .fine-print {
  margin: 0;
}

.card__footer {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--color-fine-print);
}

.footer-link {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .card {
    padding: 26px 20px 22px;
    border-radius: 12px;
  }
}
