.mf-subscribe-form {
  display: flex;
  gap: 0.5rem;
}

.mf-subscribe-form__field {
  flex: 1;
}

.mf-subscribe-form__input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid hsl(240 5.9% 85%);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background: hsl(0 0% 100%);
  color: hsl(240 10% 3.9%);
  transition: border-color 0.15s ease;
}

.mf-subscribe-form__input:focus {
  outline: 3px solid hsl(221.2 83.2% 53.3%);
  outline-offset: 2px;
  border-color: hsl(240 5.9% 10%);
}

.mf-subscribe-form__input::placeholder {
  color: hsl(240 5.3% 55%);
}

.mf-subscribe-form__btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.mf-subscribe-message {
  margin-top: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.mf-subscribe-message--success {
  background: hsl(142 76% 95%);
  color: hsl(142 76% 25%);
  border: 1px solid hsl(142 76% 80%);
}

.mf-subscribe-message--error {
  background: hsl(0 84% 95%);
  color: hsl(0 84% 30%);
  border: 1px solid hsl(0 84% 80%);
}

@media (max-width: 480px) {
  .mf-subscribe-form {
    flex-direction: column;
  }
  
  .mf-subscribe-form__btn {
    width: 100%;
    min-height: 44px;
  }
}

/* ── Dark Mode — Email Subscribe ── */
[data-theme="dark"] .mf-subscribe-form__input {
  background: #0f172a;
  color: #e2e8f0;
  border-color: #607888;
}
[data-theme="dark"] .mf-subscribe-form__input:focus {
  outline-color: #7cb8f7;
  border-color: #7cb8f7;
}
[data-theme="dark"] .mf-subscribe-form__input::placeholder {
  color: #7a8a9b;
}
[data-theme="dark"] .mf-subscribe-message--success {
  background: #064e3b;
  color: #8cf0b5;
  border-color: #065f46;
}
[data-theme="dark"] .mf-subscribe-message--error {
  background: #450a0a;
  color: #fca5a5;
  border-color: #991b1b;
}

/* MailerLite embedded form overrides */
[data-theme="dark"] .ml-embedded,
[data-theme="dark"] .ml-form-embedWrapper {
  background: transparent !important;
}
[data-theme="dark"] .ml-embedded input[type="email"],
[data-theme="dark"] .ml-embedded .form-control {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  border-color: #607888 !important;
}
[data-theme="dark"] .ml-embedded input[type="email"]:focus,
[data-theme="dark"] .ml-embedded .form-control:focus {
  border-color: #7cb8f7 !important;
  box-shadow: 0 0 0 3px rgba(124,184,247,.15) !important;
}
[data-theme="dark"] .ml-embedded label {
  color: #e2e8f0 !important;
}
[data-theme="dark"] .ml-embedded p,
[data-theme="dark"] .ml-embedded span {
  color: #a8b5c4 !important;
}
[data-theme="dark"] .ml-embedded button[type="submit"],
[data-theme="dark"] .ml-embedded .primary button {
  background: #7cb8f7 !important;
  color: #0f172a !important;
  border-color: #7cb8f7 !important;
}
[data-theme="dark"] .ml-embedded button[type="submit"]:hover,
[data-theme="dark"] .ml-embedded .primary button:hover {
  background: #a5d4fd !important;
}
/* Make sure the wrapper div doesn't get the button bg */
[data-theme="dark"] .ml-embedded .primary {
  background: transparent !important;
}
