/* Nimkar Guruji Academy - public pages and student portal. Scoped under .ac */
.ac {
    --ac-maroon: #7a1f1f;
    --ac-maroon-dk: #561313;
    --ac-gold: #c9a961;
    --ac-gold-dk: #9c7c35;
    --ac-cream: #fbf5e9;
    --ac-cream-2: #f3e8d2;
    --ac-ink: #2b2420;
    --ac-muted: #6b5d4f;
    --ac-ok: #2e7d32;
    --ac-warn: #b26a00;
    --ac-bad: #c62828;
    --ac-radius: 14px;
    font-family: 'Mukta', 'Noto Sans Devanagari', system-ui, sans-serif;
    font-size: 18px;
    line-height: 1.65;
    color: var(--ac-ink);
    background: var(--ac-cream);
    padding-top: 92px;
    min-height: 70vh;
}
.ac * { box-sizing: border-box; }
.ac h1, .ac h2, .ac h3 { font-family: 'Tiro Devanagari Marathi', 'Mukta', serif; color: var(--ac-maroon); line-height: 1.3; margin: 0 0 .5em; font-weight: 400; }
.ac h1 { font-size: clamp(30px, 6vw, 46px); }
.ac h2 { font-size: clamp(25px, 4.5vw, 34px); }
.ac h3 { font-size: 22px; }
.ac p { margin: 0 0 1em; }
.ac a { color: var(--ac-maroon); }
.ac-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.ac-narrow { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.ac-section { padding: 44px 0; }
.ac-section-alt { background: #fff; border-top: 1px solid var(--ac-cream-2); border-bottom: 1px solid var(--ac-cream-2); }
.ac-center { text-align: center; }
.ac-muted { color: var(--ac-muted); }
.ac-small { font-size: 15px; }
.ac-lotus { width: 74px; height: 44px; color: var(--ac-gold); display: block; margin: 0 auto 8px; }
.ac-wordmark { font-family: 'Kalam', 'Tiro Devanagari Marathi', serif; font-weight: 700; color: var(--ac-maroon); font-size: clamp(34px, 7vw, 54px); line-height: 1.1; }
.ac-tagline { color: var(--ac-gold-dk); font-size: 18px; letter-spacing: .3px; }

/* Hero */
.ac-hero { background: radial-gradient(circle at 80% 10%, rgba(201,169,97,.25), transparent 45%), linear-gradient(160deg, #fff8ea 0%, var(--ac-cream) 60%, var(--ac-cream-2) 100%); padding: 38px 0 46px; border-bottom: 3px solid var(--ac-gold); }
.ac-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.ac-hero h1 { margin-top: 8px; }
.ac-hero .ac-lead { font-size: 20px; color: var(--ac-ink); }
@media (max-width: 860px) { .ac-hero-grid { grid-template-columns: 1fr; } }

/* Buttons */
.ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 24px; border-radius: 30px; font-size: 18px; font-weight: 600;
    text-decoration: none !important; border: 2px solid var(--ac-maroon); cursor: pointer; transition: transform .1s, background .2s; font-family: inherit; line-height: 1.2; }
.ac-btn:active { transform: scale(.98); }
.ac-btn-primary { background: var(--ac-maroon); color: #fff !important; }
.ac-btn-primary:hover { background: var(--ac-maroon-dk); }
.ac-btn-gold { background: var(--ac-gold); border-color: var(--ac-gold); color: #2b1a00 !important; }
.ac-btn-ghost { background: transparent; color: var(--ac-maroon) !important; }
.ac-btn-wa { background: #25d366; border-color: #25d366; color: #fff !important; }
.ac-btn-block { width: 100%; }
.ac-btn-sm { min-height: 40px; padding: 7px 16px; font-size: 15px; }
.ac-btn[disabled], .ac-btn.disabled { opacity: .5; pointer-events: none; }
.ac-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* Cards */
.ac-card { background: #fff; border: 1px solid var(--ac-cream-2); border-radius: var(--ac-radius); padding: 20px; box-shadow: 0 6px 22px rgba(122,31,31,.06); }
.ac-card + .ac-card { margin-top: 16px; }
.ac-card-gold { border: 2px solid var(--ac-gold); background: linear-gradient(180deg, #fffdf6, #fff); }
.ac-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.ac-course-card { display: flex; flex-direction: column; }
.ac-course-card .ac-type { font-size: 14px; font-weight: 600; color: var(--ac-gold-dk); text-transform: uppercase; letter-spacing: .5px; }
.ac-course-card h3 { margin: 6px 0 4px; }
.ac-course-card .ac-meta { font-size: 16px; color: var(--ac-muted); margin: 6px 0 10px; }
.ac-course-card .ac-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed var(--ac-cream-2); }
.ac-badge { display: inline-block; padding: 2px 10px; border-radius: 14px; font-size: 14px; font-weight: 600; background: var(--ac-cream-2); color: var(--ac-maroon); }
.ac-badge-ok { background: #e8f5e9; color: var(--ac-ok); }
.ac-badge-warn { background: #fff3e0; color: var(--ac-warn); }
.ac-badge-bad { background: #ffebee; color: var(--ac-bad); }

/* Price, seats */
.ac-price { font-size: 24px; font-weight: 700; color: var(--ac-maroon); }
.ac-price-big { font-size: 34px; }
.ac-price-old { color: var(--ac-muted); font-size: 17px; margin-left: 4px; }
.ac-free { color: var(--ac-ok); }
.ac-seats { font-size: 15px; font-weight: 600; color: var(--ac-ok); }
.ac-seats-low { color: var(--ac-warn); }
.ac-seats-full { color: var(--ac-bad); }

/* Seminar card + countdown */
.ac-seminar-card { background: var(--ac-maroon); color: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 14px 40px rgba(86,19,19,.25); position: relative; overflow: hidden; }
.ac-seminar-card h2, .ac-seminar-card h3 { color: #f6e3ae; }
.ac-seminar-card .ac-when { font-size: 21px; font-weight: 600; margin: 4px 0 12px; }
.ac-seminar-card .ac-lotus { position: absolute; right: -10px; top: -6px; width: 120px; height: 70px; opacity: .18; color: #f6e3ae; }
.ac-countdown { display: flex; align-items: baseline; gap: 4px 6px; flex-wrap: wrap; margin: 10px 0 16px; }
.ac-countdown .ac-cd { font-size: 30px; font-weight: 700; min-width: 42px; text-align: center; background: rgba(255,255,255,.12); border-radius: 8px; padding: 0 6px; }
.ac-countdown small { font-size: 14px; margin-right: 8px; opacity: .85; }
.ac-countdown-label { width: 100%; font-size: 15px; opacity: .85; }
.ac-card .ac-countdown .ac-cd { background: var(--ac-cream-2); color: var(--ac-maroon); }

/* Lists */
.ac-ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ac-ticks li { padding: 6px 0 6px 32px; position: relative; }
.ac-ticks li::before { content: '✓'; position: absolute; left: 4px; top: 6px; color: var(--ac-ok); font-weight: 700; }
.ac-syllabus h3 { font-size: 20px; margin-top: 14px; }
.ac-syllabus ul { padding-left: 22px; }
.ac-syllabus li { margin: 4px 0; }

/* Batch rows */
.ac-batch { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--ac-cream-2); }
.ac-batch:first-child { border-top: 0; }
.ac-batch .ac-batch-when { font-weight: 600; }
.ac-batch .ac-batch-side { text-align: right; }
@media (max-width: 600px) { .ac-batch { grid-template-columns: 1fr; } .ac-batch .ac-batch-side { text-align: left; } }
.ac-pick { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 2px solid var(--ac-cream-2); border-radius: 12px; margin: 8px 0; cursor: pointer; background: #fff; }
.ac-pick input { width: 22px; height: 22px; margin-top: 4px; accent-color: var(--ac-maroon); }
.ac-pick:has(input:checked) { border-color: var(--ac-maroon); background: #fffaf3; }

/* Forms */
.ac-form label { display: block; font-weight: 600; margin: 14px 0 6px; }
.ac-input, .ac-form input[type=text], .ac-form input[type=tel], .ac-form input[type=email], .ac-form input[type=number], .ac-form select, .ac-form textarea {
    width: 100%; font-size: 19px; padding: 12px 14px; border: 2px solid #d9c8a5; border-radius: 10px; background: #fff; font-family: inherit; color: var(--ac-ink); min-height: 52px; }
.ac-form input:focus, .ac-form select:focus, .ac-form textarea:focus { outline: none; border-color: var(--ac-maroon); box-shadow: 0 0 0 3px rgba(122,31,31,.12); }
.ac-form .ac-otp { letter-spacing: 10px; font-size: 26px; text-align: center; font-weight: 700; }
.ac-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 16px; }
.ac-check input { width: 24px; height: 24px; flex: 0 0 24px; margin-top: 2px; accent-color: var(--ac-maroon); }
.ac-help { font-size: 15px; color: var(--ac-muted); margin-top: 6px; }
.ac-alert { padding: 14px 16px; border-radius: 10px; margin: 12px auto; max-width: 1120px; font-size: 17px; }
.ac-alert-ok, .ac-alert-success { background: #e8f5e9; color: #1b5e20; border-left: 5px solid var(--ac-ok); }
.ac-alert-error, .ac-alert-danger { background: #ffebee; color: #b71c1c; border-left: 5px solid var(--ac-bad); }
.ac-alert-info { background: #fff8e1; color: #6d4c00; border-left: 5px solid var(--ac-gold); }
.ac-testmode { background: repeating-linear-gradient(45deg, #fff8e1, #fff8e1 10px, #fff3cd 10px, #fff3cd 20px); border: 2px dashed var(--ac-warn); padding: 10px 14px; border-radius: 10px; font-size: 16px; margin: 10px 0; }
.ac-step[hidden] { display: none !important; }

/* Tables -> cards on mobile */
.ac-rows { display: flex; flex-direction: column; gap: 10px; }
.ac-rowcard { background: #fff; border: 1px solid var(--ac-cream-2); border-radius: 12px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.ac-rowcard .ac-rowmain { flex: 1 1 240px; }

/* Portal */
.ac-portal-nav { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; max-width: 1120px; margin: 0 auto; -webkit-overflow-scrolling: touch; }
.ac-portal-nav a { white-space: nowrap; padding: 9px 16px; border-radius: 22px; background: #fff; border: 1px solid var(--ac-cream-2); text-decoration: none; color: var(--ac-ink); font-size: 16px; }
.ac-portal-nav a.active { background: var(--ac-maroon); color: #fff; border-color: var(--ac-maroon); }
.ac-session { border: 1px solid var(--ac-cream-2); border-radius: 12px; padding: 14px; margin: 10px 0; background: #fffdf8; }
.ac-session-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.ac-hw { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--ac-cream-2); }
.ac-comment { background: #f1f8e9; border-left: 4px solid var(--ac-ok); padding: 8px 12px; border-radius: 8px; margin-top: 8px; font-size: 16px; }

/* FAQ */
.ac-faq details { background: #fff; border: 1px solid var(--ac-cream-2); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
.ac-faq summary { cursor: pointer; font-weight: 600; font-size: 19px; list-style: none; }
.ac-faq summary::-webkit-details-marker { display: none; }
.ac-faq summary::after { content: '+'; float: right; color: var(--ac-gold-dk); font-size: 24px; line-height: 1; }
.ac-faq details[open] summary::after { content: '−'; }
.ac-faq details p { margin: 10px 0 0; }

/* Testimonials */
.ac-quote { font-size: 18px; font-style: italic; }
.ac-quote-by { font-style: normal; font-weight: 600; color: var(--ac-maroon); margin-top: 8px; font-size: 16px; }

/* Sticky mobile CTA */
.ac-sticky { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 2px solid var(--ac-gold); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: none; z-index: 900; box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
@media (max-width: 760px) { .ac-sticky { display: flex; gap: 10px; align-items: center; justify-content: space-between; } .ac-has-sticky { padding-bottom: 86px; } }

/* Link in bio */
.ac-bio { max-width: 520px; margin: 0 auto; padding: 10px 16px 40px; }
.ac-bio .ac-btn { width: 100%; margin: 8px 0; min-height: 60px; }

/* QR */
.ac-qr { display: flex; justify-content: center; padding: 12px; background: #fff; border-radius: 12px; }
.ac-qr img, .ac-qr svg { width: 220px; height: 220px; }

/* Success */
.ac-success-icon { width: 76px; height: 76px; border-radius: 50%; background: #e8f5e9; color: var(--ac-ok); font-size: 40px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }

@media (max-width: 600px) {
    .ac { font-size: 17px; padding-top: 80px; }
    .ac-section { padding: 30px 0; }
    .ac-card { padding: 16px; }
    .ac-btn { width: 100%; }
    .ac-actions .ac-btn { width: 100%; }
}

/* ---- Forms v2: field grid, icon inputs, phone prefix, segmented choice ---- */
.ac-fields { display: grid; grid-template-columns: 1fr; gap: 2px 16px; }
@media (min-width: 640px) { .ac-fields { grid-template-columns: 1fr 1fr; } }
.ac-field { min-width: 0; }
.ac-form .ac-field > label { margin: 14px 0 6px; font-size: 16px; color: var(--ac-ink); }
.ac-iconinput { position: relative; }
.ac-iconinput > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ac-gold-dk); font-size: 16px; pointer-events: none; }
.ac-form .ac-iconinput input { padding-left: 44px; }
.ac-phone { display: flex; align-items: stretch; }
.ac-phone > span { display: flex; align-items: center; padding: 0 12px; background: var(--ac-cream-2); border: 2px solid #d9c8a5; border-right: 0; border-radius: 10px 0 0 10px; font-weight: 600; color: var(--ac-muted); }
.ac-form .ac-phone input { border-radius: 0 10px 10px 0; min-width: 0; }
.ac-form input::placeholder { color: #b5a687; }
.ac-form input:disabled { background: #f7f2e7; color: var(--ac-muted); }
.ac-seg-wrap, .ac-dates-wrap { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.ac-seg-wrap legend, .ac-dates-wrap legend { font-weight: 600; font-size: 16px; padding: 0; margin-bottom: 8px; }
.ac-seg { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--ac-cream-2); border-radius: 12px; padding: 4px; gap: 4px; width: 100%; max-width: 340px; }
.ac-form .ac-seg label { margin: 0; font-weight: 600; }
.ac-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ac-seg span { display: block; text-align: center; padding: 10px 12px; border-radius: 9px; cursor: pointer; color: var(--ac-muted); transition: background .15s, color .15s; }
.ac-seg input:checked + span { background: #fff; color: var(--ac-maroon); box-shadow: 0 2px 8px rgba(122,31,31,.12); }
.ac-seg input:focus-visible + span { outline: 3px solid rgba(122,31,31,.3); }

/* Seminar date picker */
.ac-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.ac-form .ac-date { margin: 0; font-weight: 400; display: flex; }
.ac-date > span { display: block; }
.ac-center .ac-dates-wrap, .ac-center .ac-field, .ac-center .ac-seg-wrap { text-align: left; }
.ac-date { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 2px solid var(--ac-cream-2); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.ac-date input { position: absolute; opacity: 0; pointer-events: none; }
.ac-date-day { font-weight: 700; color: var(--ac-maroon); line-height: 1.3; }
.ac-date-time { font-size: 15px; color: var(--ac-ink); }
.ac-date-foot { margin-top: 2px; }
.ac-date:has(input:checked) { border-color: var(--ac-maroon); background: #fff8ec; box-shadow: 0 4px 14px rgba(122,31,31,.1); }
.ac-date:has(input:checked)::after { content: '\2713'; position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--ac-maroon); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.ac-date:has(input:focus-visible) { outline: 3px solid rgba(122,31,31,.3); }
.ac-date.is-full { opacity: .55; cursor: not-allowed; }

/* Chips + language badge */
.ac-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.ac-chips .ac-badge { background: #fff; border: 1px solid var(--ac-cream-2); }
.ac-badge-lang { background: #eef4ea; color: #2f5d2a; }
.ac-hero-date { font-size: 21px; font-weight: 600; color: var(--ac-maroon); margin-bottom: 6px; }

/* Login / auth card */
.ac-auth-section { padding-top: 28px; }
.ac-auth { max-width: 460px; margin: 0 auto; padding: 0 16px; }
.ac-auth-head { text-align: center; margin-bottom: 16px; }
.ac-auth-head h1 { font-size: clamp(28px, 6vw, 36px); margin-bottom: 6px; }
.ac-auth-head p { font-size: 16px; margin: 0; }
.ac-auth-icon { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #f6e3ae;
    background: radial-gradient(circle at 30% 30%, #9a3030, var(--ac-maroon-dk)); box-shadow: 0 8px 22px rgba(86,19,19,.25); }
.ac-auth-alt { text-align: center; font-size: 15px; color: var(--ac-muted); margin-top: 18px; padding: 16px; border: 1px dashed #d9c8a5; border-radius: var(--ac-radius); }
.ac-auth-alt .ac-btn { width: auto; }

/* Portal: sticky nav; app-style tab bar on phones */
.ac-portal-nav { position: sticky; top: 70px; z-index: 50; background: var(--ac-cream); }
@media (max-width: 600px) {
    .ac-portal-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 10px 12px; overflow: visible; top: 64px; box-shadow: 0 4px 12px rgba(0,0,0,.04); }
    .ac-portal-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border-radius: 12px; font-size: 12px; white-space: normal; text-align: center; line-height: 1.2; }
    .ac-portal-nav a i { font-size: 18px; }
}

/* Phone tuning */
@media (max-width: 600px) {
    .ac-hero { padding: 24px 0 28px; }
    .ac-hero .ac-wordmark { font-size: 32px !important; }
    .ac h1 { font-size: clamp(26px, 7.4vw, 34px); }
    .ac-hero-date { font-size: 18px; }
    .ac-countdown .ac-cd { font-size: 24px; min-width: 34px; }
    .ac-form input[type=text], .ac-form input[type=tel], .ac-form input[type=email], .ac-form select { font-size: 17px; min-height: 50px; }
    .ac-dates { grid-template-columns: 1fr 1fr; }
    .ac-date { padding: 10px 12px; }
    .ac-date-day { font-size: 15px; }
    .ac-date-time { font-size: 13px; }
    .ac-seg { max-width: none; }
    .ac-check { font-size: 15px; }
    .ac-rowcard > div:last-child { width: 100%; display: flex; gap: 8px; align-items: center; justify-content: space-between; }
    .ac-rowcard > div:last-child .ac-btn { width: auto; }
}
