/* ===== Yoga Plus Donation Form — Frontend Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

.ypd-wrapper { font-family:'DM Sans',sans-serif; max-width:680px; margin:0 auto 60px; padding:0 16px; }

/* NOTICE */
.ypd-notice-error {
  background:#fff3cd; border:1px solid #ffc107; border-radius:10px;
  padding:14px 18px; margin-bottom:20px; color:#856404; font-size:14px;
}

/* ── HERO ── */
.ypd-hero {
  background:linear-gradient(155deg,#1a472a 0%,#0f2d1a 60%,#1a3a2a 100%);
  border-radius:20px 20px 0 0; padding:52px 28px 68px; text-align:center; position:relative; overflow:hidden;
}
.ypd-hero::before {
  content:''; position:absolute; inset:0;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23a8d5b5' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.ypd-hero-leaves { position:absolute; top:-10px; left:-10px; opacity:.06; font-size:90px; transform:rotate(-20deg); }
.ypd-hero-logo { font-family:'Playfair Display',serif; font-size:13px; letter-spacing:6px; color:#c9a84c; text-transform:uppercase; margin-bottom:20px; position:relative; }
.ypd-hero-title { font-family:'Playfair Display',serif; font-size:clamp(1.7rem,4vw,2.8rem); color:#fff; line-height:1.25; margin-bottom:14px; position:relative; }
.ypd-hero-title em { color:#c9a84c; font-style:italic; }
.ypd-hero-sub { color:#a8d5b5; font-size:15px; font-weight:300; line-height:1.7; max-width:420px; margin:0 auto; position:relative; }

/* ── CARD ── */
.ypd-card { background:#fff; border-radius:0 0 20px 20px; box-shadow:0 20px 60px rgba(26,71,42,.1),0 4px 16px rgba(0,0,0,.06); margin-top:-36px; position:relative; }
.ypd-card-head { background:#f0e9d8; padding:26px 32px 22px; border-bottom:1px solid #e6dcc8; border-radius:0; }
.ypd-card-head h3 { font-family:'Playfair Display',serif; font-size:19px; color:#1a472a; margin:0 0 4px; }
.ypd-card-head p { color:#6b7280; font-size:13px; margin:0; }
.ypd-card-body { padding:32px; }

/* ── GRID / FIELDS ── */
.ypd-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.ypd-full { grid-column:1/-1; }
.ypd-field { display:flex; flex-direction:column; gap:6px; }
.ypd-field label { font-size:11px; font-weight:600; letter-spacing:1px; text-transform:uppercase; color:#1a472a; }
.ypd-field label span { color:#e53e3e; }
.ypd-field input, .ypd-field textarea, .ypd-field select {
  border:1.5px solid #e0d9ce; border-radius:10px; padding:11px 15px;
  font-family:'DM Sans',sans-serif; font-size:15px; color:#2c2c2c;
  background:#faf7f2; transition:all .2s; outline:none; width:100%;
}
.ypd-field input:focus,.ypd-field textarea:focus {
  border-color:#2d6a4f; background:#fff; box-shadow:0 0 0 3px rgba(45,106,79,.1);
}
.ypd-field input.ypd-err { border-color:#e53e3e !important; }
.ypd-field textarea { resize:vertical; min-height:70px; }

/* ── PILLS ── */
.ypd-pills { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.ypd-pill {
  border:1.5px solid #d1c9b8; background:#faf7f2; padding:9px 20px;
  border-radius:50px; font-size:14px; font-weight:500; color:#2c2c2c;
  cursor:pointer; transition:all .2s; font-family:'DM Sans',sans-serif;
}
.ypd-pill:hover { background:#1a472a; border-color:#1a472a; color:#fff; }
.ypd-pill.active { background:#1a472a; border-color:#1a472a; color:#fff; }
.ypd-pill-custom.active { background:#c9a84c; border-color:#c9a84c; }

/* ── DIVIDER ── */
.ypd-divider { border:none; border-top:1px dashed #e0d4c0; margin:24px 0; }

/* ── PAYPAL + NOTES ── */
#paypal-button-container { border-radius:10px; overflow:hidden; min-height:50px; }
.ypd-secure-note { text-align:center; font-size:13px; color:#6b7280; margin-bottom:14px; }
.ypd-footer-note { text-align:center; font-size:11px; color:#9ca3af; margin-top:12px; }

/* ── LOADER ── */
#ypd-loader {
  display:none; position:fixed; inset:0; background:rgba(255,255,255,.8);
  z-index:9998; align-items:center; justify-content:center; flex-direction:column; gap:14px; backdrop-filter:blur(3px);
}
#ypd-loader.show { display:flex; }
.ypd-spinner { width:46px; height:46px; border:4px solid #e0d9ce; border-top-color:#1a472a; border-radius:50%; animation:ypdSpin 1s linear infinite; }
@keyframes ypdSpin { to { transform:rotate(360deg); } }
#ypd-loader p { color:#1a472a; font-family:'Playfair Display',serif; font-size:15px; }

/* ── MODAL ── */
#ypd-modal {
  display:none; position:fixed; inset:0; background:rgba(10,20,15,.85);
  z-index:9999; align-items:center; justify-content:center; padding:16px; backdrop-filter:blur(5px);
}
#ypd-modal.show { display:flex; animation:ypdFadeIn .35s ease; }
@keyframes ypdFadeIn { from{opacity:0;transform:scale(.96)} to{opacity:1;transform:scale(1)} }
.ypd-modal-inner {
  background:#fff; border-radius:18px; max-width:500px; width:100%;
  max-height:90vh; overflow-y:auto; box-shadow:0 30px 80px rgba(0,0,0,.4);
}

/* ── SLIP INSIDE MODAL ── */
.ypd-slip-head {
  background:linear-gradient(135deg,#1a472a,#2d6a4f); padding:30px 24px 22px; text-align:center;
}
.ypd-slip-org { font-family:'Playfair Display',serif; font-size:21px; color:#c9a84c; letter-spacing:3px; }
.ypd-slip-title { color:#a8d5b5; font-size:10px; letter-spacing:4px; text-transform:uppercase; margin-top:4px; }
.ypd-checkmark { width:52px; height:52px; background:rgba(255,255,255,.15); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:14px auto 0; font-size:24px; color:#fff; }

.ypd-slip-body { padding:26px 26px 10px; }
.ypd-slip-amount { text-align:center; margin-bottom:18px; }
.ypd-slip-amount-label { font-size:10px; letter-spacing:2px; color:#9ca3af; text-transform:uppercase; }
.ypd-slip-amount-value { font-family:'Playfair Display',serif; font-size:42px; color:#1a472a; font-weight:700; margin-top:4px; }
.ypd-slip-amount-value sup { font-size:20px; vertical-align:super; }

.ypd-slip-no { background:#f0e9d8; border:1px dashed #c9b890; border-radius:8px; padding:9px 14px; text-align:center; margin-bottom:18px; font-size:13px; color:#1a472a; font-weight:600; letter-spacing:1px; }

.ypd-slip-table { width:100%; border-collapse:collapse; font-size:13px; }
.ypd-slip-table tr:nth-child(even) td { background:#f8f5f0; }
.ypd-slip-table td { padding:9px 12px; }
.ypd-slip-table td:first-child { color:#6b7280; font-size:11px; text-transform:uppercase; letter-spacing:.5px; font-weight:600; width:38%; }
.ypd-slip-table td:last-child { color:#2c2c2c; font-weight:500; }
.ypd-txn-cell { font-size:10px; word-break:break-all; color:#888 !important; }
.ypd-status-ok { color:#2d6a4f !important; font-weight:700 !important; }

.ypd-email-note { font-size:12px; color:#9ca3af; text-align:center; margin-top:16px; }

.ypd-slip-actions { display:flex; gap:10px; padding:18px 26px; border-top:1px solid #f0e9d8; }
.ypd-btn { flex:1; padding:12px; border-radius:10px; border:none; font-family:'DM Sans',sans-serif; font-size:14px; font-weight:500; cursor:pointer; transition:all .2s; }
.ypd-btn-green { background:#1a472a; color:#fff; }
.ypd-btn-green:hover { background:#2d6a4f; }
.ypd-btn-gold { background:#c9a84c; color:#fff; }
.ypd-btn-gold:hover { background:#b8923d; }

.ypd-slip-footer { text-align:center; font-size:11px; color:#9ca3af; padding:0 26px 18px; }

/* ── RESPONSIVE ── */
@media(max-width:560px){
  .ypd-grid { grid-template-columns:1fr; }
  .ypd-card-body,.ypd-card-head { padding:20px 18px; }
  .ypd-slip-actions { flex-direction:column; }
}
