/* ========================================================================
   WADUHA DONATION WIZARD — MASTERCLASS DESIGN SYSTEM
   All styles consolidated here (enqueued via functions.php)
   ======================================================================== */

/* DESIGN TOKENS */
:root {
  --primary: #c0392b;
  --primary-hover: #a93226;
  --primary-light: #fdf2f0;
  --primary-glow: rgba(192, 57, 43, 0.15);
  --accent: #d4a574;
  --bg-warm: #faf7f4;
  --bg-card: #ffffff;
  --text-dark: #1a1a2e;
  --text-body: #4a4a5a;
  --text-muted: #8e8e9e;
  --border: #e8e5e1;
  --border-light: #f0ede9;
  --white: #ffffff;
  --success: #27ae60;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* GLOBAL RESET & BASE */
.waduha-wizard * { box-sizing: border-box; margin: 0; padding: 0; }
.waduha-wizard { font-family: var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ========================================================================
   STEPPER PROGRESS BAR
   ======================================================================== */
.stepper-area { max-width: 580px; width: 100%; margin: 0 auto 36px; position: relative; text-align: center; padding: 0 20px; }
.stepper-line { position: absolute; top: 20px; left: 60px; right: 60px; height: 2px; background: var(--border); z-index: 1; }
.stepper-progress { position: absolute; top: 20px; left: 60px; height: 2px; background: var(--primary); z-index: 2; transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.steps-wrapper { position: relative; z-index: 3; display: flex; justify-content: space-between; }
.step-item { background: transparent; display: flex; flex-direction: column; align-items: center; cursor: pointer; gap: 6px; }
.step-circle { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border); background: var(--white); color: var(--text-muted); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.step-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; transition: all 0.3s; letter-spacing: 0.8px; }
.step-item.active .step-circle { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }
.step-item.active .step-label { color: var(--text-dark); font-weight: 800; }
.step-item.completed .step-circle { background: var(--primary); border-color: var(--primary); color: var(--white); }
.step-item.completed .step-label { color: var(--primary); }

/* ========================================================================
   WIZARD CONTAINER
   ======================================================================== */
.main-container { display: flex; justify-content: center; padding: 0 16px 60px; font-family: var(--font); }
.donation-card {
  background: var(--bg-card);
  width: 100%; max-width: 580px;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--border-light);
}
.page-title {
  font-size: 26px; font-weight: 800; color: var(--text-dark);
  text-transform: none; margin-bottom: 8px;
  letter-spacing: -0.3px; line-height: 1.3;
}
.page-subtitle {
  font-size: 14px; color: var(--text-muted); font-weight: 500;
  margin-bottom: 28px; line-height: 1.5;
}

/* NAVIGATION BUTTONS */
.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-light); }
.btn-text {
  background: none; border: 1px solid var(--border);
  color: var(--text-body); font-size: 13px; font-weight: 700;
  text-transform: uppercase; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  padding: 12px 20px; border-radius: var(--radius);
  transition: all 0.2s; letter-spacing: 0.5px;
}
.btn-text:hover { border-color: var(--text-muted); color: var(--text-dark); }
.btn-next {
  background: var(--primary); color: var(--white);
  border: none; padding: 14px 28px;
  font-size: 13px; font-weight: 800; text-transform: uppercase;
  border-radius: var(--radius); cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.25s; letter-spacing: 0.5px;
  box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-next:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 6px 24px var(--primary-glow); }

/* ========================================================================
   STEP 1 — WELCOME / FREQUENCY
   ======================================================================== */
.hero-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 24px 0; border-radius: var(--radius); overflow: hidden; }
.hero-img { width: 100% !important; height: 200px !important; object-fit: cover !important; object-position: center !important; display: block !important; transition: transform 0.6s ease; }
.hero-grid img:hover { transform: scale(1.06); }

.toggle-wrapper { display: flex; justify-content: center; max-width: 100%; margin: 28px auto 0; gap: 14px; }
.toggle-btn {
  flex: 1; padding: 16px 0; font-size: 14px; font-weight: 700;
  text-transform: uppercase; cursor: pointer;
  border-radius: var(--radius) !important; transition: all 0.25s;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.8px;
}
.btn-monthly { background: var(--white) !important; color: var(--primary) !important; border: 2px solid var(--primary) !important; }
.btn-monthly:hover { background: var(--primary-light) !important; }
.btn-oneoff { background: var(--primary) !important; color: var(--white) !important; border: 2px solid var(--primary) !important; box-shadow: 0 4px 16px var(--primary-glow); }
.btn-oneoff:hover { background: var(--primary-hover) !important; transform: translateY(-1px); }

/* ========================================================================
   STEP 2 — FUND SELECTION
   ======================================================================== */
.mode-badge {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 24px;
  letter-spacing: 0.8px;
}
.fund-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 28px; }
.fund-option input { display: none; }
.fund-box {
  background: var(--bg-warm); border: 1.5px solid var(--border);
  padding: 16px 8px; font-size: 11px; font-weight: 700;
  color: var(--text-body); cursor: pointer; border-radius: var(--radius);
  text-transform: uppercase; transition: all 0.2s;
  min-height: 52px; display: flex; align-items: center; justify-content: center;
  text-align: center; line-height: 1.3; letter-spacing: 0.5px;
}
.fund-box:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.fund-option input:checked + .fund-box { background: var(--primary); color: var(--white); border-color: var(--primary); box-shadow: 0 4px 16px var(--primary-glow); }

/* AMOUNT SECTION */
.amount-section {
  background: var(--bg-warm); border-radius: var(--radius-lg);
  padding: 28px 24px; text-align: left; margin-top: 20px;
  border: 1px solid var(--border-light);
  animation: slideUp 0.35s ease;
}
@keyframes slideUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

.amt-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.amt-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }

/* Currency toggle — hidden since PKR only */
.curr-btn { display: none; }

.amt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.amt-option input { display: none; }
.amt-btn {
  border: 1.5px solid var(--border); padding: 14px 0; text-align: center;
  font-size: 13px; font-weight: 700; color: var(--text-body);
  border-radius: var(--radius); cursor: pointer; transition: all 0.2s;
  background: var(--white);
}
.amt-btn:hover { border-color: var(--primary); color: var(--primary); }
.amt-option input:checked + .amt-btn { background: var(--primary); color: var(--white); border-color: var(--primary); box-shadow: 0 3px 12px var(--primary-glow); }

.custom-input {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-weight: 600; font-size: 16px;
  outline: none; margin-bottom: 14px; display: none; color: var(--text-dark);
  transition: border 0.2s; background: var(--white);
}
.custom-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

.impact-box {
  background: var(--white); border-left: 3px solid var(--primary);
  padding: 14px 16px; font-size: 13px; color: var(--text-body);
  line-height: 1.5; margin-bottom: 20px; border-radius: 0 var(--radius) var(--radius) 0;
}
.impact-highlight { font-weight: 800; color: var(--primary); }

/* PRODUCT VIEW (Monthly Sponsorship packages) */
.product-list-view { display: none; margin-bottom: 24px; }
.product-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center;
  transition: border-color 0.2s;
}
.product-card:hover { border-color: var(--accent); }
.prod-details { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.prod-name { font-size: 13px; font-weight: 800; color: var(--text-dark); text-transform: uppercase; letter-spacing: 0.3px; }
.prod-price { font-size: 13px; font-weight: 700; color: var(--primary); }
.prod-desc { font-size: 11px; color: var(--text-muted); font-style: italic; }
.prod-actions { display: flex; align-items: center; gap: 10px; }
.prod-subtotal { font-size: 12px; font-weight: 800; color: var(--text-muted); min-width: 60px; text-align: right; }
.prod-subtotal.active { color: var(--primary); }

.qty-wrapper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-btn { width: 30px; height: 34px; border: none; background: var(--bg-warm); font-weight: bold; cursor: pointer; color: var(--text-body); transition: background 0.15s; font-size: 16px; }
.qty-btn:hover { background: var(--border); }
.qty-input { width: 36px; height: 34px; border: none; text-align: center; font-size: 14px; font-weight: 700; color: var(--text-dark); background: var(--white); }

.action-area { margin-top: 16px; display: flex; justify-content: center; width: 100%; }
.btn-add {
  background: var(--primary); color: var(--white);
  border: none; width: 100%; max-width: 280px; padding: 16px;
  font-size: 14px; font-weight: 800; text-transform: uppercase;
  border-radius: var(--radius); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.25s; box-shadow: 0 4px 16px var(--primary-glow);
  letter-spacing: 0.5px;
}
.btn-add:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 24px var(--primary-glow); }

/* ========================================================================
   STEP 3 — DONOR DETAILS FORM
   ======================================================================== */
.alert-strip {
  background: var(--primary-light); color: var(--primary);
  font-weight: 700; font-size: 12px; text-align: center;
  padding: 12px 16px; text-transform: uppercase;
  margin-bottom: 24px; border-radius: var(--radius);
  letter-spacing: 0.5px; border: 1px solid rgba(192, 57, 43, 0.15);
}
.summary-box {
  background: var(--bg-warm); padding: 20px;
  border-radius: var(--radius-lg); margin-bottom: 28px;
  border: 1px solid var(--border-light); text-align: left;
}
.summary-header {
  font-size: 13px; font-weight: 800; color: var(--text-dark);
  text-transform: uppercase; border-bottom: 2px solid var(--primary);
  padding-bottom: 10px; margin-bottom: 12px; letter-spacing: 0.5px;
}
.compact-item {
  display: flex; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--border-light);
  font-size: 13px; font-weight: 600; color: var(--text-body);
}
.compact-item:last-child { border-bottom: none; }
.total-row {
  display: flex; justify-content: space-between;
  margin-top: 12px; padding-top: 12px;
  border-top: 2px solid var(--border);
  font-size: 15px; font-weight: 800; color: var(--primary);
}

.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.form-group { display: flex; flex-direction: column; text-align: left; }
.form-label {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.8px;
}
.form-input {
  width: 100%; background: var(--white);
  border: 1.5px solid var(--border); padding: 13px 14px;
  border-radius: var(--radius); font-size: 14px;
  outline: none; font-weight: 500; color: var(--text-dark);
  transition: all 0.2s; font-family: var(--font);
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-input::placeholder { color: #b8b8c8; font-weight: 400; }

.check-label {
  font-size: 13px; font-weight: 600; color: var(--text-body);
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 10px; margin-top: 28px;
}
.check-label input { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }

/* ========================================================================
   STEP 4 — PAYMENT CONFIRMATION
   ======================================================================== */
.payable-box {
  background: var(--text-dark); color: var(--white);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px; box-shadow: var(--shadow-md); text-align: left;
  background-image: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 100%);
}
.pay-label { font-size: 11px; font-weight: 600; text-transform: uppercase; opacity: 0.6; margin-bottom: 4px; letter-spacing: 1px; }
.pay-amount { font-size: 30px; font-weight: 900; letter-spacing: -1px; }

.section-label {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; margin-bottom: 12px;
  display: block; text-align: left; letter-spacing: 0.8px;
}
.method-card {
  background: var(--bg-warm); border: 2px solid var(--primary);
  border-radius: var(--radius-lg); margin-bottom: 20px;
}
.method-header {
  padding: 18px 20px; display: flex; align-items: center;
  justify-content: space-between; font-weight: 700;
  font-size: 14px; color: var(--primary);
}
.radio-circle {
  width: 18px; height: 18px; border: 2px solid var(--primary);
  border-radius: 50%; position: relative; flex-shrink: 0;
}
.radio-circle::after {
  content:''; position:absolute; top:3px; left:3px;
  width:8px; height:8px; background: var(--primary); border-radius: 50%;
}

.btn-complete {
  background: var(--primary); color: var(--white);
  width: 100%; padding: 18px; border: none;
  font-size: 15px; font-weight: 800; text-transform: uppercase;
  border-radius: var(--radius); cursor: pointer;
  margin-top: 8px; transition: all 0.25s;
  box-shadow: 0 6px 20px var(--primary-glow);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  letter-spacing: 0.5px;
}
.btn-complete:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 10px 30px var(--primary-glow); }
.btn-complete:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ========================================================================
   MINI CART DROPDOWN
   ======================================================================== */
.waduha-cart-wrapper { position: relative; display: inline-block; z-index: 999999; font-family: var(--font); }
.cart-btn { position: relative; cursor: pointer; display: inline-block; }
.cart-count { position: absolute; top: -6px; right: -10px; background: var(--primary); color: var(--white); font-size: 10px; padding: 2px 6px; border-radius: 12px; font-weight: bold; line-height: 1; display: none; }
.cart-dropdown {
  position: absolute; top: 40px; right: 0; width: 340px;
  background: var(--white); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); border-radius: var(--radius-lg);
  z-index: 999999; display: none; flex-direction: column; overflow: hidden;
  text-align: left;
}
.cart-dropdown.show { display: flex; animation: fadeIn 0.25s ease-out; }
@keyframes fadeIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.mc-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border-light);
  background: var(--white); font-weight: 800; font-size: 13px;
  color: var(--text-dark); text-transform: uppercase; letter-spacing: 0.5px;
  display: flex; justify-content: space-between; align-items: center;
}
.mc-body { max-height: 300px; overflow-y: auto; background: var(--white); }
.mc-item { padding: 14px 20px; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: flex-start; font-size: 13px; }
.mc-item:last-child { border-bottom: none; }
.mc-item-title { font-weight: 700; color: var(--text-body); width: 60%; line-height: 1.3; }
.mc-item-price { font-weight: 800; color: var(--primary); }
.mc-trash-svg { color: var(--text-muted); cursor: pointer; margin-left: 10px; transition: 0.2s; }
.mc-trash-svg:hover { color: var(--primary); }
.mc-footer { background: var(--bg-warm); padding: 16px 20px; border-top: 1px solid var(--border); }
.mc-total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 14px; margin-bottom: 12px; color: var(--text-dark); }

/* Hide default Elementor WooCommerce Cart */
.elementor-widget-woocommerce-menu-cart { display: none !important; }

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 600px) {
  .donation-card { padding: 32px 20px; }
  .page-title { font-size: 22px; }
  .step-circle { width: 32px; height: 32px; font-size: 13px; }
  .step-label { font-size: 9px; letter-spacing: 0.3px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 4px; }
  .hero-img { height: 150px !important; }
  .toggle-wrapper { flex-direction: column; gap: 10px; }
  .fund-grid { grid-template-columns: 1fr; gap: 8px; }
  .amt-grid { grid-template-columns: repeat(2, 1fr); }
  .amount-section { padding: 20px 16px; }
  .form-grid { gap: 10px; }
  .col-mobile-12 { grid-column: span 12 !important; }
  .nav-row { gap: 10px; }
  .btn-text, .btn-next { padding: 12px 16px; font-size: 12px; }
  .stepper-line { left: 30px; right: 30px; }
  .stepper-progress { left: 30px; }
  .payable-box { padding: 20px; }
  .pay-amount { font-size: 24px; }
}

@media (max-width: 400px) {
  .donation-card { padding: 24px 16px; }
  .page-title { font-size: 20px; }
  .amt-grid { grid-template-columns: 1fr 1fr; }
}