/*
 * =====================================================================
 *  FULL COUNT MINISTRIES — BLOOMERANG CRM HOSTED FORM STYLESHEET
 *
 *  UPLOAD TO:
 *  Communications → Forms → Form Settings → External CSS Stylesheet
 *
 *  ALSO UPLOAD:  FC_Navy_Lt_Blue.png  in the Organization Logo field
 *
 *  Colors: Navy #1E3A6E  |  Baby Blue #7BAFD4
 * =====================================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

/* ── Universal base ─────────────────────────────────────────────── */
* {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
}

/* ── Page ───────────────────────────────────────────────────────── */
html, body {
  background-color: #1E3A6E !important;
  margin: 0;
  padding: 0;
  color: #1A2640;
  -webkit-font-smoothing: antialiased;
}

/* ── Outer page wrapper — anything that wraps the whole page ────── */
table[width],
table[border],
div[align="center"],
center,
body > div,
body > table {
  background-color: #1E3A6E !important;
}

/* ── Header row — where the logo lives ─────────────────────────── */
body > table tr:first-child td,
body > table tr:first-child,
table tr.header td,
table tr.header,
td.header,
div.header,
#header,
.header {
  background-color: #1E3A6E !important;
  border-bottom: 5px solid #7BAFD4 !important;
  padding: 24px 40px !important;
  text-align: center !important;
}

/* ── Logo image ─────────────────────────────────────────────────── */
img {
  max-height: 90px;
  width: auto;
  display: block;
  margin: 0 auto 0 auto;
}

/* ── White form card ────────────────────────────────────────────── */
body > table td.content,
body > table td[valign="top"],
.content,
.form-content,
#content,
form,
div.form,
.donation-form {
  background-color: #FFFFFF !important;
  padding: 28px 40px !important;
  border-radius: 0 0 8px 8px;
}

/* ── All form text ──────────────────────────────────────────────── */
p, span, div, td, li {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1A2640;
  font-size: 14px;
  line-height: 1.6;
}

/* ── Section headings (Event Name, Contact Information, etc.) ───── */
h1, h2, h3, h4, h5, h6,
.section-header, .section-title,
legend {
  font-family: 'Oswald', sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #1E3A6E !important;
  border-bottom: 3px solid #7BAFD4 !important;
  padding-bottom: 10px !important;
  margin: 28px 0 16px !important;
  line-height: 1.2 !important;
}

/* ── Org name text Bloomerang shows in the header ───────────────── */
/* Override "Full Count Ministries" with the tagline styling        */
.header h1, .header h2, .header h3,
#header h1, #header h2, #header h3,
td.header h1, td.header h2, td.header h3,
body > table tr:first-child td h1,
body > table tr:first-child td h2,
body > table tr:first-child td h3,
body > table tr:first-child h1,
body > table tr:first-child h2 {
  font-family: 'Oswald', sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0.26em !important;
  text-transform: uppercase !important;
  color: #A8CCE5 !important;
  border-bottom: none !important;
  border-top: none !important;
  margin: 12px auto 0 !important;
  padding: 0 !important;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}

/* Replace the text content with the tagline via pseudo-element */
.header h1::before,
.header h2::before,
#header h1::before,
#header h2::before,
td.header h1::before,
td.header h2::before,
body > table tr:first-child td h1::before,
body > table tr:first-child td h2::before {
  content: "Making Disciples Through Baseball" !important;
  display: block !important;
  font-family: 'Oswald', sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0.26em !important;
  text-transform: uppercase !important;
  color: #A8CCE5 !important;
}

/* Hide the original "Full Count Ministries" text */
.header h1 > *,
.header h2 > *,
#header h1 > *,
#header h2 > *,
td.header h1 > *,
td.header h2 > * {
  display: none !important;
}

/* Tagline accent rule */
.header h1::after,
.header h2::after,
#header h1::after,
#header h2::after,
td.header h1::after,
td.header h2::after {
  content: "" !important;
  display: block !important;
  width: 40px !important;
  height: 3px !important;
  background: #7BAFD4 !important;
  margin: 10px auto 0 !important;
  border-radius: 2px !important;
}

/* ── Labels ─────────────────────────────────────────────────────── */
label {
  display: block !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #1E3A6E !important;
  margin-bottom: 5px !important;
}

/* ── All text inputs ────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="password"],
input[type="search"],
select,
textarea {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  color: #1A2640 !important;
  background-color: #FFFFFF !important;
  border: 1.5px solid #C2D2E3 !important;
  border-radius: 6px !important;
  padding: 10px 13px !important;
  width: 100% !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: border-color 0.18s, box-shadow 0.18s !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  border-color: #7BAFD4 !important;
  box-shadow: 0 0 0 3px rgba(123,175,212,0.22) !important;
}

input::placeholder,
textarea::placeholder {
  color: #A4B4C8 !important;
}

textarea {
  min-height: 80px !important;
  resize: vertical !important;
}

/* ── Radio button donation levels ───────────────────────────────── */
input[type="radio"] + label,
input[type="radio"] ~ label,
.donation-level label,
.amount label {
  font-family: 'Oswald', sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: #1E3A6E !important;
  background-color: #EBF4FB !important;
  border: 1.5px solid #C2D2E3 !important;
  border-radius: 6px !important;
  padding: 11px 14px !important;
  cursor: pointer !important;
  transition: all 0.18s !important;
  margin-bottom: 6px !important;
}

input[type="radio"]:checked + label,
input[type="radio"]:checked ~ label {
  background-color: #1E3A6E !important;
  border-color: #1E3A6E !important;
  color: #FFFFFF !important;
}

/* ── Checkboxes ─────────────────────────────────────────────────── */
input[type="checkbox"] {
  accent-color: #1E3A6E !important;
  width: 16px !important;
  height: 16px !important;
  cursor: pointer !important;
}

/* ── Submit button ──────────────────────────────────────────────── */
input[type="submit"],
button[type="submit"],
button.submit,
.submit,
.btn-submit,
.donate,
.btn-donate,
input[type="button"][value*="Donate"],
input[type="button"][value*="Submit"],
input[type="button"][value*="Give"] {
  font-family: 'Oswald', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #FFFFFF !important;
  background-color: #1E3A6E !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 16px 28px !important;
  width: 100% !important;
  cursor: pointer !important;
  margin-top: 12px !important;
  box-shadow: 0 4px 16px rgba(30,58,110,0.30) !important;
  transition: background-color 0.18s, transform 0.18s !important;
  display: block !important;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
  background-color: #152D57 !important;
  transform: translateY(-1px) !important;
}

/* ── Error text ─────────────────────────────────────────────────── */
.error, .field-error, .validation-error,
span.error, div.error, p.error {
  color: #B83232 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

input.error, select.error, textarea.error {
  border-color: #B83232 !important;
  box-shadow: 0 0 0 3px rgba(184,50,50,0.10) !important;
}

/* ── Footer / contact panel ─────────────────────────────────────── */
body > table tr:last-child td,
table tr.footer td,
table tr.footer,
td.footer,
div.footer,
#footer,
.footer {
  background-color: #152D57 !important;
  border-top: 4px solid #7BAFD4 !important;
  padding: 18px 40px !important;
  text-align: center !important;
  color: rgba(255,255,255,0.45) !important;
  font-size: 12px !important;
}

.footer a, .footer p, .footer span,
td.footer a, td.footer p,
div.footer a, div.footer p {
  color: #A8CCE5 !important;
  text-decoration: none !important;
}

/* ── Horizontal rules / dividers ────────────────────────────────── */
hr {
  border: none !important;
  border-top: 1.5px solid #E2EAF2 !important;
  margin: 20px 0 !important;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  form,
  .donation-form,
  .content,
  #content {
    padding: 20px 16px !important;
  }

  .header,
  #header,
  td.header {
    padding: 20px 16px !important;
  }

  .footer,
  #footer,
  td.footer {
    padding: 16px !important;
  }
}

/* ── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}