/* ============================================
   Course Pro — Frontend Styles
   Developed by Rajan Sharma
   ============================================ */

.csp-wrapper {
    --csp-bg: #f4f7fe;
    --csp-text-dark: #14182b;
    --csp-text-muted: #5b6273;
    --csp-blue: #4f5dfb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(180deg, #eef2fd 0%, #f7f9ff 60%, #e9eefb 100%);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 60px clamp(20px, 4vw, 60px) 70px;
    box-sizing: border-box;
    border-radius: 0;
}
.csp-wrapper *, .csp-wrapper *::before, .csp-wrapper *::after { box-sizing: border-box; }

/* ── Section Header ─────────────────────────── */
.csp-section-header { text-align: center; max-width: 1100px; margin: 0 auto 40px; padding: 0 10px; }
.csp-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 800; letter-spacing: 2px;
    color: #4f5dfb; margin-bottom: 14px; text-transform: uppercase;
}
.csp-eyebrow-line { width: 28px; height: 2px; background: var(--csp-blue); opacity: .5; border-radius: 2px; }
.csp-section-title {
    font-size: clamp(20px, 3.4vw, 44px); font-weight: 900; line-height: 1.15;
    color: #14182b !important; margin: 0 0 14px; letter-spacing: 0.4px;
    white-space: nowrap; word-spacing: 6px;
}
.csp-section-sub { font-size: 16px; color: #5b6273 !important; margin: 0 0 18px; line-height: 1.6; }
.csp-title-underline { width: 70px; height: 4px; background: var(--csp-blue); margin: 0 auto; border-radius: 4px; }

/* ── Grid ────────────────────────────────────── */
.csp-courses-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px; width: 100%; max-width: 1600px; margin: 0 auto;
}
.csp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.csp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.csp-cols-1 { grid-template-columns: 1fr; }

@media (max-width: 1100px) { .csp-courses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .csp-courses-grid { grid-template-columns: 1fr; } }

/* ── Card ────────────────────────────────────── */
.csp-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9faff 50%, #ffffff 100%);
    background-size: 220% 220%;
    border-radius: 18px; overflow: visible;
    box-shadow: 0 4px 18px rgba(20, 24, 43, 0.06);
    border: 1px solid rgba(20, 24, 43, 0.05);
    transition: transform .28s ease, box-shadow .28s ease, background-position .6s ease;
    display: flex; flex-direction: column;
    position: relative;
    animation: cspCardSheen 7s ease-in-out infinite;
}
.csp-card::before {
    content: "";
    position: absolute; inset: 0; border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(79,93,251,0) 0%, rgba(79,93,251,.18) 50%, rgba(79,93,251,0) 100%);
    background-size: 250% 250%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s ease;
    animation: cspBorderGlow 5s linear infinite;
}
.csp-card:hover::before { opacity: 1; }
.csp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(20, 24, 43, 0.16), 0 0 0 1px rgba(79,93,251,.08);
    background-position: 100% 100%;
}

@keyframes cspCardSheen {
    0%, 100% { background-position: 0% 0%; }
    50%      { background-position: 100% 100%; }
}
@keyframes cspBorderGlow {
    0%   { background-position: 0% 0%; }
    100% { background-position: 200% 200%; }
}
@media (prefers-reduced-motion: reduce) {
    .csp-card { animation: none; }
    .csp-card::before { animation: none; }
}

.csp-card-img-wrap {
    position: relative; height: 175px; overflow: hidden; background: #11131f;
    border-radius: 18px 18px 0 0; z-index: 1;
}
.csp-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.csp-card:hover .csp-card-img { transform: scale(1.06); }
.csp-card-img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg,#2a2d44,#11131f);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.25); font-size: 13px; font-weight: 600; letter-spacing: .5px;
}
.csp-card-img-placeholder::after { content: "No Image"; }

.csp-badge {
    position: absolute; top: 0; left: 0; z-index: 3;
    color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .5px;
    padding: 9px 16px 9px 14px; display: inline-flex; align-items: center; gap: 5px;
    border-radius: 0 0 12px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,.18);
}

/* Icon circle sits OUTSIDE the clipped image wrapper, overlapping the boundary
   between image and body — placed as a sibling, not inside the overflow:hidden box */
.csp-icon-circle {
    position: relative; margin: -24px auto 0; z-index: 5;
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; box-shadow: 0 8px 16px rgba(0,0,0,.18); border: 4px solid #fff;
}
.csp-icon-circle svg { width: 20px; height: 20px; }

/* ── Card Body ───────────────────────────────── */
.csp-card-body { background: #ffffff; padding: 8px 20px 18px; text-align: center; flex: 1; display: flex; flex-direction: column; }
.csp-card-title { font-size: 19px; font-weight: 800; color: #14182b !important; margin: 0 0 3px; }
.csp-card-subtitle { font-size: 13px; color: #5b6273 !important; margin: 0; line-height: 1.4; }
.csp-card-divider { width: 32px; height: 3px; border-radius: 3px; margin: 8px auto; opacity: .85; }

.csp-card-meta {
    display: flex; justify-content: center; gap: 22px;
    padding: 9px 0; border-top: 1px solid #eef0f7; border-bottom: 1px solid #eef0f7;
    margin-bottom: 10px;
}
.csp-meta-item { display: flex; align-items: center; gap: 7px; text-align: left; }
.csp-meta-icon { font-size: 15px; }
.csp-meta-label { display: block; font-size: 10.5px; color: #5b6273 !important; font-weight: 600; }
.csp-meta-value { display: block; font-size: 13.5px; font-weight: 800; color: #14182b !important; }

.csp-card-desc { font-size: 13px; color: #5b6273 !important; line-height: 1.5; margin: 0 0 14px; flex: 1; }

.csp-card-buttons { display: flex; gap: 8px; margin-top: auto; }
.csp-btn-outline, .csp-btn-enroll {
    flex: 1; padding: 7px 8px; border-radius: 8px; font-size: 12.5px; font-weight: 700;
    border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    text-decoration: none; transition: filter .2s ease, transform .15s ease;
}
.csp-btn-outline { background: #f3f4f8; color: #14182b !important; }
.csp-btn-outline:hover { background: #e9ebf3; color: #14182b; }
.csp-btn-no-link { cursor: default; opacity: .7; }
.csp-btn-enroll { color: #fff; }
.csp-btn-enroll:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ── Features Strip ──────────────────────────── */
.csp-features-strip {
    width: 100%; max-width: 1600px; margin: 56px auto 0; background: #fff; border-radius: 18px;
    padding: 30px 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
    box-shadow: 0 4px 18px rgba(20,24,43,.05);
}
@media (max-width: 900px) { .csp-features-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .csp-features-strip { grid-template-columns: 1fr; } }

.csp-feature-item { display: flex; align-items: flex-start; gap: 14px; }
.csp-feature-icon {
    width: 46px; height: 46px; min-width: 46px; border-radius: 50%; background: #eef1ff;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.csp-feature-item strong { display: block; font-size: 14.5px; color: #14182b; margin-bottom: 3px; }
.csp-feature-item p { margin: 0; font-size: 13px; color: #5b6273; line-height: 1.4; }

/* ── Modal ───────────────────────────────────── */
.csp-modal-overlay {
    position: fixed; inset: 0; background: rgba(15, 17, 32, 0.65); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; z-index: 99999;
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
    padding: 16px;
}
.csp-modal-overlay.csp-active { opacity: 1; visibility: visible; }

.csp-modal {
    background: #fff; border-radius: 18px; max-width: 480px; width: 100%;
    max-height: 92vh;
    display: flex; flex-direction: column;   /* KEY: flex column */
    position: relative;
    transform: translateY(20px) scale(.97); transition: transform .25s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;  /* clip rounded corners, NOT the scroll */
}
.csp-modal-overlay.csp-active .csp-modal { transform: translateY(0) scale(1); }

.csp-modal-close {
    position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; z-index: 10;
    border-radius: 50%; border: none; background: #f3f4f8; color: #5b6273;
    font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .2s ease;
}
.csp-modal-close:hover { background: #e9ebf3; }

.csp-modal-header {
    text-align: center; padding: 28px 28px 14px; flex-shrink: 0;
    background: linear-gradient(180deg, #f4f7fe 0%, #fff 100%);
    border-radius: 18px 18px 0 0;
    border-bottom: 1px solid #eef0f7;
}
.csp-modal-icon {
    width: 48px; height: 48px; border-radius: 50%; background: var(--csp-blue);
    color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px; box-shadow: 0 6px 14px rgba(79,93,251,.3);
}
.csp-modal-header h3 { margin: 0 0 3px; font-size: 20px; font-weight: 800; color: #14182b !important; }
.csp-modal-course { margin: 0; font-size: 14px; font-weight: 700; color: #4f5dfb; }
.csp-modal-fees { margin: 3px 0 0; font-size: 12.5px; color: #5b6273; }

/* Scrollable form body */
.csp-modal-body {
    overflow-y: auto; flex: 1; padding: 16px 24px 8px; min-height: 0;
}
.csp-modal-body::-webkit-scrollbar { width: 4px; }
.csp-modal-body::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

/* Sticky footer — always visible, always at bottom */
.csp-modal-footer {
    flex-shrink: 0; padding: 12px 24px 18px;
    background: #fff;
    border-top: 1px solid #eef0f7;
    display: flex; flex-direction: column; gap: 10px;
}

#csp-enroll-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.csp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 440px) { .csp-form-row { grid-template-columns: 1fr; } }

.csp-form-group { margin-bottom: 13px; }
.csp-form-group label { display: block; font-size: 12.5px; font-weight: 700; color: #14182b; margin-bottom: 5px; }
.csp-req { color: #ef4444; }
.csp-form-group input, .csp-form-group textarea {
    width: 100%; padding: 9px 12px; border: 1.5px solid #e3e6f0; border-radius: 9px;
    font-size: 13.5px; color: #14182b; font-family: inherit; box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.csp-form-group input:focus, .csp-form-group textarea:focus {
    outline: none; border-color: #4f5dfb; box-shadow: 0 0 0 3px rgba(79,93,251,.12);
}
.csp-form-group textarea { resize: vertical; min-height: 65px; }

.csp-form-response {
    padding: 10px 12px; border-radius: 9px; font-size: 13px; margin-bottom: 8px; font-weight: 600;
}
.csp-form-response.csp-success { background: #ecfdf3; color: #027a48; border: 1px solid #abefc6; }
.csp-form-response.csp-error   { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }

/* Submit button */
.csp-btn-submit {
    width: 100%; padding: 13px; border: none; border-radius: 10px;
    background: #4f5dfb !important;
    color: #fff !important;
    font-size: 14.5px; font-weight: 700; cursor: pointer;
    transition: filter .2s ease, transform .15s ease;
    display: block; text-align: center;
}
.csp-btn-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.csp-btn-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* Talk to Counsellor button */
.csp-btn-counsellor {
    width: 100%; padding: 11px; border: 2px solid #25d366; border-radius: 10px;
    background: #fff; color: #128c3e; font-size: 13.5px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: background .2s ease, color .2s ease, transform .15s ease;
    text-decoration: none;
}
.csp-btn-counsellor:hover { background: #25d366; color: #fff; transform: translateY(-1px); }
.csp-btn-counsellor svg { width: 18px; height: 18px; flex-shrink: 0; }
.csp-counsellor-phone { font-size: 12px; font-weight: 600; color: #6b7280; text-align: center; }

.csp-no-courses { text-align: center; padding: 40px; color: #5b6273; font-size: 15px; }

/* Focus visibility for accessibility */
.csp-wrapper a:focus-visible,
.csp-wrapper button:focus-visible,
.csp-modal input:focus-visible,
.csp-modal textarea:focus-visible { outline: 2px solid var(--csp-blue); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    .csp-card, .csp-card-img, .csp-modal, .csp-modal-overlay, .csp-btn-enroll, .csp-btn-outline { transition: none !important; }
}

/* ── Hidden cards (Load More) ────────────────── */
.csp-card-hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}
.csp-card-hidden.csp-reveal {
    display: flex;
    animation: cspFadeUp .45s ease forwards;
}
@keyframes cspFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Load More Button ────────────────────────── */
.csp-loadmore-wrap {
    display: flex; flex-direction: column; align-items: center;
    gap: 10px; margin: 48px auto 0; max-width: 360px;
}
.csp-lm-hint { font-size: 13px; color: #5b6273; margin: 0; }

.csp-loadmore-btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 17px 48px; font-size: 17px; font-weight: 800; letter-spacing: .3px;
    color: #fff; border: none; border-radius: 50px; cursor: pointer;
    background: linear-gradient(135deg, #4f5dfb 0%, #6c63ff 50%, #4f5dfb 100%);
    background-size: 200% auto;
    box-shadow: 0 8px 30px rgba(79,93,251,.38), 0 2px 8px rgba(79,93,251,.2);
    transition: background-position .5s ease, box-shadow .3s ease, transform .2s ease;
    min-width: 260px;
}
.csp-loadmore-btn:hover {
    background-position: right center;
    box-shadow: 0 14px 40px rgba(79,93,251,.48), 0 4px 12px rgba(79,93,251,.25);
    transform: translateY(-3px);
}
.csp-loadmore-btn:active { transform: translateY(0); }

.csp-lm-text, .csp-lm-loading { display: inline-flex; align-items: center; gap: 8px; }
.csp-lm-arrow { width: 20px; height: 20px; transition: transform .3s ease; }
.csp-loadmore-btn:hover .csp-lm-arrow { transform: translateY(3px); }

@keyframes cspSpin { to { transform: rotate(360deg); } }
.csp-spin { width: 18px; height: 18px; animation: cspSpin .7s linear infinite; }

/* ripple */
.csp-lm-ripple {
    position: absolute; inset: 0; border-radius: inherit;
    background: radial-gradient(circle, rgba(255,255,255,.25) 0%, transparent 70%);
    opacity: 0; transition: opacity .3s ease;
    pointer-events: none;
}
.csp-loadmore-btn:active .csp-lm-ripple { opacity: 1; }

/* hide button after all shown */
.csp-loadmore-btn.csp-all-shown { display: none; }

/* ── Stats Banner ─────────────────────────────── */
.csp-stats-banner {
    margin-top: 40px;
    /* Fallback color — overridden by inline style set from admin */
    background: linear-gradient(135deg, #3b4de0 0%, #5a6bff 100%);
    background-size: 300% 300%;
    animation: cspBannerShift 8s ease infinite;
    border-radius: 18px;
    padding: 38px 36px;
    box-shadow: 0 10px 40px rgba(63,82,255,.28);
    position: relative; overflow: hidden;
}
.csp-stats-banner::before {
    content: "";
    position: absolute; inset: 0; border-radius: 18px;
    background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,.09) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.06) 0%, transparent 50%);
    pointer-events: none;
}
@keyframes cspBannerShift {
    0%,100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.csp-stats-banner-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center; gap: 0; max-width: 1400px; margin: 0 auto;
}
@media (max-width: 1000px) {
    .csp-stats-banner-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
    .csp-stat-divider { display: none; }
}
@media (max-width: 560px) {
    .csp-stats-banner-inner { grid-template-columns: 1fr; }
}

.csp-stat-divider {
    width: 1px; height: 60px;
    background: rgba(255,255,255,.25);
    margin: 0 24px;
}

.csp-stat-item { display: flex; align-items: center; gap: 18px; padding: 0 10px; }

.csp-stat-icon-wrap {
    width: 56px; height: 56px; min-width: 56px;
    background: rgba(255,255,255,.15);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 1.5px solid rgba(255,255,255,.25);
    backdrop-filter: blur(4px);
    transition: background .3s ease, transform .3s ease;
}
.csp-stat-item:hover .csp-stat-icon-wrap {
    background: rgba(255,255,255,.25);
    transform: scale(1.08) rotate(-4deg);
}
.csp-stat-icon-wrap svg { width: 28px; height: 28px; }

.csp-stat-text { display: flex; flex-direction: column; gap: 4px; }
.csp-stat-title {
    font-size: 15.5px; font-weight: 800; color: #fff; line-height: 1.25;
    letter-spacing: .1px;
}
.csp-stat-sub { font-size: 12.5px; color: rgba(255,255,255,.78); line-height: 1.3; }


/* ── Fastrack Badge ──────────────────────────── */
.csp-fastrack-badge {
    display: inline-block; font-size: 10px; font-weight: 700;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff; padding: 2px 7px; border-radius: 10px;
    margin-top: 3px; letter-spacing: .3px;
}
.csp-fastrack-fees {
    display: block; font-size: 11px; font-weight: 700;
    color: #f59e0b; margin-top: 2px;
}

/* ── Detail Page Styles ──────────────────────── */
.csp-detail-page {
    font-size: 15px; line-height: 1.8; color: #374151;
    max-width: 860px; margin: 0 auto; padding: 20px 0;
}

/* ── Category Filter Tabs ────────────────────── */
.csp-cat-filter {
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center; margin-bottom: 32px;
}
.csp-cat-btn {
    padding: 9px 20px; border-radius: 30px; border: 2px solid #e3e6f0;
    background: #fff; color: #14182b; font-size: 13.5px; font-weight: 600;
    cursor: pointer; transition: all .2s ease; display: inline-flex; align-items: center; gap: 6px;
}
.csp-cat-btn:hover { border-color: #4f5dfb; color: #4f5dfb; }
.csp-cat-btn.csp-cat-active { background: var(--csp-blue); border-color: #4f5dfb; color: #fff; box-shadow: 0 4px 14px rgba(79,93,251,.3); }
.csp-cat-count { background: rgba(255,255,255,.25); border-radius: 10px; padding: 1px 7px; font-size: 11px; font-weight: 700; }
.csp-cat-btn:not(.csp-cat-active) .csp-cat-count { background: #eef1ff; color: #4f5dfb; }
.csp-cat-loading { text-align:center; padding:40px; color:#5b6273; font-size:15px; }

/* ── Coupon Field ────────────────────────────── */
.csp-coupon-wrap { margin-bottom: 13px; }
.csp-coupon-wrap label { display:block; font-size:12.5px; font-weight:700; color:#14182b; margin-bottom:5px; }
.csp-coupon-row-input { display:flex; gap:8px; }
.csp-coupon-row-input input { flex:1; padding:9px 12px; border:1.5px solid #e3e6f0; border-radius:9px; font-size:13.5px; font-family:inherit; box-sizing:border-box; text-transform:uppercase; letter-spacing:1px; }
.csp-coupon-row-input input:focus { outline:none; border-color:var(--csp-blue); box-shadow:0 0 0 3px rgba(79,93,251,.12); }
.csp-btn-apply {
    padding: 9px 18px;
    background: #4f5dfb !important;
    color: #fff !important;
    border: none;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: filter .2s ease;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.csp-btn-apply:hover { filter: brightness(1.12); }
.csp-coupon-result { margin-top:6px; padding:8px 12px; border-radius:8px; font-size:12.5px; font-weight:600; }
.csp-coupon-result.csp-success { background:#ecfdf3; color:#027a48; border:1px solid #abefc6; }
.csp-coupon-result.csp-error   { background:#fef3f2; color:#b42318; border:1px solid #fecdca; }

/* ── Testimonials ────────────────────────────── */
.csp-testimonials-section { padding: 50px 0 10px; }
.csp-testimonials-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
    max-width: 1400px; margin: 0 auto;
}
@media (max-width: 900px) { .csp-testimonials-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .csp-testimonials-grid { grid-template-columns: 1fr; } }

.csp-tcard {
    background: #fff; border-radius: 16px; padding: 22px;
    box-shadow: 0 4px 16px rgba(20,24,43,.06); border: 1px solid rgba(20,24,43,.05);
    transition: transform .25s ease, box-shadow .25s ease;
}
.csp-tcard:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(20,24,43,.12); }
.csp-tcard-top { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.csp-tavatar {
    width:44px; height:44px; min-width:44px; border-radius:50%;
    background: linear-gradient(135deg,var(--csp-blue),#8b5cf6);
    color:#fff; font-size:18px; font-weight:800;
    display:flex; align-items:center; justify-content:center;
}
.csp-tname { font-size:14.5px; font-weight:800; color:#14182b; }
.csp-tcourse { font-size:12px; color:var(--csp-blue); font-weight:600; margin-top:2px; }
.csp-tstars { margin-bottom:10px; }
.csp-star-filled { color:#f59e0b; font-size:16px; }
.csp-star-empty  { color:#d1d5db; font-size:16px; }
.csp-ttext { font-size:13.5px; color:#5b6273; line-height:1.65; margin:0; font-style:italic; }

/* ── Rating Form (shortcode) ─────────────────── */
.csp-rating-form-wrap { background:#fff; border-radius:14px; padding:28px; box-shadow:0 4px 18px rgba(20,24,43,.07); max-width:520px; margin:20px auto; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.csp-rating-form-wrap h3 { margin:0 0 16px; font-size:18px; color:#14182b; }
.csp-star-selector { display:flex; gap:6px; margin-bottom:16px; }
.csp-star-selector span { font-size:28px; cursor:pointer; color:#d1d5db; transition:color .15s; }
.csp-star-selector span.active,.csp-star-selector span:hover { color:#f59e0b; }
.csp-rf-group { margin-bottom:14px; }
.csp-rf-group label { display:block; font-size:13px; font-weight:700; margin-bottom:5px; color:#374151; }
.csp-rf-group input,.csp-rf-group textarea { width:100%; padding:9px 12px; border:1.5px solid #e3e6f0; border-radius:8px; font-size:13.5px; box-sizing:border-box; font-family:inherit; }
.csp-rf-group textarea { resize:vertical; min-height:80px; }
.csp-rf-submit { width:100%; padding:12px; background:#4f5dfb!important; color:#fff!important; border:none; border-radius:9px; font-size:14px; font-weight:700; cursor:pointer; }
.csp-rf-response { padding:10px 12px; border-radius:8px; font-size:13px; font-weight:600; margin-top:10px; }
.csp-rf-response.ok  { background:#ecfdf3; color:#027a48; border:1px solid #abefc6; }
.csp-rf-response.err { background:#fef3f2; color:#b42318; border:1px solid #fecdca; }

/* ── Mode Toggle (Inquiry / Payment) ─────────── */
.csp-mode-toggle {
    display: flex; margin: 0; border-bottom: 1px solid #eef0f7;
    flex-shrink: 0;
}
.csp-mode-btn {
    flex: 1; padding: 12px 10px; border: none; background: #f8f9ff;
    font-size: 13.5px; font-weight: 700; cursor: pointer; color: #5b6273;
    transition: all .2s ease; border-bottom: 3px solid transparent;
}
.csp-mode-btn:first-child { border-radius: 0; border-right: 1px solid #eef0f7; }
.csp-mode-btn.csp-mode-active {
    background: #fff; color: #4f5dfb;
    border-bottom-color: #4f5dfb;
}
.csp-mode-btn:hover:not(.csp-mode-active) { background: #f0f2ff; color: #4f5dfb; }

.csp-mode-info-box {
    padding: 9px 14px; border-radius: 8px; font-size: 13px;
    margin-bottom: 12px; line-height: 1.5;
}
.csp-mode-info-blue { background: #eef1ff; color: #4338ca; border: 1px solid #c7d2fe; }
.csp-mode-info-green { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

