/* ============================================
   MULTIPLY 2 — Pledge Payment Hub
   Shared design tokens & component styles
   ============================================ */

:root {
  /* Multiply 2 brand colors (sampled from logo PDF) */
  --m2-navy-darkest: #1B3D6E;
  --m2-navy:         #1F4E79;
  --m2-blue-mid:     #3A6FA5;
  --m2-blue:         #5A8CB5;
  --m2-blue-light:   #7AA3C2;
  --m2-blue-pale:    #ADC7DA;
  --m2-tan:          #C0B47C;

  /* Neutrals */
  --black:    #000000;
  --gray-900: #1a1a1a;
  --gray-800: #2d3748;
  --gray-700: #4a5568;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white:    #ffffff;

  /* States */
  --success: #15803d;
  --error:   #b91c1c;

  /* Layout */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--m2-blue-mid); }

/* ============================================
   MASTHEAD (black bar with Mariners Church logo)
   ============================================ */

.masthead {
  background: var(--black);
  color: var(--white);
  padding: 22px 32px;
  border-bottom: 1px solid #111;
}
.masthead-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-mariners {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
}
.logo-mariners-mark {
  display: block;
  flex-shrink: 0;
}
.logo-mariners-divider {
  width: 2px;
  height: 38px;
  background: rgba(255,255,255,0.7);
  border-radius: 1px;
}
.logo-mariners-text {
  font-size: 22px;
  letter-spacing: 0.005em;
  font-weight: 300;
  color: var(--white);
  white-space: nowrap;
  font-family: "Helvetica Neue", "Arial", -apple-system, BlinkMacSystemFont, sans-serif;
}
.logo-mariners-text strong {
  font-weight: 900;
  letter-spacing: 0.005em;
}
.masthead-cta {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.masthead-cta:hover { opacity: 0.7; }

@media (max-width: 600px) {
  .logo-mariners-text { font-size: 17px; }
  .logo-mariners-divider { height: 30px; }
}

/* ============================================
   PAGE LAYOUT
   ============================================ */

.page {
  min-height: calc(100vh - 76px);
  padding: 56px 24px 80px;
  background: var(--gray-50);
}
.containerCustom {
  max-width: 660px;
  margin: 0 auto;
}
.containerCustom-wide {
  max-width: 860px;
  margin: 0 auto;
}

/* ============================================
   MULTIPLY 2 BRAND BLOCK
   ============================================ */

.m2-brand {
  text-align: center;
  margin-bottom: 36px;
}
.m2-brand svg {
  display: inline-block;
}
.m2-tagline {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--m2-tan);
  font-weight: 600;
  margin-top: 14px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--m2-navy);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 16px;
}
h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--m2-navy);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 10px;
}
p {
  font-size: 16px;
  color: var(--gray-700);
  margin-bottom: 14px;
  line-height: 1.65;
}
.lead {
  font-size: 17px;
  color: var(--gray-700);
  line-height: 1.6;
}
.muted { color: var(--gray-500); }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--m2-blue-mid);
  font-weight: 700;
  margin-bottom: 8px;
}

/* ============================================
   CARD / FORM CONTAINER
   ============================================ */

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  margin-top: 28px;
}
.card-section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--gray-200);
}
.card-section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

/* ============================================
   FORMS
   ============================================ */

.form-group { margin-bottom: 18px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 100px 130px;
  gap: 12px;
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}
.label-required::after {
  content: " *";
  color: var(--error);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  font-size: 15px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-900);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder { color: var(--gray-400); }
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--m2-blue-mid);
  box-shadow: 0 0 0 3px rgba(58, 111, 165, 0.15);
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px;
  padding-right: 36px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 18px;
  font-size: 14px;
  color: var(--gray-700);
}
.checkbox-row input { margin: 0; }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--m2-navy);
  color: var(--white);
  border-color: var(--m2-navy);
}
.btn-primary:hover {
  background: var(--m2-navy-darkest);
  border-color: var(--m2-navy-darkest);
}
.btn-secondary {
  background: var(--white);
  color: var(--m2-navy);
  border-color: var(--m2-navy);
}
.btn-secondary:hover {
  background: var(--m2-blue-pale);
  color: var(--m2-navy-darkest);
}
.btn-tan {
  background: var(--m2-tan);
  color: var(--white);
  border-color: var(--m2-tan);
}
.btn-tan:hover {
  background: #a89d63;
  border-color: #a89d63;
}
.btn-link {
  background: none;
  border: none;
  color: var(--m2-blue-mid);
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 4px;
}
.btn-link:hover {
  text-decoration: underline;
  color: var(--m2-navy);
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

/* ============================================
   DASHBOARD
   ============================================ */

.dash-greeting {
  margin-bottom: 32px;
}
.dash-eyebrow {
  font-size: 13px;
  color: var(--m2-blue-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}
.dash-greeting h1 {
  font-size: 36px;
  color: var(--gray-900);
  margin: 0;
  font-weight: 700;
}

/* Hero pledge progress card */
.hero-card {
  background: linear-gradient(135deg, var(--m2-navy-darkest) 0%, var(--m2-navy) 55%, var(--m2-blue-mid) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(192,180,124,0.18) 0%, rgba(192,180,124,0) 65%);
  pointer-events: none;
}
.hero-label {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--m2-blue-pale);
  font-weight: 600;
  margin-bottom: 10px;
}
.hero-amount {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-sub {
  margin-top: 8px;
  font-size: 15px;
  color: var(--m2-blue-pale);
}

.progress-bar {
  height: 12px;
  background: rgba(255,255,255,0.18);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 24px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--m2-blue-pale) 0%, var(--m2-tan) 100%);
  border-radius: 99px;
  transition: width 0.6s ease;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 14px;
  color: var(--m2-blue-pale);
}
.progress-meta strong { color: var(--white); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.stat-label {
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 10px;
}
.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}
.stat-sub {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: space-between;
}
.action-bar-text {
  font-size: 15px;
  color: var(--gray-700);
}
.action-bar-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============================================
   PUSHPAY MOCK WIDGET
   ============================================ */

.pushpay-frame {
  max-width: 380px;
  margin: 28px auto 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}
.pushpay-frame h3 {
  margin-bottom: 18px;
  color: var(--gray-900);
}
.pushpay-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin: 12px 0 18px;
}
.pushpay-toggle button {
  background: transparent;
  border: 0;
  padding: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 4px;
  cursor: pointer;
}
.pushpay-toggle button.active {
  background: var(--m2-blue-mid);
  color: var(--white);
}
.pushpay-amount {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
}
.pushpay-amount input {
  border: none;
  padding: 6px 0;
  font-size: 16px;
  flex: 1;
}
.pushpay-amount input:focus { box-shadow: none; }
.pushpay-amount .currency {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 600;
}
.pushpay-footer {
  text-align: center;
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 14px;
  line-height: 1.5;
}

/* ============================================
   FOOTER LINK
   ============================================ */

.footer-link {
  text-align: center;
  margin-top: 48px;
  font-size: 14px;
}
.footer-link a {
  color: var(--m2-blue-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--m2-blue-pale);
  padding-bottom: 1px;
}
.footer-link a:hover { color: var(--m2-navy); border-color: var(--m2-blue-mid); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 720px) {
  .stat-grid { grid-template-columns: 1fr; }
  .hero-amount { font-size: 38px; }
}

@media (max-width: 600px) {
  .masthead { padding: 16px 18px; }
  .page { padding: 32px 16px 60px; }
  .card { padding: 24px 20px; }
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-row > .form-group { margin-bottom: 18px; }
  .form-row-3 { grid-template-columns: 1fr; gap: 0; }
  .form-row-3 > .form-group { margin-bottom: 18px; }
  .action-bar { flex-direction: column; align-items: stretch; }
  .action-bar-buttons { justify-content: stretch; }
  .action-bar-buttons .btn { flex: 1; }
  .dash-greeting h1 { font-size: 28px; }
  .hero-card { padding: 26px 22px; }
  .hero-amount { font-size: 34px; }
  .button-row { width: 100%; }
  .button-row .btn { flex: 1; }
}
