/*donation page */

/* Brand colors */
:root{
  --brand:#0A4DA2;
  --brand2:#1DA1F2;
}

/* Section background + spacing */
.donate-section{
  padding: clamp(40px, 6vw, 80px) 0;
  width: 100%;
  background:
    radial-gradient(800px 420px at 15% 10%, rgba(29,161,242,.16), transparent 60%),
    radial-gradient(700px 380px at 90% 0%, rgba(10,77,162,.10), transparent 60%),
    linear-gradient(180deg, #ffffff, #f6f9ff);
}

/* Container */
.donate-wrap{
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 28px);
  overflow: visible;
}

/* Header */
.donate-head{
  text-align: center;
  margin-bottom: clamp(18px, 3vw, 30px);
}
.donate-kicker{
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10,77,162,.10);
  border: 1px solid rgba(10,77,162,.22);
  font-weight: 800;
  letter-spacing: .2px;
  margin: 0 0 10px;
  color: var(--brand);
}
.donate-title{
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  color: #0f172a;
}
.donate-sub{
  margin: 0 auto;
  max-width: 720px;
  opacity: .85;
  font-size: 16px;
  line-height: 1.6;
  color: #334155;
}

/* Card */
.donate-card{
  border-radius: 22px;
  padding: clamp(18px, 2.5vw, 26px);
  background: #ffffff;
  border: 1px solid #e6edf7;
  box-shadow: 0 18px 50px rgba(2, 6, 23, .08);
  overflow: visible;
  position: relative;            /* ✅ helps dropdown stack correctly */
  z-index: 1;
}
.card-title{
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: .2px;
  color: #0f172a;
}

/* Amount grid */
.amount-grid--desc{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 900px){
  .amount-grid--desc{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px){
  .amount-grid--desc{ grid-template-columns: 1fr; }
}

.amount--desc{
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display:block;
  position: relative;
}
.amount--desc input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.amount-box{
  display:flex;
  flex-direction:column;
  gap: 6px;
  padding: 14px 14px;
  border-radius: 18px;
  background: #f5f8ff;
  border: 1px solid #dbeafe;
  transition: .25s ease;
  min-height: 86px;
}
.amount--desc:hover .amount-box{
  transform: translateY(-2px);
  background: #eef5ff;
}
.amt{
  font-weight: 900;
  font-size: 16px;
  color: #0f172a;
}
.amt-desc{
  font-size: 12.5px;
  line-height: 1.25;
  color: rgba(15,23,42,.75);
}
.amount--desc input:checked + .amount-box{
  border-color: rgba(10,77,162,.55);
  box-shadow: 0 0 0 5px rgba(10,77,162,.12);
  background: linear-gradient(135deg, rgba(10,77,162,.10), rgba(29,161,242,.08));
}

/* Form rows */
.field-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 720px){
  .field-row{ grid-template-columns: 1fr; }
}

/* Fields */
.field{
  display:flex;
  flex-direction:column;
  gap: 7px;
  font-size: 13px;
  color: #0f172a;
  position: relative;
  z-index: 50;                   /* ✅ keep field above backgrounds */
}

/* Inputs */
.field input,
.field select,
.field textarea{
  width: 100%;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  padding: 12px 12px;
  outline: none;
  transition: .2s ease;

  /* ✅ prevent Elementor/theme from disabling clicks */
  pointer-events: auto !important;
}

.field textarea{
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: rgba(29,161,242,.65);
  box-shadow: 0 0 0 4px rgba(29,161,242,.14);
}

/* Custom amount prefix */
.input-wrap{ position:relative; }
.prefix{
  position:absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity:.75;
  font-weight: 800;
  color:#0f172a;
  pointer-events:none;
}
.input-wrap input{ padding-left: 28px; }

/* Make sure the select is a real native dropdown (not hidden/styled away) */
.field select{
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  -moz-appearance: menulist !important;

  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;

  cursor: pointer !important;
  position: relative !important;
  z-index: 9999 !important;
  transform: translateZ(0);
}

.field select option{
  background: #ffffff !important;
  color: #0f172a !important;
}

.field select::-ms-expand{ display:block; }

.donate-card *{
  -webkit-tap-highlight-color: transparent;
}

/* Honor section */
.honor-wrap{ margin-top: 10px; }
.honor-check{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.check{
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  margin: 12px 0 10px;
  font-size:14px;
  color:#0f172a;
}

/* custom checkbox */
.fake-box{
  width:18px;
  height:18px;
  border-radius:4px;
  border:2px solid var(--brand);
  display:inline-block;
  position:relative;
  flex:0 0 auto;
}
.honor-check:checked + .check .fake-box{ background: var(--brand); }
.honor-check:checked + .check .fake-box::after{
  content:"";
  position:absolute;
  left:5px;
  top:2px;
  width:5px;
  height:9px;
  border:2px solid #fff;
  border-top:0;
  border-left:0;
  transform: rotate(45deg);
}

/* Honor Name ALWAYS visible */
.honor-box{
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
  margin-top: 8px;
  margin-bottom: 18px;
  transition: none !important;
}
.honor-check:checked ~ .honor-box{
  border: 1px solid rgba(10,77,162,.18);
  background: rgba(10,77,162,.04);
  border-radius: 16px;
  padding: 12px;
}

/* Button */
.donate-btn{
  width: 100%;
  border: 0;
  cursor: pointer;
  border-radius: 18px;
  padding: 14px 16px;
  font-weight: 900;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 18px 40px rgba(2, 6, 23, .14);
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  transition: .25s ease;
}
.donate-btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.02);
}

/* CyberSource embedded checkout containers */
.ssmc-card-donation .ssmc-payment-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  margin-top: 22px;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: #f8fbff;
}

.ssmc-card-donation .ssmc-payment-area[hidden] {
  display: none !important;
}

.ssmc-card-donation .ssmc-payment-buttons,
.ssmc-card-donation .ssmc-payment-screen {
  width: 100%;
  min-width: 0;
}

.ssmc-card-donation .ssmc-payment-heading {
  margin: 0;
  color: #0b1f44;
  font-size: 18px;
  line-height: 1.4;
}

.ssmc-card-donation .ssmc-payment-screen {
  min-height: 180px;
}

@media (max-width: 600px) {
  .ssmc-card-donation .ssmc-payment-area {
    padding: 12px;
    gap: 12px;
  }
}

/* Fineprint */
.fineprint{
  margin: 12px 0 0;
  font-size: 12px;
  opacity: .72;
  line-height: 1.5;
  color:#475569;
}

/* Placeholders */
input::placeholder,
textarea::placeholder{
  font-size: 15px;
  font-weight: 600;
  color: #6b7280;
  opacity: 1;
}
/* Fix duplicate donation type dropdown */

.donate-section .select2,
.donate-section .select2-container,
.donate-section .nice-select,
.donate-section .choices,
.donate-section .ts-wrapper {
  display: none !important;
}

.donate-section .field select {
  display: block !important;
  width: 100% !important;
  height: 48px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  padding: 12px 44px 12px 12px !important;
  cursor: pointer !important;
  position: relative;
  z-index: 2;
}
