/* Morning Brief — Subscribe Form Styles
   Works alongside any WordPress theme including Divi 5
   All classes namespaced with .mb- to avoid conflicts
*/

/* ── Wrapper ────────────────────────────────────────────────────────────── */
.mb-subscribe-wrap {
  max-width: 520px;
  margin: 0 auto;
  font-family: inherit;
}

/* ── Logo ────────────────────────────────────────────────────────────────── */
.mb-form-logo {
  text-align: center;
  margin-bottom: 20px;
}
.mb-form-logo img {
  height: 60px;
  width: auto;
}

/* ── Tagline ─────────────────────────────────────────────────────────────── */
.mb-form-tagline {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 24px;
  text-align: center;
}

/* ── Benefits grid ───────────────────────────────────────────────────────── */
.mb-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}
.mb-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #555;
  line-height: 1.4;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 6px;
}
.mb-benefit-icon {
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 1px;
}

/* ── Form ────────────────────────────────────────────────────────────────── */
.mb-subscribe-form {
  width: 100%;
}
.mb-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.mb-form-field {
  margin-bottom: 14px;
}
.mb-form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}
.mb-form-field input[type="text"],
.mb-form-field input[type="email"] {
  width: 100% !important;
  padding: 10px 13px !important;
  border: 1.5px solid #d1d5db !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  color: #111 !important;
  background: #fff !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  transition: border-color .2s, box-shadow .2s !important;
  height: auto !important;
  margin: 0 !important;
}
.mb-form-field input[type="text"]:focus,
.mb-form-field input[type="email"]:focus {
  outline: none !important;
  border-color: var(--mb-color, #1a3a6b) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mb-color, #1a3a6b) 15%, transparent) !important;
}
.mb-req { color: #dc2626; margin-left: 2px; }
.mb-opt { font-weight: 400; color: #9ca3af; font-size: 12px; }

/* ── Submit button ───────────────────────────────────────────────────────── */
.mb-submit-btn {
  display: block !important;
  width: 100% !important;
  background: var(--mb-color, #1a3a6b) !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 24px !important;
  border-radius: 6px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  margin-top: 6px !important;
  text-align: center !important;
  letter-spacing: .3px !important;
  transition: opacity .2s !important;
  box-shadow: none !important;
  text-transform: none !important;
}
.mb-submit-btn:hover {
  opacity: .88 !important;
  color: #fff !important;
}

/* ── Privacy note ────────────────────────────────────────────────────────── */
.mb-privacy-note {
  text-align: center;
  font-size: 12px !important;
  color: #9ca3af !important;
  margin-top: 12px !important;
  line-height: 1.5 !important;
}

/* ── Inline error ────────────────────────────────────────────────────────── */
.mb-form-error {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: #991b1b;
  margin-bottom: 16px;
}

/* ── Admin notice (only visible to admins) ───────────────────────────────── */
.mb-form-notice {
  background: #fef3c7;
  border: 1.5px solid #f59e0b;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: #92400e;
}

/* ── Result boxes ────────────────────────────────────────────────────────── */
.mb-result-box {
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
}
.mb-result-success {
  background: #f0fdf4;
  border: 2px solid #059669;
}
.mb-result-error {
  background: #fef2f2;
  border: 2px solid #dc2626;
}
.mb-result-icon {
  font-size: 52px;
  margin-bottom: 14px;
  line-height: 1;
}
.mb-result-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a3a6b;
  margin-bottom: 10px;
}
.mb-result-msg {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 8px;
}
.mb-result-sub {
  font-size: 13px;
  color: #6b7280;
  margin-top: 10px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .mb-benefits-grid { grid-template-columns: 1fr; }
  .mb-form-row      { grid-template-columns: 1fr; }
}
