/* TEAM */
/*
Developer: Dorocreate
Site: https://dorocreate.com.ng
Twitter: @dorocreate
Location: Nigeria
>> We are a creative agency helping ambitious brands build the clarity, structure, and digital experiences required to scale.<<
*/

/**
 * Polifoundation Native Donation Engine Stylesheet
 * Native donation card, amount presets, virtual account checkout modal,
 * real-time progress indicators, full viewport responsiveness (320px - 1440px),
 * and digital receipt print layout.
 */

/* Donation Engine Container */
#polif-donation-engine,
.polif-donation-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #edf2f7;
  padding: 28px 24px;
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
}

/* Presets Grid */
.polif-preset-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.polif-preset-btn {
  background: #f7f9fa;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 6px;
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.polif-preset-btn:hover {
  border-color: #27ae60;
  background: #f0faf4;
}

.polif-preset-btn.active,
.polif-preset-btn[data-amount="5000"].active {
  background: #27ae60 !important;
  color: #ffffff !important;
  border-color: #27ae60 !important;
}

/* Custom Amount Input */
.polif-custom-amount-wrapper {
  margin: 14px 0;
  position: relative;
}

.polif-custom-amount-wrapper .currency-symbol {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 600;
  color: #718096;
}

#custom-amount-input,
.custom-amount-input {
  width: 100%;
  padding: 12px 14px 12px 36px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  box-sizing: border-box;
  transition: border-color 0.2s;
  background: #fff;
  color: #2d3748;
}

#custom-amount-input:focus,
.custom-amount-input:focus {
  border-color: #27ae60;
  outline: none;
}

/* Form Fields */
.polif-input-group {
  margin-bottom: 14px;
  text-align: left;
}

.polif-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 5px;
}

.polif-input-group input[type="text"],
.polif-input-group input[type="email"],
.polif-input-group textarea,
.donor-name-input,
.donor-email-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #cbd5e0;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  background: #fff;
  color: #2d3748;
}

.polif-input-group input:focus,
.donor-name-input:focus,
.donor-email-input:focus {
  border-color: #27ae60;
  outline: none;
}

/* Checkout Button */
.polif-checkout-btn,
#polif-checkout-btn {
  width: 100%;
  margin-top: 10px;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  background: #27ae60;
  color: #ffffff;
  transition: background 0.2s ease;
  box-sizing: border-box;
  display: block;
}

.polif-checkout-btn:hover,
#polif-checkout-btn:hover {
  background: #219150;
}

.polif-checkout-btn:disabled,
#polif-checkout-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Real-Time Progress Bar */
.campaign-progress,
.gt-progress {
  width: 100%;
  height: 10px;
  background: #edf2f7;
  border-radius: 6px;
  overflow: hidden;
  margin: 12px 0 8px 0;
}

.campaign-progress .progress-bar,
.gt-progress .progress-bar {
  height: 100%;
  background: #27ae60;
  transition: width 0.5s ease-in-out;
}

.progress-label,
.gt-percent,
.percent-text {
  font-size: 13px;
  font-weight: 700;
  color: #27ae60;
}

.raised-amount {
  font-weight: 700;
  color: #2d3748;
}

/* Dynamic Checkout Modal */
.polif-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 15px;
  box-sizing: border-box;
}

.polif-modal-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 28px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  position: relative;
}

.polif-account-box {
  background: #f7fafc;
  border: 2px dashed #27ae60;
  border-radius: 8px;
  padding: 18px;
  margin: 16px 0;
  box-sizing: border-box;
}

.polif-account-number {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800;
  letter-spacing: 2px;
  color: #2d3748;
  user-select: all;
  word-break: break-all;
  margin: 6px 0;
}

.polif-copy-btn {
  background: #27ae60;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}

.polif-copy-btn:hover {
  background: #219150;
}

.polif-timer {
  font-size: 14px;
  color: #e53e3e;
  font-weight: 700;
  margin: 10px 0;
}

/* Digital Receipt */
.polif-receipt {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin-top: 20px;
}

/* Responsive Breakpoints & Viewport Audits */
@media screen and (max-width: 768px) {
  .polif-preset-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

@media screen and (max-width: 480px) {
  #polif-donation-engine,
  .polif-donation-card {
    padding: 20px 16px;
    border-radius: 10px;
  }

  .polif-preset-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .polif-preset-btn {
    padding: 10px 4px;
    font-size: 14px;
  }

  .polif-modal-content {
    padding: 20px 14px;
  }

  .polif-account-number {
    font-size: 24px;
    letter-spacing: 1px;
  }
}

/* Ultra-Compact Viewports (iPhone SE / 320px - 360px) */
@media screen and (max-width: 360px) {
  .polif-preset-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .polif-account-number {
    font-size: 20px;
  }
}

/* Print Stylesheet */
@media print {
  header,
  footer,
  nav,
  .gt-menu,
  .off-canvas-menu,
  .polif-preset-grid,
  .polif-custom-amount-wrapper,
  .polif-copy-btn,
  .polif-modal-backdrop,
  .gt-button,
  .btn,
  button {
    display: none !important;
    visibility: hidden !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .polif-receipt {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 20mm auto !important;
    width: 100% !important;
  }
}

/* Global Mobile Viewport Horizontal Overflow Protection */
@media screen and (max-width: 768px) {
  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative;
  }

  .elementor,
  .elementor-section,
  .e-con,
  .e-con-boxed,
  .e-con-inner,
  #post-90 {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   Hero Donation Card Offset & Alignment Remediation (index.html)
   ========================================================================== */
.elementor-element.elementor-element-7f666bc3 {
  --justify-content: center !important;
  --align-items: center !important;
  align-items: center !important;
  justify-content: center !important;
}

.elementor-element.elementor-element-7f666bc3 > .e-con-inner {
  align-items: center !important;
  justify-content: center !important;
}

.elementor-element.elementor-element-50edff03 {
  --padding-bottom: 0px !important;
  padding-bottom: 0px !important;
  align-self: center !important;
}

/* Desktop Hero Column Allocation: Give generous space to donation card */
@media (min-width: 1025px) {
  .elementor-element.elementor-element-50edff03 {
    --width: 48% !important;
    width: 48% !important;
    max-width: 48% !important;
  }
  .elementor-element.elementor-element-5ae0124 {
    --width: 52% !important;
    width: 52% !important;
    max-width: 52% !important;
  }
}

.elementor-element.elementor-element-5ae0124 {
  align-self: center !important;
  margin-bottom: 0 !important;
  padding-bottom: 0px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.elementor-element.elementor-element-3984a34b {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Grand, prominent hero card filling the available space generously */
.elementor-element-5ae0124 .polif-donation-card {
  padding: 38px 36px 36px 36px !important;
  max-width: 590px !important;
  width: 100% !important;
  margin: 0 auto !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.32) !important;
  box-sizing: border-box !important;
}

.elementor-element-5ae0124 .polif-donation-card .campaign-progress {
  margin: 0 0 12px 0 !important;
  height: 12px !important;
  border-radius: 8px !important;
}

.elementor-element-5ae0124 .polif-donation-card .gt-donation-info {
  margin-bottom: 20px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.elementor-element-5ae0124 .polif-donation-card .polif-preset-grid {
  margin: 18px 0 !important;
  gap: 12px !important;
}

.elementor-element-5ae0124 .polif-donation-card .polif-preset-btn {
  padding: 15px 8px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
}

.elementor-element-5ae0124 .polif-donation-card .polif-custom-amount-wrapper {
  margin: 18px 0 !important;
}

.elementor-element-5ae0124 .polif-donation-card .custom-amount-input {
  padding: 15px 18px 15px 44px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
}

.elementor-element-5ae0124 .polif-donation-card .currency-symbol {
  font-size: 20px !important;
  left: 16px !important;
}

.elementor-element-5ae0124 .polif-donation-card .polif-input-group {
  margin-bottom: 18px !important;
}

.elementor-element-5ae0124 .polif-donation-card .polif-input-group label {
  font-size: 14.5px !important;
  margin-bottom: 8px !important;
  font-weight: 600 !important;
}

.elementor-element-5ae0124 .polif-donation-card .donor-name-input,
.elementor-element-5ae0124 .polif-donation-card .donor-email-input {
  padding: 14px 16px !important;
  font-size: 15px !important;
  border-radius: 8px !important;
}

.elementor-element-5ae0124 .polif-donation-card .polif-anonymous-check {
  margin: 14px 0 20px 0 !important;
  font-size: 14.5px !important;
}

.elementor-element-5ae0124 .polif-donation-card .polif-checkout-btn {
  margin-top: 14px !important;
  padding: 18px 24px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  height: 58px !important;
}

/* ==========================================================================
   Instant Render & Anti-Lag Overrides
   Forces Elementor hero headlines, cards, and sections to render immediately
   ========================================================================== */
.elementor-invisible {
  visibility: visible !important;
  opacity: 1 !important;
}
.animated {
  animation-duration: 0.01s !important;
  animation-delay: 0s !important;
  transition-duration: 0.01s !important;
}

/* ==========================================================================
   Manual / Offline Bank Transfer Options
   ========================================================================== */
.polif-offline-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  margin-top: 10px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 8px;
  color: #334155;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.polif-offline-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}
.manual-bank-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
.manual-bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
}
.manual-bank-row:last-child {
  margin-bottom: 0;
}
.manual-bank-label {
  color: #64748b;
  font-weight: 500;
}
.manual-bank-val {
  color: #0f172a;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-copy-small {
  background: #e2e8f0;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #334155;
  transition: background 0.15s;
}
.btn-copy-small:hover {
  background: #cbd5e1;
}
