/* Personalized letter form inside an article (js/letter-form.js).
 *
 * Scoped two classes deep (.mklf .x) so main.css's bare-element and
 * .content-container.article rules can't leak in. Colours follow the
 * subscribe page (assets/css/subscribe-flow.css). Mobile first. */

.mklf {
  --mklf-magenta: #c2105f;
  --mklf-magenta-dark: #a10d4f;
  --mklf-link: #b00d68;
  --mklf-text: #2b2536;
  --mklf-muted: #5f576b;
  --mklf-border: #c9c3cf;
  --mklf-card: #fff5fa;
  --mklf-card-border: #f2b8d4;
  --mklf-invalid: #b3261e;
  --mklf-error-bg: #fdecea;
  --mklf-error-border: #f2b8b5;

  display: block;
  margin: 28px 0;
  color: var(--mklf-text);
  font-family: 'Lato', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.mklf .mklf-card {
  box-sizing: border-box;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px;
  border: 2px solid var(--mklf-card-border);
  border-radius: 14px;
  background: var(--mklf-card);
}

.mklf .mklf-title {
  margin: 0 0 6px;
  font-family: 'Montserrat', 'Lato', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: #1d1724;
}

.mklf .mklf-intro {
  margin: 0 0 18px;
  color: var(--mklf-muted);
  white-space: pre-line;
}

.mklf .mklf-section {
  margin: 18px 0 8px;
  font-family: 'Montserrat', 'Lato', sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.mklf .mklf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 16px;
}

.mklf .mklf-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* The optional months pick, shown under the age select for "Under 1". */
.mklf .mklf-months {
  margin-top: 8px;
}

.mklf .mklf-label {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--mklf-text);
}

.mklf .mklf-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--mklf-border);
  border-radius: 8px;
  background: #fff;
  color: var(--mklf-text);
  font: inherit;
  /* 16px keeps iPhone Safari from zooming in on focus */
  font-size: 16px;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.mklf select.mklf-input {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232b2536' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.mklf textarea.mklf-input {
  min-height: 72px;
  resize: vertical;
}

.mklf .mklf-input:focus {
  outline: none;
  border-color: var(--mklf-magenta);
  box-shadow: 0 0 0 3px rgba(194, 16, 95, 0.18);
}

.mklf .mklf-input.is-invalid {
  border-color: var(--mklf-invalid);
}

.mklf .mklf-help {
  margin-top: 4px;
  font-size: 13px;
  color: var(--mklf-muted);
}

.mklf .mklf-msg:empty {
  display: none;
}

.mklf .mklf-msg.is-error {
  margin-top: 4px;
  font-size: 14px;
  color: var(--mklf-invalid);
}

.mklf .mklf-turnstile {
  margin: 18px 0 4px;
  min-height: 0;
}

.mklf .mklf-notice {
  margin: 14px 0 16px;
  font-size: 14px;
  color: var(--mklf-muted);
}

.mklf .mklf-link {
  color: var(--mklf-link);
  text-decoration: underline;
}

.mklf .mklf-status {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--mklf-error-border);
  border-radius: 8px;
  background: var(--mklf-error-bg);
  color: #8c1d18;
  font-size: 15px;
}

.mklf .mklf-status[hidden],
.mklf [hidden] {
  display: none !important;
}

.mklf .mklf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: 2px solid var(--mklf-magenta);
  border-radius: 999px;
  background: var(--mklf-magenta);
  color: #fff;
  font-family: 'Montserrat', 'Lato', sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mklf .mklf-btn:hover,
.mklf .mklf-btn:focus-visible {
  background: var(--mklf-magenta-dark);
  border-color: var(--mklf-magenta-dark);
}

.mklf .mklf-btn:disabled,
.mklf .mklf-btn.is-busy {
  opacity: 0.7;
  cursor: progress;
}

.mklf .mklf-btn--ghost {
  background: #fff;
  color: var(--mklf-magenta);
}

.mklf .mklf-btn--ghost:hover,
.mklf .mklf-btn--ghost:focus-visible {
  background: #fff0f7;
  color: var(--mklf-magenta-dark);
}

.mklf .mklf-result {
  padding: 8px 0 0;
  text-align: center;
}

.mklf .mklf-done {
  margin: 0 0 16px;
  font-family: 'Montserrat', 'Lato', sans-serif;
  font-size: 20px;
  font-weight: 700;
  outline: none;
}

.mklf .mklf-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.mklf .mklf-another {
  margin-top: 18px;
  color: var(--mklf-muted);
}

.mklf .mklf-linkbtn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--mklf-link);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.mklf .mklf-closed {
  box-sizing: border-box;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px dashed var(--mklf-card-border);
  border-radius: 12px;
  background: var(--mklf-card);
  text-align: center;
  font-size: 16px;
}

.mklf-print-frame {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border: 0;
  visibility: hidden;
}

@media (min-width: 640px) {
  .mklf .mklf-card {
    padding: 28px 30px;
  }

  .mklf .mklf-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mklf .mklf-field--wide {
    grid-column: 1 / -1;
  }
}
