/* Mukesh Thakur AI Assistant page — sab classes "mta-" prefix ke saath (#mta ke andar) */
#mta {
    --mta-green: #2f5d46;
    --mta-green-dark: #1e4434;
    --mta-green-soft: #eef4f0;
    --mta-gold: #c9a24a;
    --mta-gold-dark: #b08a35;
    --mta-ink: #1c2b24;
    --mta-muted: #5f6b66;
    --mta-line: #e2e8e4;
    --mta-white: #ffffff;
    --mta-radius: 16px;
    color: var(--mta-ink);
    font-family: 'Poppins', sans-serif;
}

#mta *, #mta *::before, #mta *::after { box-sizing: border-box; }

/* Website ke global heading styles (gradient text / alag font) yahan lagu na hon —
   saare headings Poppins me, website ke baaki pages jaise solid color */
#mta h2, #mta h3, #mta p, #mta li, #mta summary, #mta button, #mta textarea, #mta a {
    font-family: 'Poppins', sans-serif;
}
#mta h2, #mta h3 {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    letter-spacing: normal;
    text-transform: none;
}
#mta p { margin-top: 0; }

.mta-sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
#mta .mta-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 24px; border-radius: 10px; border: 2px solid var(--mta-green);
    background: var(--mta-green); color: var(--mta-white); font-weight: 600; font-size: 15px;
    text-decoration: none; transition: background .2s, color .2s, transform .2s; cursor: pointer;
}
#mta .mta-btn:hover { background: var(--mta-green-dark); border-color: var(--mta-green-dark); transform: translateY(-1px); color: #fff; }
#mta .mta-btn-line { background: transparent; color: var(--mta-green); }
#mta .mta-btn-line:hover { background: var(--mta-green); color: #fff; }
#mta .mta-btn-gold { background: var(--mta-gold); border-color: var(--mta-gold); color: #1e2a24; }
#mta .mta-btn-gold:hover { background: var(--mta-gold-dark); border-color: var(--mta-gold-dark); color: #fff; }
#mta .mta-btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
#mta .mta-btn-ghost:hover { background: #fff; color: var(--mta-green); }

/* ---------- Hero ---------- */
.mta-hero {
    padding: 56px 0 64px;
    background:
        radial-gradient(circle at 85% 20%, rgba(201,162,74,.16), transparent 45%),
        linear-gradient(180deg, #f4f8f5 0%, #ffffff 100%);
}
.mta-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.mta-hero-copy > *:last-child { margin-bottom: 0; }

.mta-kicker {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px;
    padding: 6px 14px; border-radius: 999px; background: var(--mta-green-soft);
    color: var(--mta-green); font-weight: 600; font-size: 14px;
}
.mta-kicker i { color: var(--mta-gold); }
#mta .mta-hero-title { font-size: 40px; line-height: 1.2; font-weight: 700; margin: 0 0 18px; color: var(--mta-ink); }
#mta .mta-hero-title span { color: var(--mta-green); -webkit-text-fill-color: var(--mta-green); }
.mta-lead { font-size: 16.5px; line-height: 1.7; color: var(--mta-muted); margin: 0 0 28px; }
.mta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.mta-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--mta-muted); }
.mta-trust i { color: var(--mta-green); margin-right: 6px; }

/* ---------- Chat console ---------- */
.mta-console {
    width: 100%; max-width: 100%;
    background: var(--mta-white); border: 1px solid var(--mta-line); border-radius: 20px;
    box-shadow: 0 24px 60px rgba(30, 68, 52, .14); overflow: hidden; display: flex; flex-direction: column;
}
.mta-console-bar {
    display: flex; align-items: center; gap: 10px; padding: 16px 20px;
    background: var(--mta-green); color: #fff;
}
.mta-console-bar strong { font-size: 15px; font-weight: 600; }
.mta-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #5ee08f; box-shadow: 0 0 0 4px rgba(94,224,143,.25); }
.mta-quota { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: .95; }
.mta-pips { display: inline-flex; gap: 4px; }
.mta-pips b { width: 10px; height: 10px; border-radius: 50%; background: var(--mta-gold); display: inline-block; }
.mta-pips b.used { background: rgba(255,255,255,.3); }

.mta-thread { height: min(300px, 46vh); overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: #fafcfb; }
.mta-msg { max-width: 88%; padding: 12px 16px; border-radius: 14px; font-size: 14.5px; line-height: 1.6; }
#mta .mta-msg p { margin: 0 0 8px; position: static; }
.mta-msg p:last-child { margin-bottom: 0; }
.mta-msg ul, .mta-msg ol { margin: 4px 0 8px; padding-left: 20px; }
.mta-msg li { margin-bottom: 4px; }
.mta-msg code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.mta-msg-ai { background: var(--mta-white); border: 1px solid var(--mta-line); align-self: flex-start; border-top-left-radius: 4px; }
.mta-msg-user { background: var(--mta-green); color: #fff; -webkit-text-fill-color: #fff; align-self: flex-end; border-top-right-radius: 4px; }
/* Error/notice bubble — text <span> me hai (<p> nahi) aur class me "error"/"warn"
   nahi, kyunki website ki global form-validation CSS aise <p> ko box se bahar
   khiskaa deti hai. */
#mta .mta-msg-note {
    background: #fdf0ef; border: 1px solid #f3c9c4; align-self: flex-start;
    height: auto; min-height: 0; position: static;
}
#mta .mta-msg-note .mta-note-text {
    display: block; position: static !important; margin: 0; padding: 0;
    color: #9b2c22 !important; -webkit-text-fill-color: #9b2c22;
    font-size: 14.5px; line-height: 1.6; visibility: visible; opacity: 1; transform: none;
}

.mta-starters p { margin: 6px 0 8px; font-size: 13px; color: var(--mta-muted); }
.mta-starter-list { display: flex; flex-wrap: wrap; gap: 8px; }

#mta .mta-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--mta-green); background: var(--mta-green-soft); color: var(--mta-green);
    font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s; font-family: inherit;
}
#mta .mta-chip:hover { background: var(--mta-green); color: #fff; }
#mta .mta-chip-line { background: #fff; border-color: var(--mta-line); color: var(--mta-ink); text-align: left; border-radius: 10px; width: 100%; justify-content: flex-start; }
#mta .mta-chip-line:hover { border-color: var(--mta-green); background: var(--mta-green-soft); color: var(--mta-green); }

.mta-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.mta-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mta-green); opacity: .4; animation: mta-blink 1.2s infinite; }
.mta-typing i:nth-child(2) { animation-delay: .2s; }
.mta-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes mta-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.mta-locked { padding: 20px; border-top: 1px solid var(--mta-line); background: #fffaf0; text-align: center; }
#mta .mta-locked h3 { font-size: 17px; margin: 0 0 6px; color: var(--mta-ink); }
.mta-locked p { font-size: 14px; color: var(--mta-muted); margin: 0 0 14px; }
.mta-locked-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.mta-form { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--mta-line); background: #fff; }
#mta .mta-form textarea {
    flex: 1; resize: none; height: 48px; min-height: 48px; width: auto; margin: 0; border: 1px solid var(--mta-line); border-radius: 12px; padding: 12px 14px;
    font-size: 14.5px; font-family: inherit; line-height: 1.5; outline: none; max-height: 140px; color: var(--mta-ink);
}
.mta-form textarea:focus { border-color: var(--mta-green); box-shadow: 0 0 0 3px rgba(47,93,70,.12); }
.mta-form textarea:disabled { background: #f3f5f4; }
.mta-send {
    width: 48px; height: 48px; border-radius: 12px; border: 0; background: var(--mta-green); color: #fff;
    font-size: 16px; cursor: pointer; flex-shrink: 0; transition: background .2s;
}
.mta-send:hover { background: var(--mta-green-dark); }
.mta-send:disabled { background: #a9b8b0; cursor: not-allowed; }
.mta-send.is-busy { opacity: .6; }
.mta-form-note { margin: 0; padding: 0 16px 14px; font-size: 12px; color: var(--mta-muted); background: #fff; }
.mta-form-note i { margin-right: 4px; }

/* ---------- Sections ---------- */
.mta-section { padding: 72px 0; }
.mta-section-soft { background: #f4f8f5; }
.mta-narrow { max-width: 820px; }
.mta-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.mta-eyebrow { color: var(--mta-gold-dark); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin: 0 0 10px; }
#mta .mta-head h2 { font-size: 36px; font-weight: 700; margin: 0 0 12px; color: var(--mta-green); line-height: 1.25; }
#mta .mta-head p { color: var(--mta-muted); margin: 0; font-size: 17px; line-height: 1.6; }

.mta-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mta-card {
    background: #fff; border: 1px solid var(--mta-line); border-radius: var(--mta-radius); padding: 26px;
    transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column;
}
.mta-card:hover { box-shadow: 0 16px 40px rgba(30,68,52,.1); transform: translateY(-3px); }
.mta-card-icon {
    width: 48px; height: 48px; border-radius: 12px; background: var(--mta-green-soft); color: var(--mta-green);
    display: inline-flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px;
}
#mta .mta-card h3 { font-size: 20px; margin: 0 0 8px; font-weight: 600; color: var(--mta-ink); }
.mta-card > p { color: var(--mta-muted); font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.mta-card-prompts { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }

.mta-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mta-step { background: #fff; border-radius: var(--mta-radius); padding: 28px; border: 1px solid var(--mta-line); }
.mta-step-no { display: inline-block; font-weight: 700; font-size: 14px; color: #fff; background: var(--mta-green); border-radius: 8px; padding: 4px 10px; margin-bottom: 14px; }
#mta .mta-step h3 { font-size: 20px; margin: 0 0 8px; font-weight: 600; color: var(--mta-ink); }
.mta-step p { color: var(--mta-muted); font-size: 15px; line-height: 1.6; margin: 0 0 10px; }
.mta-text-link { color: var(--mta-green); font-weight: 600; text-decoration: none; font-size: 14.5px; }
.mta-text-link:hover { color: var(--mta-gold-dark); }

.mta-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 24px; justify-content: center; }
.mta-plan { position: relative; background: #fff; border: 1px solid var(--mta-line); border-radius: var(--mta-radius); padding: 30px; display: flex; flex-direction: column; }
.mta-plan-main { border: 2px solid var(--mta-green); box-shadow: 0 16px 40px rgba(30,68,52,.12); }
.mta-plan-badge { position: absolute; top: -13px; left: 30px; background: var(--mta-gold); color: #1e2a24; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
#mta .mta-plan h3 { font-size: 22px; margin: 0; font-weight: 700; color: var(--mta-ink); }
.mta-plan-sub { color: var(--mta-muted); margin: 4px 0 18px; font-size: 14px; }
.mta-plan ul { list-style: none; padding: 0; margin: 0 0 24px; }
.mta-plan li { padding: 7px 0; font-size: 15px; display: flex; gap: 10px; align-items: center; }
.mta-plan li i { color: var(--mta-green); width: 16px; }
.mta-plan li.is-off { color: #9aa5a0; }
.mta-plan li.is-off i { color: #c4ccc8; }
.mta-plan .mta-btn { margin-top: auto; }

.mta-faq { display: flex; flex-direction: column; gap: 12px; }
.mta-faq-item { background: #fff; border: 1px solid var(--mta-line); border-radius: 12px; padding: 0 22px; }
.mta-faq-item summary {
    list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 16px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.mta-faq-item summary::-webkit-details-marker { display: none; }
/* Arrow CSS se bana hai (icon font pe depend nahi) */
.mta-faq-arrow {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
    background: var(--mta-green-soft); position: relative; transition: background .2s;
}
.mta-faq-arrow::before {
    content: ""; position: absolute; left: 50%; top: 45%;
    width: 9px; height: 9px; border-right: 2px solid var(--mta-green); border-bottom: 2px solid var(--mta-green);
    transform: translate(-50%, -50%) rotate(45deg); transition: transform .2s, top .2s;
}
.mta-faq-item[open] .mta-faq-arrow { background: var(--mta-green); }
.mta-faq-item[open] .mta-faq-arrow::before {
    border-color: #fff; top: 55%; transform: translate(-50%, -50%) rotate(-135deg);
}
.mta-faq-item summary:hover .mta-faq-arrow { background: #dfeae3; }
.mta-faq-item[open] summary:hover .mta-faq-arrow { background: var(--mta-green-dark); }
.mta-faq-item p { margin: 0 0 18px; color: var(--mta-muted); line-height: 1.7; font-size: 15px; }

.mta-cta { padding: 70px 0 80px; }
.mta-cta-box {
    background: linear-gradient(120deg, var(--mta-green-dark), var(--mta-green));
    border-radius: 22px; padding: 44px 48px; color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
#mta .mta-cta-box h2 { font-size: 30px; margin: 0 0 8px; color: #fff; -webkit-text-fill-color: #fff; font-weight: 700; }
#mta .mta-cta-box p { margin: 0; color: rgba(255,255,255,.9); }
.mta-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .mta-hero { padding: 40px 0 48px; }
    .mta-hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .mta-hero-copy { text-align: center; }
    .mta-actions, .mta-trust { justify-content: center; }
    #mta .mta-hero-title { font-size: 32px; }
    .mta-cards, .mta-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    #mta .mta-hero-title { font-size: 28px; }
    #mta .mta-head h2 { font-size: 27px; }
    .mta-cards, .mta-steps, .mta-plans { grid-template-columns: 1fr; }
    .mta-section { padding: 56px 0; }
    .mta-thread { height: min(280px, 50vh); padding: 14px; }
    .mta-msg { max-width: 94%; font-size: 14px; }
    .mta-console { border-radius: 16px; }
    .mta-console-bar { padding: 12px 14px; }
    .mta-form { padding: 10px 12px; }
    .mta-hero-copy { text-align: left; }
    .mta-actions { flex-direction: column; }
    .mta-trust { justify-content: flex-start; gap: 10px 16px; }
    .mta-plan { padding: 24px; }
    .mta-card, .mta-step { padding: 22px; }
    .mta-cta-box { padding: 32px 24px; }
    #mta .mta-cta-box h2 { font-size: 24px; }
    #mta .mta-btn { width: 100%; }
    .mta-quota-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    #mta * { transition: none !important; animation: none !important; }
}

/* Chhoti screens par horizontal scroll kabhi na aaye */
#mta { overflow-x: hidden; }

/* Website ki global scroll-animation CSS naye <p>/<li> ko opacity:0 + neeche
   khiska kar rakhti hai (jab tak scroll script unhe "reveal" na kare). Chat ke
   jawab baad me JS se aate hain, isliye wo kabhi reveal nahi hote aur box khaali
   dikhta hai. Chat ke andar ka saara text hamesha dikhe: */
#mta .mta-thread p,
#mta .mta-thread li,
#mta .mta-thread ul,
#mta .mta-thread ol,
#mta .mta-thread strong,
#mta .mta-thread code,
#mta .mta-thread span {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
    clip-path: none !important;
    filter: none !important;
    position: static;
    color: inherit;
    -webkit-text-fill-color: currentColor;
}
#mta .mta-msg-ai { color: var(--mta-ink); }
#mta .mta-msg-user { color: #fff; }
#mta .mta-thread .mta-typing i { display: inline-block; }

/* Free questions khatam: chat box ki height same rahe (left text ke saath
   balance) — purani baat-cheet chhoti, message box chhupa, account wala panel dikhe */
#mta .mta-console.is-locked .mta-thread { height: min(170px, 30vh); }
#mta .mta-console.is-locked .mta-form,
#mta .mta-console.is-locked .mta-form-note { display: none; }
#mta .mta-console.is-locked .mta-starters { display: none; }
#mta .mta-locked { padding: 22px 20px 24px; }
#mta .mta-locked h3 { font-size: 19px !important; line-height: 1.35; font-weight: 700; }
#mta .mta-locked p { font-size: 14.5px; line-height: 1.6; }