/* ==========================================================================
   DR. MAHAR KASHIF RASHEED — HOME PAGE PRO COURSES & PAYFAST CHECKOUT CSS
   Responsive mobile-first clinical design matching site emerald/slate tokens
   ========================================================================== */

.dkpc-section {
    padding: 58px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ecfdf5 55%, #f0f9ff 100%);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.dkpc-card {
    background: #ffffff;
    border: 1px solid #d1fae5;
    border-radius: 26px;
    padding: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.95fr);
    gap: 28px;
    align-items: center;
    box-shadow: 0 24px 56px -28px rgba(4, 120, 87, 0.24);
}

.dkpc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    border-radius: 9999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.dkpc-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.45rem, 2.8vw, 2.05rem);
    font-weight: 900;
    color: #090d16;
    line-height: 1.18;
    margin: 0 0 10px;
}

.dkpc-desc {
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.6;
    margin: 0 0 18px;
}

.dkpc-perks {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin: 0;
    padding: 0;
}

.dkpc-perks li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #1e293b;
}

.dkpc-perk-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d1fae5;
    color: #047857;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 900;
    flex-shrink: 0;
    margin-top: 1px;
}

.dkpc-price-box {
    background: linear-gradient(155deg, #090d16 0%, #0f172a 55%, #064e3b 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 18px 40px -18px rgba(9, 13, 22, 0.55);
}

.dkpc-price-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.dkpc-price-lbl {
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6ee7b7;
}

.dkpc-video-count {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

.dkpc-price-val {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.9rem, 3.6vw, 2.45rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.05;
}

.dkpc-price-note {
    font-size: 0.79rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0;
}

.dkpc-lock-note {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.28);
    color: #a7f3d0;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.45;
}

.dkpc-cta-btn {
    width: 100%;
    border: none;
    border-radius: 13px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.94rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(16, 185, 129, 0.36);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.dkpc-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.45);
}

.dkpc-cta-btn.is-locked {
    background: #7f1d1d;
    box-shadow: none;
    cursor: default;
}

.dkpc-payfast-sub {
    text-align: center;
    font-size: 0.73rem;
    color: #94a3b8;
    font-weight: 600;
}

/* ─── HERO BUTTON FOR PURCHASE COURSES ─── */
.btn-hero-pro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f172a, #064e3b);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.94rem;
    font-weight: 800;
    border: 1px solid rgba(52, 211, 153, 0.35);
    box-shadow: 0 12px 26px -10px rgba(6, 78, 59, 0.5);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.btn-hero-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -10px rgba(5, 150, 105, 0.48);
}

/* ─── CHECKOUT MODAL ─── */
.dkpc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 13, 22, 0.68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.dkpc-modal-overlay.is-open {
    display: flex;
}

.dkpc-modal {
    width: 100%;
    max-width: 470px;
    max-height: 92vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 28px 65px -20px rgba(9, 13, 22, 0.55);
}

.dkpc-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.dkpc-modal-head h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #090d16;
    margin: 0;
}

.dkpc-modal-close {
    border: none;
    background: #f1f5f9;
    color: #334155;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.dkpc-modal-sub {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 16px;
}

.dkpc-summary-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dkpc-sum-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.83rem;
}

.dkpc-sum-lbl { color: #64748b; font-weight: 600; }
.dkpc-sum-val { color: #0f172a; font-weight: 800; text-align: right; }

.dkpc-alert {
    padding: 10px 12px;
    border-radius: 11px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.45;
}

.dkpc-alert.err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.dkpc-alert.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.dkpc-alert.warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

.dkpc-result-card {
    border-radius: 16px;
    padding: 18px 16px;
    text-align: center;
    margin-bottom: 14px;
}

.dkpc-result-card.is-err {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.dkpc-result-ico {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 900;
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.dkpc-result-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    color: #991b1b;
    margin: 0 0 6px;
}

.dkpc-result-desc {
    font-size: 0.84rem;
    color: #7f1d1d;
    line-height: 1.5;
    margin: 0 0 10px;
    font-weight: 600;
}

.dkpc-code-pill {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 5px 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    font-weight: 700;
    color: #7f1d1d;
}

.dkpc-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.dkpc-btn-secondary {
    width: 100%;
    padding: 11px 14px;
    border-radius: 11px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

.dkpc-btn-secondary:hover {
    background: #f1f5f9;
}

.dkpc-cta-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.dkpc-field { margin-bottom: 12px; }
.dkpc-field label { display: block; font-size: 0.78rem; font-weight: 800; color: #334155; margin-bottom: 5px; }
.dkpc-input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}

.dkpc-divider {
    text-align: center;
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
    margin: 14px 0 10px;
}

.dkpc-alt-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 14px;
    border-radius: 11px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 960px) {
    .dkpc-card {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }
}

@media (max-width: 640px) {
    .dkpc-section {
        padding: 38px 0;
    }
    .dkpc-card {
        padding: 20px 15px;
        border-radius: 18px;
        gap: 18px;
    }
    .dkpc-perks {
        grid-template-columns: 1fr;
    }
    .dkpc-price-box {
        padding: 20px 16px;
        border-radius: 16px;
    }
    .dkpc-modal {
        padding: 18px 15px;
        border-radius: 18px;
    }
}
