/* ============================================================
   EduJA — Payment Portal styles
   Matches the green/black/gold theme in css/style.css
   ============================================================ */

.pay-content { padding: 14px 12px 30px; color: #f5e7c8; }

.pay-header { text-align: center; margin-bottom: 18px; }
.pay-header h1 { color: #FDB827; font-size: 1.6rem; margin-bottom: 6px; }
.pay-header p { color: #ccc; font-size: 0.85rem; max-width: 560px; margin: 0 auto; }

/* ---- currency toggle + live calculator ---- */
.currency-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(253,184,39,0.3);
    border-radius: 16px;
    padding: 10px 14px;
    margin: 0 auto 20px;
    max-width: 640px;
}
.currency-toggle { display: flex; gap: 6px; background: #1e2a1e; border-radius: 30px; padding: 3px; }
.currency-toggle button {
    border: none; background: transparent; color: #ccc; padding: 6px 14px;
    border-radius: 30px; font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.currency-toggle button.active { background: #FDB827; color: #000; }
.fx-calc { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; flex-wrap: wrap; }
.fx-calc input {
    width: 90px; padding: 6px 10px; border-radius: 20px; border: 1px solid #3a4a3a;
    background: #1e2a1e; color: #f5e7c8; font-size: 0.8rem;
}
.fx-calc .fx-result { color: #FDB827; font-weight: bold; }
.fx-attribution { font-size: 0.65rem; color: #888; text-align: center; width: 100%; margin-top: 4px; }
.fx-attribution a { color: #999; }

/* ---- plan grid ---- */
.plan-group-title { color: #FDB827; font-size: 1.05rem; margin: 22px 0 10px; text-align: center; }
.freq-toggle { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.freq-toggle button {
    border: 1px solid #3a4a3a; background: #1e2a1e; color: #ccc; padding: 6px 16px;
    border-radius: 30px; font-size: 0.8rem; cursor: pointer;
}
.freq-toggle button.active { background: #FDB827; color: #000; border-color: #FDB827; }

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    max-width: 900px;
    margin: 0 auto 10px;
}
.plan-card {
    background: rgba(30,42,30,0.95);
    border: 1px solid rgba(253,184,39,0.3);
    border-radius: 16px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.plan-card.featured { border-color: #FDB827; box-shadow: 0 0 0 2px rgba(253,184,39,0.25); position: relative; }
.plan-card.featured::before {
    content: 'MOST POPULAR'; position: absolute; top: -10px; right: 12px;
    background: #FDB827; color: #000; font-size: 0.6rem; font-weight: bold;
    padding: 3px 10px; border-radius: 20px;
}
.plan-card h3 { color: #FDB827; font-size: 1.05rem; }
.plan-card .plan-desc { font-size: 0.78rem; color: #ccc; min-height: 34px; }
.plan-price { font-size: 1.6rem; font-weight: 800; color: #f5e7c8; }
.plan-price .plan-price-jmd { display: block; font-size: 0.72rem; color: #FDB827; font-weight: 600; }
.plan-price .plan-price-period { font-size: 0.65rem; color: #999; font-weight: 400; }
.plan-subscribe-btn {
    margin-top: auto; background: #FDB827; color: #000; border: none; padding: 10px;
    border-radius: 30px; font-weight: bold; cursor: pointer; font-size: 0.85rem;
}
.plan-subscribe-btn:hover { background: #ffce4d; }
.plan-subscribe-btn.in-cart { background: #14532d; color: #86efac; }

.onetime-card .plan-price { font-size: 1.3rem; }
.placeholder-tag {
    display: inline-block; background: #7f1d1d; color: #fca5a5; font-size: 0.6rem;
    padding: 2px 8px; border-radius: 10px; margin-top: 4px; font-weight: bold;
}

.institution-card {
    max-width: 900px; margin: 20px auto 0; background: rgba(0,0,0,0.55);
    border: 1px dashed rgba(253,184,39,0.4); border-radius: 16px; padding: 16px;
    text-align: center; font-size: 0.85rem;
}
.institution-card a { color: #FDB827; font-weight: bold; }

/* ---- cart summary ---- */
.cart-summary {
    max-width: 900px; margin: 24px auto; background: rgba(0,0,0,0.6);
    border-radius: 16px; padding: 16px; border: 1px solid rgba(253,184,39,0.3);
}
.cart-summary h3 { color: #FDB827; font-size: 1rem; margin-bottom: 10px; }
.cart-line { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #2a3a2a; font-size: 0.85rem; }
.cart-line:last-of-type { border-bottom: none; }
.cart-line-remove { background: none; border: none; color: #b91c1c; cursor: pointer; font-size: 0.75rem; }
.cart-empty-note { text-align: center; color: #999; font-size: 0.8rem; padding: 10px 0; }
.cart-total-row { display: flex; justify-content: space-between; font-weight: bold; padding-top: 10px; color: #FDB827; }
.cart-discount-row { display: flex; justify-content: space-between; font-size: 0.82rem; color: #86efac; padding-top: 6px; }

.cart-error-banner {
    display: none; max-width: 900px; margin: 0 auto 16px; background: #7f1d1d; color: #fff;
    padding: 12px 16px; border-radius: 12px; font-size: 0.85rem; text-align: center;
}

/* ---- checkout / payment methods ---- */
.checkout-section { max-width: 900px; margin: 24px auto 0; }
.checkout-section h2 { color: #FDB827; font-size: 1.2rem; margin-bottom: 10px; text-align: center; }

.method-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.method-tab {
    border: 1px solid #3a4a3a; background: #1e2a1e; color: #f5e7c8; padding: 8px 16px;
    border-radius: 30px; font-size: 0.82rem; cursor: pointer;
}
.method-tab.active { background: #FDB827; color: #000; border-color: #FDB827; }

.method-panel { display: none; background: rgba(0,0,0,0.55); border-radius: 16px; padding: 18px; }
.method-panel.active { display: block; }

.checkout-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
@media (max-width: 560px) { .checkout-contact { grid-template-columns: 1fr; } }
.checkout-contact input {
    padding: 10px 12px; border-radius: 10px; border: 1px solid #3a4a3a;
    background: #1e2a1e; color: #f5e7c8; font-size: 0.85rem; width: 100%;
}

.promo-row { display: flex; gap: 8px; margin-bottom: 4px; }
.promo-row input {
    flex: 1; padding: 10px 12px; border-radius: 10px; border: 1px solid #3a4a3a;
    background: #1e2a1e; color: #f5e7c8; font-size: 0.85rem; text-transform: uppercase;
}
.promo-row input::placeholder { text-transform: none; }
.promo-apply-btn {
    background: #1e2a1e; border: 1px solid #FDB827; color: #FDB827; padding: 0 18px;
    border-radius: 10px; font-weight: bold; cursor: pointer; font-size: 0.82rem; white-space: nowrap;
}
.promo-apply-btn:hover { background: #FDB827; color: #000; }
.promo-apply-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.promo-status { margin: 6px 0 14px; font-size: 0.78rem; display: none; }
.promo-status.success { display: block; color: #86efac; }
.promo-status.error { display: block; color: #fca5a5; }
.promo-status.info { display: block; color: #ccc; }

#paypalButtonsRegular, #paypalButtonsCard { max-width: 380px; margin: 10px auto; }
.paypal-note { text-align: center; font-size: 0.72rem; color: #999; margin-top: 6px; }

.bank-account-card {
    background: #1e2a1e; border: 1px solid #3a4a3a; border-radius: 12px;
    padding: 12px 14px; margin-bottom: 12px; font-size: 0.82rem;
}
.bank-account-card h4 { color: #FDB827; margin-bottom: 6px; }
.bank-account-card div { padding: 2px 0; display: flex; justify-content: space-between; gap: 10px; }
.bank-account-card .copy-btn {
    background: none; border: 1px solid #3a4a3a; color: #ccc; border-radius: 8px;
    font-size: 0.65rem; padding: 1px 6px; cursor: pointer; margin-left: 6px;
}

.remit-receiver-card {
    background: #1e2a1e; border: 1px solid #3a4a3a; border-radius: 12px;
    padding: 12px 14px; margin-bottom: 12px; font-size: 0.82rem;
}
.remit-receiver-card h4 { color: #FDB827; margin-bottom: 6px; }

.method-copy { font-size: 0.82rem; color: #ddd; margin-bottom: 12px; }

.confirm-field { margin-bottom: 12px; }
.confirm-field label { display: block; font-size: 0.78rem; color: #ccc; margin-bottom: 4px; }
.confirm-field input[type="text"] {
    width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid #3a4a3a;
    background: #1e2a1e; color: #f5e7c8; font-size: 0.85rem;
}
.file-upload-wrap {
    border: 1px dashed #3a4a3a; border-radius: 12px; padding: 12px; text-align: center;
    font-size: 0.78rem; color: #ccc; cursor: pointer; background: #14201480;
}
.file-upload-wrap.has-file { border-color: #FDB827; color: #FDB827; }
.file-upload-wrap input[type="file"] { display: none; }

.notify-btn {
    width: 100%; background: #006633; color: #fff; border: none; padding: 12px;
    border-radius: 30px; font-weight: bold; cursor: pointer; font-size: 0.9rem; margin-top: 6px;
}
.notify-btn:hover { background: #004d26; }
.notify-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.checkout-status { margin-top: 12px; padding: 10px; border-radius: 10px; font-size: 0.82rem; text-align: center; display: none; }
.checkout-status.success { display: block; background: #14532d; color: #86efac; }
.checkout-status.error { display: block; background: #7f1d1d; color: #fca5a5; }
.checkout-status.info { display: block; background: #1e2a1e; color: #ccc; }

/* ---- cart badge (used in top-bar on index.html) ---- */
.cart-badge-btn { position: relative; }
.cart-count-badge {
    position: absolute; top: -6px; right: -6px; background: #b91c1c; color: #fff;
    font-size: 0.62rem; font-weight: bold; border-radius: 50%; min-width: 16px; height: 16px;
    display: none; align-items: center; justify-content: center; padding: 0 3px;
}
.age-auth-row { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 18px; }
.age-auth-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: #FDB827; cursor: pointer; margin-top: 2px; }
.age-auth-row label { color: #ccc; font-size: 0.8rem; line-height: 1.4; cursor: pointer; }

.checkout-section:has(#paymentAgeAuthCheckbox:not(:checked)) #methodTabs,
.checkout-section:has(#paymentAgeAuthCheckbox:not(:checked)) .method-panel {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(40%);
  transition: opacity 0.2s ease;
}
