/* ---------- Theme tokens ---------- */
:root {
  --mfn-bg: #ffffff;
  --mfn-surface: #f7f8fa;
  --mfn-surface-2: #ccc;
  --mfn-text: #1f2937;
  --mfn-muted: #6b7280;
  --mfn-border: #e5e7eb;
  --mfn-primary: #009c9b;
  --mfn-primary-600: #009c9b;
  --mfn-success: #16a34a;
  --mfn-danger: #dc2626;
  --mfn-focus: 2px solid #2563eb;
  --mfn-radius: 14px;
  --mfn-shadow: 0 6px 24px rgba(0,0,0,.08);
}

/* ---------- Container ---------- */
.mfn-subscribe {
  max-width: 720px;
  margin: 2rem auto;
  background: var(--mfn-bg);
  border: 1px solid var(--mfn-border);
  border-radius: var(--mfn-radius);
  box-shadow: var(--mfn-shadow);
  padding: clamp(1rem, 2vw + .5rem, 2rem);
  font-family: font-family: "ct_font_galaxie__polaris__regular", sans-serif;
  color: var(--mfn-text);
}

/* ---------- Blocks & text ---------- */
.mfn-block { margin-block: 1rem; }

.mfn-info-main p,
.mfn-info p {
  margin: 0;
  line-height: 1.5;
}

.mfn-info-main-1 {
  font-size: clamp(1.05rem, .6vw + 1rem, 1.25rem);
  font-weight: 600;
}

.mfn-info-options,
.mfn-info-languages {
  color: var(--mfn-muted);
  font-size: .95rem;
}

/* ---------- Lists ---------- */
.mfn-list {
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) );
  gap: .5rem;
}

.mfn-checkbox-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem .8rem;
  background: var(--mfn-surface);
  border: 1px solid var(--mfn-border);
  border-radius: 10px;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.mfn-checkbox-row:hover {
  border-color: var(--mfn-primary);
}

.mfn-checkbox-row-checked {
  background: color-mix(in srgb, var(--mfn-primary) 8%, var(--mfn-surface));
  border-color: var(--mfn-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--mfn-primary) 20%, transparent);
}

.mfn-checkbox-row input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--mfn-primary);
  cursor: pointer;
}
.mfn-checkbox-row label { cursor: pointer; }

/* ---------- Email field ---------- */
.mfn-fields .mfn-field-row {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.mfn-field-input {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid var(--mfn-border);
  background: var(--mfn-surface);
  color: var(--mfn-text);
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.mfn-field-input::placeholder { color: var(--mfn-muted); }

.mfn-field-input:focus {
  outline: none;
  border-color: var(--mfn-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mfn-primary) 25%, transparent);
}

/* ---------- Policy / approval ---------- */
.mfn-policy {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem .9rem;
  background: var(--mfn-surface);
  border: 1px solid var(--mfn-border);
  border-radius: 10px;
  font-size: .95rem;
}

.mfn-policy a {
  color: var(--mfn-primary-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mfn-policy-approve {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}

.mfn-policy-approve input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--mfn-primary);
}

/* ---------- Button ---------- */
.mfn-submit {
  margin-top: .5rem;
}

.mfn-sub-submit {
  display: inline-block;
  padding: .8rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--mfn-primary);
  background: var(--mfn-primary);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .05s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.mfn-sub-submit:hover {
  background: var(--mfn-surface-2);
  border-color: var(--mfn-surface-2);
}

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

.mfn-sub-submit:focus-visible {
  outline: var(--mfn-focus);
  outline-offset: 2px;
}

/* ---------- Status & alerts ---------- */
.mfn-status { margin-top: .75rem; }

.mfn-status-item { 
  margin: 0;
  padding: .65rem .75rem;
  border-radius: 10px;
  font-size: .95rem;
  border: 1px solid transparent;
}

.mfn-success { 
  background: color-mix(in srgb, var(--mfn-success) 10%, transparent);
  border-color: color-mix(in srgb, var(--mfn-success) 40%, transparent);
  color: var(--mfn-success);
}

.mfn-alert { 
  background: color-mix(in srgb, var(--mfn-danger) 10%, transparent);
  border-color: color-mix(in srgb, var(--mfn-danger) 40%, transparent);
  color: var(--mfn-danger);
}

/* JS toggles these */
.mfn-hidden { display: none !important; }
.mfn-alert-active { display: block; }

/* ---------- Nice small-screen tweaks ---------- */
@media (max-width: 480px) {
  .mfn-policy { flex-direction: column; }
  .mfn-sub-submit { width: 100%; text-align: center; }
}
