@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ══════════════════════════════════════
   MCM ENROLL BOX — Main Container
══════════════════════════════════════ */
.mcm-enroll-box {
    font-family: 'Poppins', sans-serif;
    max-width: 820px;
    margin: 36px auto;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(102,126,234,0.15), 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid #ede9fe;
}

/* ── Top gradient banner ── */
.mcm-enroll-box::before {
    content: '';
    display: block;
    height: 6px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

/* ── Inner padding ── */
.mcm-enroll-inner {
    padding: 32px 36px 36px;
}

/* ══════════════════════════════════════
   Info Strip — 4-column grid cards
══════════════════════════════════════ */
.mcm-info-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.mcm-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #f8f7ff, #f0edff);
    border: 1px solid #e4deff;
    border-radius: 16px;
    padding: 16px 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.mcm-info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102,126,234,0.15);
}

.mcm-icon {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

.mcm-info-item small {
    display: block;
    color: #9ca3af;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 4px;
    font-weight: 500;
}

.mcm-info-item strong {
    display: block;
    color: #1a1a2e;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

/* ══════════════════════════════════════
   Instructor Line
══════════════════════════════════════ */
.mcm-instructor-line {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mcm-instructor-line strong { color: #1a1a2e; }

/* ══════════════════════════════════════
   Features Row
══════════════════════════════════════ */
.mcm-features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.mcm-feat {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #15803d;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #bbf7d0;
    white-space: nowrap;
}

/* ══════════════════════════════════════
   Enroll Button
══════════════════════════════════════ */
.mcm-enroll-btn {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 8px 24px rgba(102,126,234,0.45);
    letter-spacing: 0.3px;
}
.mcm-enroll-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(102,126,234,0.55);
}
.mcm-enroll-btn:active { transform: translateY(0); }

.mcm-full-notice {
    text-align: center;
    padding: 16px;
    background: #fff3f3;
    color: #dc2626;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid #fecaca;
}

/* ══════════════════════════════════════
   MODAL — Overlay & Content
══════════════════════════════════════ */
.mcm-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 40, 0.75);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}

.mcm-modal-content {
    background: #fff;
    border-radius: 24px;
    padding: 36px;
    max-width: 460px;
    width: 100%;
    position: relative;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 40px 100px rgba(0,0,0,0.35);
    font-family: 'Poppins', sans-serif;
    animation: mcmSlideUp 0.28s ease;
}

@keyframes mcmSlideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.mcm-modal-content h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin: 0 0 4px;
    font-weight: 700;
}

.mcm-modal-subtitle {
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 22px;
}

.mcm-close {
    position: absolute;
    top: 16px; right: 16px;
    background: #f3f4f6;
    border: none;
    width: 34px; height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    color: #6b7280;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.mcm-close:hover { background: #e5e7eb; color: #1a1a2e; }

/* ══════════════════════════════════════
   Step Indicator
══════════════════════════════════════ */
.mcm-modal-header { margin-bottom: 20px; }
.mcm-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.mcm-step {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}
.mcm-step.active { background: linear-gradient(135deg,#667eea,#764ba2); color: white; box-shadow: 0 4px 12px rgba(102,126,234,0.4); }
.mcm-step.done   { background: #22c55e; color: white; }
.mcm-step-line   { flex: 1; height: 3px; background: #e5e7eb; max-width: 70px; border-radius: 3px; transition: background 0.3s; }
.mcm-step-line.filled { background: #22c55e; }

/* ══════════════════════════════════════
   Form Fields
══════════════════════════════════════ */
.mcm-form-group { margin-bottom: 16px; }
.mcm-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.mcm-form-group input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    color: #1a1a2e;
    background: #fafafa;
}
.mcm-form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
}
.mcm-form-group small { color: #9ca3af; font-size: 11px; margin-top: 4px; display: block; }

/* ══════════════════════════════════════
   Primary Button
══════════════════════════════════════ */
.mcm-btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.25s;
    margin-top: 6px;
    box-shadow: 0 6px 18px rgba(102,126,234,0.35);
    letter-spacing: 0.2px;
}
.mcm-btn-primary:hover   { opacity: 0.92; transform: translateY(-1px); }
.mcm-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ══════════════════════════════════════
   Payment Screen
══════════════════════════════════════ */
.mcm-payment-amount {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg,#667eea,#764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 6px 0 4px;
    line-height: 1;
}

.mcm-qr-section {
    text-align: center;
    margin: 14px 0;
    padding: 14px;
    background: #fafafa;
    border-radius: 14px;
    border: 1.5px dashed #c7d2fe;
}
.mcm-qr-section p { font-size: 13px; color: #555; margin: 0 0 10px; font-weight: 600; }
.mcm-qr-img {
    width: 180px; height: 180px;
    object-fit: contain;
    border-radius: 10px;
}

.mcm-upi-id-box {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border: 1.5px solid #c4b5fd;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.mcm-upi-id-box > span { font-size: 12px; color: #7c3aed; font-weight: 600; white-space: nowrap; }
.mcm-upi-id {
    font-size: 15px;
    font-weight: 700;
    color: #5b21b6;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: all;
}
.mcm-upi-id small { font-size: 10px; color: #a78bfa; font-weight: 400; }
.mcm-upi-id:hover { color: #4c1d95; }

.mcm-upi-apps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 12px 0 4px;
}
.mcm-upi-app-btn {
    text-align: center;
    padding: 10px 4px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    color: white;
    background: #667eea;
    transition: transform 0.2s, opacity 0.2s;
    letter-spacing: 0.2px;
}
.mcm-upi-app-btn:hover { transform: translateY(-2px); opacity: 0.9; color: white; }
.mcm-upi-app-btn.gpay    { background: linear-gradient(135deg,#4285f4,#34a0ff); }
.mcm-upi-app-btn.phonepe { background: linear-gradient(135deg,#5f259f,#8b46e8); }
.mcm-upi-app-btn.paytm   { background: linear-gradient(135deg,#00baf2,#0099cc); }

/* ══════════════════════════════════════
   Success / Enrolled Confirmation
══════════════════════════════════════ */
.mcm-success-modal { text-align: center; }

.mcm-success-icon {
    font-size: 72px;
    margin-bottom: 10px;
    display: block;
    animation: mcmBounce 0.6s ease;
}
@keyframes mcmBounce {
    0%   { transform: scale(0.3); opacity: 0; }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.mcm-success-modal h3 {
    font-size: 26px;
    color: #16a34a;
    margin: 0 0 4px;
}

.mcm-success-tagline {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 20px;
}

.mcm-enrolled-card {
    background: linear-gradient(135deg, #f8f7ff, #f3f0ff);
    border: 1.5px solid #ddd6fe;
    border-radius: 16px;
    padding: 6px 18px;
    text-align: left;
    margin-bottom: 16px;
}
.mcm-enrolled-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #ede9fe;
    font-size: 13px;
    gap: 12px;
}
.mcm-enrolled-row:last-child { border-bottom: none; }
.mcm-enrolled-row span  { color: #9ca3af; white-space: nowrap; min-width: 110px; }
.mcm-enrolled-row strong { color: #1a1a2e; text-align: right; word-break: break-all; font-weight: 600; }

.mcm-success-steps {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 14px 18px;
    text-align: left;
    margin-bottom: 4px;
}
.mcm-success-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #15803d;
    padding: 5px 0;
    font-weight: 500;
    line-height: 1.4;
}

/* ══════════════════════════════════════
   Message Boxes
══════════════════════════════════════ */
.mcm-msg {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    display: none;
    font-weight: 500;
}
.mcm-msg.error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; display: block; }
.mcm-msg.success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; display: block; }

/* ══════════════════════════════════════
   Copy Toast
══════════════════════════════════════ */
.mcm-copy-tip {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: #1a1a2e;
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 9999999;
    font-family: 'Poppins', sans-serif;
    pointer-events: none;
}
.mcm-copy-tip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════
   Course List Grid (masterclass_list shortcode)
══════════════════════════════════════ */
.mcm-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    font-family: 'Poppins', sans-serif;
}
.mcm-course-card-mini {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    border: 1px solid #f3f4f6;
    transition: transform 0.2s, box-shadow 0.2s;
}
.mcm-course-card-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(102,126,234,0.18);
}
.mcm-course-card-mini img { width: 100%; height: 180px; object-fit: cover; }
.mcm-mini-body { padding: 20px; }
.mcm-mini-body h3 { font-size: 16px; color: #1a1a2e; margin: 0 0 8px; font-weight: 700; }
.mcm-mini-body p  { color: #6b7280; font-size: 13px; margin: 3px 0; }
.mcm-mini-body .mcm-btn-primary { padding: 11px; font-size: 14px; margin-top: 14px; }

/* ══════════════════════════════════════
   Prevent scroll when modal open
══════════════════════════════════════ */
.mcm-no-scroll { overflow: hidden !important; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 680px) {
    .mcm-enroll-inner   { padding: 22px 18px 26px; }
    .mcm-info-strip     { grid-template-columns: 1fr 1fr; gap: 10px; }
    .mcm-info-item      { padding: 14px 8px; }
    .mcm-icon           { font-size: 22px; }
    .mcm-enroll-btn     { font-size: 16px; padding: 16px; }
    .mcm-modal-content  { padding: 26px 20px; border-radius: 20px; }
    .mcm-payment-amount { font-size: 38px; }
    .mcm-upi-apps       { grid-template-columns: repeat(2, 1fr); }
    .mcm-features-row   { gap: 6px; }
    .mcm-feat           { font-size: 11px; padding: 6px 12px; }
}

/* ══════════════════════════════════════════════════
   2-COLUMN MASTERCLASS PAGE LAYOUT
══════════════════════════════════════════════════ */

/* ── Reset theme container constraints on masterclass pages ── */
.mcm-page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
    font-family: 'Poppins', sans-serif;
}

/* ── Hero Banner ── */
.mcm-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
}
.mcm-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,30,0.95) 0%, rgba(10,10,30,0.5) 60%, rgba(10,10,30,0.2) 100%);
}
.mcm-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 48px;
    width: 100%;
}
.mcm-hero-badge {
    display: inline-block;
    background: rgba(102,126,234,0.9);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 14px;
    text-transform: uppercase;
}
.mcm-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin: 0 0 10px;
}
.mcm-hero-instructor {
    color: rgba(255,255,255,0.75);
    font-size: 16px;
    margin: 0 0 16px;
}
.mcm-hero-instructor strong { color: white; }
.mcm-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.mcm-hero-meta span {
    background: rgba(255,255,255,0.12);
    color: white;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
}

/* ── 2-Column Grid ── */
.mcm-two-col {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 36px;
    align-items: start;
}

/* ── LEFT COLUMN ── */
.mcm-col-left { min-width: 0; }

.mcm-content-card {
    background: white;
    border-radius: 18px;
    padding: 32px 36px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f8;
}

.mcm-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0edff;
}

.mcm-course-content {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.8;
}
.mcm-course-content p  { margin-bottom: 14px; }
.mcm-course-content ul { padding-left: 20px; margin-bottom: 14px; }
.mcm-course-content li { margin-bottom: 6px; }
.mcm-course-content h2,
.mcm-course-content h3 { color: #1a1a2e; margin: 20px 0 10px; }

/* Features grid inside left column */
.mcm-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.mcm-feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    background: #f8f7ff;
    border-radius: 12px;
    border: 1px solid #ede9fe;
}
.mcm-feature-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}
.mcm-feature-item strong {
    display: block;
    font-size: 14px;
    color: #1a1a2e;
    margin-bottom: 2px;
}
.mcm-feature-item p {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* Instructor card */
.mcm-instructor-card {
    display: flex;
    align-items: center;
    gap: 16px;
}
.mcm-instructor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mcm-instructor-name { font-size: 18px; font-weight: 700; color: #1a1a2e; display: block; }
.mcm-instructor-role { font-size: 13px; color: #9ca3af; margin-top: 2px; }

/* ── RIGHT COLUMN — Sticky Enrollment Card ── */
.mcm-col-right {
    position: sticky;
    top: 24px;
}

.mcm-enroll-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(102,126,234,0.18), 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #ede9fe;
}

/* Price hero at top of card */
.mcm-card-price-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 28px 28px 24px;
    text-align: center;
    color: white;
}
.mcm-price-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 4px;
}
.mcm-price-amount {
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}
.mcm-price-sub {
    font-size: 12px;
    opacity: 0.75;
}

/* Info rows in card */
.mcm-card-info {
    padding: 0 20px;
    border-bottom: 1px solid #f0edff;
}
.mcm-card-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f9f8ff;
}
.mcm-card-info-row:last-child { border-bottom: none; }
.mcm-cir-icon { font-size: 22px; flex-shrink: 0; width: 32px; text-align: center; }
.mcm-card-info-row small { display: block; font-size: 10px; color: #9ca3af; text-transform: uppercase; letter-spacing: 1px; }
.mcm-card-info-row strong { display: block; font-size: 14px; color: #1a1a2e; font-weight: 600; }

/* Seat progress bar */
.mcm-seat-bar-wrap {
    padding: 12px 20px;
    border-bottom: 1px solid #f0edff;
}
.mcm-seat-bar {
    background: #f0edff;
    border-radius: 30px;
    height: 7px;
    overflow: hidden;
    margin-bottom: 5px;
}
.mcm-seat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 30px;
    transition: width 0.6s ease;
}
.mcm-seat-bar-wrap small { font-size: 11px; color: #e55; font-weight: 600; }

/* Checklist */
.mcm-card-checklist {
    padding: 16px 20px;
    border-bottom: 1px solid #f0edff;
}
.mcm-check-item {
    font-size: 13px;
    color: #374151;
    padding: 5px 0;
    font-weight: 500;
}

/* Card CTA */
.mcm-enroll-card .mcm-enroll-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 16px 20px 8px;
    padding: 16px;
    font-size: 17px;
    border-radius: 12px;
}
.mcm-card-guarantee {
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    padding: 0 20px 18px;
    margin: 0;
}
.mcm-enroll-card .mcm-full-notice {
    margin: 16px 20px 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .mcm-two-col {
        grid-template-columns: 1fr;
    }
    .mcm-col-right {
        position: static;
        order: -1; /* Card appears above content on mobile */
    }
    .mcm-hero-title { font-size: 28px; }
    .mcm-hero-content { padding: 28px 24px; }
}

@media (max-width: 600px) {
    .mcm-features-grid { grid-template-columns: 1fr; }
    .mcm-content-card  { padding: 22px 18px; }
    .mcm-page-wrap     { padding: 0 12px 40px; }
    .mcm-hero          { min-height: 240px; border-radius: 14px; }
    .mcm-price-amount  { font-size: 40px; }
}
