/* ═══════════════════════════════════════════════════════════════════════
   Ceres skin for MailerLite embedded forms.
   Load AFTER tokens.css. We drop MailerLite's default theme CSS entirely and
   restyle their markup here — their webforms.min.js only needs the structure
   and classes, not their stylesheet. Keep the form tags/classes intact.

   Base skin  = vertical, rounded-rect fields (matches the invite page).
   .ml-ceres--inline = horizontal email + button, pill fields (landing CTA).
   ═══════════════════════════════════════════════════════════════════════ */

.ml-ceres .ml-form-embedContainer { width: 100%; }
.ml-ceres .ml-form-align-center,
.ml-ceres .ml-form-align-left,
.ml-ceres .ml-form-align-right { text-align: left; }
.ml-ceres .ml-form-embedWrapper {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  width: 100% !important;
  max-width: none !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ml-ceres .ml-form-embedBody,
.ml-ceres .ml-form-successBody { padding: 0 !important; margin: 0 !important; }
.ml-ceres .ml-form-formContent { margin: 0 !important; width: 100%; }
.ml-ceres .ml-form-fieldRow { margin: 0 0 16px 0; width: 100%; }
.ml-ceres .ml-form-fieldRow.ml-last-item { margin: 0; }
.ml-ceres .ml-field-group { width: 100%; text-align: left; }

/* labels (invite page) */
.ml-ceres .ml-field-group > label {
  display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink-soft); margin-bottom: 8px;
}

/* inputs */
.ml-ceres input[type="email"],
.ml-ceres input[type="text"] {
  width: 100%; box-sizing: border-box;
  padding: 14px 18px; border: none; border-radius: 14px;
  background: var(--paper); font-family: var(--body);
  font-size: 15px; font-weight: 500; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline);
  line-height: 1.4;
}
.ml-ceres input::placeholder { color: var(--ink-faint); }
.ml-ceres input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.ml-ceres .ml-error input { box-shadow: inset 0 0 0 1.5px var(--accent) !important; }

/* select + textarea (invite page) */
.ml-ceres select.custom-select {
  width: 100%; box-sizing: border-box;
  padding: 14px 42px 14px 18px; border: none; border-radius: 14px;
  background-color: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 15px; font-weight: 500; line-height: 1.4;
  box-shadow: inset 0 0 0 1px var(--hairline);
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3e%3cpath fill='none' stroke='%238C857F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 11px;
  cursor: pointer;
}
.ml-ceres select.custom-select:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.ml-ceres textarea.form-control {
  width: 100%; box-sizing: border-box; min-height: 92px; resize: vertical;
  padding: 14px 18px; border: none; border-radius: 14px;
  background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 15px; font-weight: 500; line-height: 1.5;
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.ml-ceres textarea.form-control::placeholder { color: var(--ink-faint); }
.ml-ceres textarea.form-control:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }

/* submit */
.ml-ceres .ml-form-embedSubmit { margin: 4px 0 0 0; width: 100%; position: relative; }
.ml-ceres button.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; box-sizing: border-box;
  padding: 15px 22px; border: none; border-radius: 100px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--body); font-size: 14px; font-weight: 600; letter-spacing: 0.005em;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, filter .2s ease;
}
.ml-ceres button.primary:hover { transform: translateY(-1px); filter: brightness(1.04); }
.ml-ceres button.loading {
  display: none; width: 100%; box-sizing: border-box;
  padding: 15px 22px; border: none; border-radius: 100px;
  background: var(--accent); cursor: default;
}
.ml-ceres button.loading .ml-form-embedSubmitLoad { display: inline-block; width: 18px; height: 18px; }
.ml-ceres button.loading .ml-form-embedSubmitLoad:after {
  content: " "; display: block; width: 10px; height: 10px; margin: 1px;
  border-radius: 50%; border: 3px solid var(--accent-ink);
  border-color: var(--accent-ink) var(--accent-ink) var(--accent-ink) transparent;
  animation: ml-ceres-spin 1s linear infinite;
}
@keyframes ml-ceres-spin { to { transform: rotate(360deg); } }

/* success state */
.ml-ceres .ml-form-successContent { text-align: left; }
.ml-ceres .ml-form-successContent h4 {
  font-family: var(--display); font-weight: 400; font-size: 24px;
  letter-spacing: -0.01em; color: var(--ink); margin: 0 0 8px 0;
}
.ml-ceres .ml-form-successContent p {
  font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0;
}

/* ── inline (horizontal) variant — landing CTA ── */
.ml-ceres--inline .ml-block-form {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start;
  justify-content: center; margin: 0;
}
.ml-ceres--inline .ml-form-formContent { flex: 1; min-width: 240px; }
.ml-ceres--inline .ml-form-fieldRow { margin: 0; }
.ml-ceres--inline input[type="email"] { border-radius: 100px; padding: 14px 20px; }
.ml-ceres--inline .ml-form-embedSubmit { margin: 0; width: auto; }
.ml-ceres--inline button.primary,
.ml-ceres--inline button.loading { width: auto; padding: 14px 22px; }
.ml-ceres--inline .ml-form-successContent { text-align: center; }
