/* Mock test booking (mockregister/index.php and process_registration.php).
   Praxis maroon & gold from the homepage; every rule is scoped to .mk-page so
   style.css and the shared header stay untouched. */

/* The shared footer (footer.php) reads the homepage's colour variables. */
:root {
    --primary: #1a1f35;
    --primary-light: #2d3548;
    --accent: #6A0D18;
    --success: #b8860b;
    --warning: #FFC107;
    --white: #ffffff;
}
body:has(.mk-page) { background: #fbf6ef; }
/* Footer as on the homepage: DM Sans text, Outfit headings, no underlines. */
.praxis-footer { font-family: 'DM Sans', system-ui, sans-serif; }
.praxis-footer h2, .praxis-footer h3, .praxis-footer h4, .praxis-footer strong { font-family: 'Outfit', 'DM Sans', sans-serif; }
.praxis-footer a { text-decoration: none; }

.mk-page {
    --mk-maroon: #6A0D18;
    --mk-maroon-deep: #3f0d14;
    --mk-maroon-bright: #8a1321;
    --mk-maroon-tint: rgba(106, 13, 24, 0.07);
    --mk-gold: #FFC107;
    --mk-gold-soft: #fff4d1;
    --mk-ink: #1a1f35;
    --mk-text: #2d3548;
    --mk-muted: #6b7280;
    --mk-line: #ebe2da;
    --mk-cream: #fbf6ef;
    --mk-green: #15803d;
    --mk-green-bg: #e3f6e9;
    --mk-orange: #c2410c;
    --mk-gradient: linear-gradient(135deg, #8a1321 0%, #6A0D18 100%);
    --mk-shadow: 0 2px 4px rgba(63, 13, 20, 0.05), 0 12px 30px rgba(63, 13, 20, 0.08);

    font-family: 'DM Sans', 'Noto Sans Bengali', system-ui, sans-serif;
    color: var(--mk-text);
    background: var(--mk-cream);
    line-height: 1.55;
    padding-bottom: 72px;
    overflow-x: clip;
}
.mk-page *, .mk-page *::before, .mk-page *::after { box-sizing: border-box; }
.mk-page h1, .mk-page h2, .mk-page h3 { font-family: 'Outfit', 'Noto Sans Bengali', 'DM Sans', sans-serif; color: var(--mk-ink); margin: 0; letter-spacing: -0.01em; }
.mk-page p { margin: 0; }
.mk-page [hidden] { display: none !important; }
.mk-page :focus-visible { outline: 3px solid var(--mk-gold); outline-offset: 2px; }
.mk-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.mk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 28px; border: 0; border-radius: 10px; cursor: pointer;
    background: var(--mk-gradient); color: #fff !important; text-decoration: none;
    font: 800 1rem/1.2 'DM Sans', sans-serif;
    box-shadow: 0 14px 30px rgba(106, 13, 24, 0.28); transition: transform .2s ease, box-shadow .2s ease;
}
.mk-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(106, 13, 24, 0.38); }
.mk-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.mk-btn-line { background: #fff; color: var(--mk-ink) !important; border: 2px solid var(--mk-ink); box-shadow: none; }
.mk-btn-line:hover { background: var(--mk-ink); color: #fff !important; box-shadow: none; }
.mk-btn-wa { background: #25d366; box-shadow: 0 14px 30px rgba(37, 211, 102, 0.25); }
.mk-btn-block { width: 100%; }
.mk-link { background: none; border: 0; padding: 0; color: var(--mk-maroon); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.mk-hero {
    background:
        radial-gradient(circle at 92% 8%, rgba(255, 193, 7, .18), transparent 32%),
        radial-gradient(circle at 0% 100%, rgba(106, 13, 24, .08), transparent 40%),
        linear-gradient(180deg, #fff 0%, var(--mk-cream) 100%);
    border-bottom: 1px solid var(--mk-line);
    padding: 52px 0 44px;
}
.mk-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.mk-kicker {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
    background: rgba(106, 13, 24, .08); border: 1px solid rgba(106, 13, 24, .2);
    color: var(--mk-ink); font-size: .82rem; font-weight: 800; margin-bottom: 18px;
}
.mk-kicker i { color: var(--mk-maroon); }
.mk-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; line-height: 1.08; margin-bottom: 16px; }
.mk-hl { color: var(--mk-maroon); position: relative; display: inline-block; z-index: 0; }
.mk-hl::after { content: ''; position: absolute; left: .04em; right: .04em; bottom: .06em; height: .16em; background: rgba(106, 13, 24, .2); border-radius: 999px; z-index: -1; }
.mk-lead { font-size: 1.05rem; color: var(--mk-muted); font-weight: 500; max-width: 560px; }
.mk-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; max-width: 560px; }
.mk-fact { background: rgba(255, 255, 255, .8); border: 1px solid rgba(26, 31, 53, .1); border-radius: 12px; padding: 14px 14px 12px; position: relative; overflow: hidden; box-shadow: 0 10px 24px rgba(26, 31, 53, .06); }
.mk-fact::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--mk-gradient); }
.mk-fact strong { display: block; font-family: 'Outfit', sans-serif; font-size: 1.15rem; font-weight: 900; color: var(--mk-maroon); line-height: 1.2; }
.mk-fact span { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--mk-muted); margin-top: 2px; }

.mk-fee-card { background: #fff; border-radius: 18px; padding: 26px; box-shadow: 0 30px 70px rgba(63, 13, 20, .14); border: 1px solid var(--mk-line); position: relative; overflow: hidden; }
.mk-fee-card::before { content: ''; position: absolute; left: 0; top: 30px; width: 6px; height: 76px; background: var(--mk-maroon); border-radius: 0 6px 6px 0; }
.mk-fee-card h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; }
.mk-fee-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--mk-line); }
.mk-fee-row:last-of-type { border-bottom: 0; }
.mk-fee-row span { font-weight: 600; color: var(--mk-text); }
.mk-fee-row strong { font-family: 'Outfit', 'Noto Sans Bengali', sans-serif; font-size: 1.6rem; font-weight: 900; color: var(--mk-maroon); }
.mk-fee-row.is-small strong { font-size: 1.05rem; color: var(--mk-ink); }
.mk-fee-row.is-small span { font-size: .9rem; color: var(--mk-muted); }
.mk-includes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 16px; }
.mk-includes span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 9px; white-space: nowrap; border-radius: 999px; background: var(--mk-gold-soft); color: #7a5600; font-size: .78rem; font-weight: 800; }
.mk-venue { display: flex; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--mk-line); font-size: .88rem; color: var(--mk-muted); }
.mk-venue i { color: var(--mk-maroon); margin-top: 3px; }
.mk-venue a { color: var(--mk-maroon); font-weight: 700; }

/* ---------- Steps ---------- */
.mk-booking { padding-top: 40px; }
.mk-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mk-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1.5px solid var(--mk-line); color: var(--mk-muted); font-weight: 700; font-size: .92rem; }
.mk-step b { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #f2ebe5; color: var(--mk-muted); font-size: .9rem; }
.mk-step small { display: block; font-weight: 500; font-size: .78rem; color: var(--mk-muted); }
.mk-step.is-current { border-color: var(--mk-maroon); color: var(--mk-ink); box-shadow: 0 8px 20px rgba(106, 13, 24, .1); }
.mk-step.is-current b { background: var(--mk-maroon); color: #fff; }
.mk-step.is-done { color: var(--mk-ink); }
.mk-step.is-done b { background: var(--mk-green); color: #fff; }

.mk-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; background: #fde8e8; color: #9f1d1d; border: 1px solid rgba(185, 28, 28, .2); font-weight: 600; margin-bottom: 18px; }
.mk-alert i { margin-top: 3px; }

.mk-card { scroll-margin-top: 100px; background: #fff; border-radius: 18px; border: 1px solid var(--mk-line); box-shadow: var(--mk-shadow); overflow: hidden; position: relative; }
.mk-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--mk-gradient); z-index: 1; }
.mk-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 24px 14px; flex-wrap: wrap; }
.mk-card-head h2 { font-size: 1.3rem; font-weight: 800; }
.mk-card-head p { color: var(--mk-muted); font-size: .92rem; margin-top: 4px; }

/* ---------- Calendar ---------- */
.mk-month { display: flex; align-items: center; gap: 8px; }
.mk-month h3 { font-size: 1.05rem; font-weight: 800; min-width: 150px; text-align: center; }
.mk-month a { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--mk-line); color: var(--mk-maroon); text-decoration: none; transition: all .2s ease; }
.mk-month a:hover { background: var(--mk-maroon); border-color: var(--mk-maroon); color: #fff; }
.mk-month a.is-disabled { opacity: .35; pointer-events: none; }

.mk-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 6px 24px 18px; }
.mk-dow { text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mk-muted); padding: 6px 0; }
.mk-dow.is-fri { color: var(--mk-maroon); }
.mk-day { min-height: 74px; border-radius: 10px; padding: 8px; font-size: .9rem; font-weight: 600; color: #c5bab2; background: #fbf8f5; display: flex; flex-direction: column; justify-content: space-between; text-align: left; border: 1.5px solid transparent; font-family: inherit; }
.mk-day.is-blank { background: transparent; }
.mk-day.is-today { color: var(--mk-ink); border-color: var(--mk-line); }
button.mk-day { cursor: pointer; color: var(--mk-ink); background: #fff; border-color: rgba(106, 13, 24, .22); font-weight: 800; font-size: 1rem; transition: all .2s ease; box-shadow: 0 4px 12px rgba(63, 13, 20, .06); }
button.mk-day:hover { border-color: var(--mk-maroon); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(106, 13, 24, .16); }
button.mk-day.is-selected { background: var(--mk-maroon); border-color: var(--mk-maroon); color: #fff; }
button.mk-day.is-selected .mk-seats { background: rgba(255, 255, 255, .18); color: #fff; }
.mk-seats { align-self: flex-start; font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--mk-green-bg); color: var(--mk-green); white-space: nowrap; }
.mk-seats.is-low { background: #ffedd5; color: var(--mk-orange); }
.mk-day.is-full { color: #9b8f88; background: #f4efeb; }
.mk-day.is-full .mk-seats { background: #e7e0da; color: #7d726b; }

.mk-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 14px 24px 20px; border-top: 1px solid var(--mk-line); font-size: .84rem; color: var(--mk-muted); }
.mk-legend span { display: inline-flex; align-items: center; gap: 8px; }
.mk-legend i.dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }

.mk-list { display: none; padding: 4px 16px 16px; gap: 10px; }
.mk-list-empty { padding: 0 24px 20px; color: var(--mk-muted); }
.mk-date-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1.5px solid var(--mk-line); font: inherit; color: var(--mk-ink); text-align: left; cursor: pointer; }
.mk-date-row:hover, .mk-date-row:active { border-color: var(--mk-maroon); }
.mk-date-row .dr-day { flex-shrink: 0; width: 46px; text-align: center; line-height: 1.1; }
.mk-date-row .dr-day small { display: block; font-size: .7rem; font-weight: 800; color: var(--mk-maroon); text-transform: uppercase; }
.mk-date-row .dr-day strong { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 900; }
.mk-date-row .dr-main { flex: 1; min-width: 0; }
.mk-date-row .dr-main strong { display: block; font-weight: 800; }
.mk-date-row .dr-go { flex-shrink: 0; color: var(--mk-maroon); }
.mk-date-row.is-full { cursor: default; opacity: .6; }

/* ---------- Details form ---------- */
.mk-form-card .mk-card-body { padding: 4px 24px 26px; }
.mk-chosen { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--mk-maroon-tint); border: 1px solid rgba(106, 13, 24, .16); margin-bottom: 20px; }
.mk-chosen > i { font-size: 1.3rem; color: var(--mk-maroon); }
.mk-chosen div { flex: 1; min-width: 0; }
.mk-chosen small { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--mk-muted); }
.mk-chosen strong { font-family: 'Outfit', sans-serif; font-size: 1.15rem; color: var(--mk-maroon); }

.mk-form { display: grid; gap: 16px; }
.mk-field { display: grid; gap: 6px; }
.mk-field label, .mk-legend-label { font-weight: 800; font-size: .9rem; color: var(--mk-ink); }
.mk-field input {
    width: 100%; padding: 13px 15px; border-radius: 10px; border: 1.5px solid var(--mk-line); background: #fff;
    font: 500 1rem 'DM Sans', sans-serif; color: var(--mk-ink); transition: border-color .2s, box-shadow .2s;
}
.mk-field input:focus { outline: none; border-color: var(--mk-maroon); box-shadow: 0 0 0 4px var(--mk-maroon-tint); }
.mk-field .hint { font-size: .8rem; color: var(--mk-muted); }
.mk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.mk-types { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.mk-type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-type { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--mk-line); background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.mk-type input { position: absolute; opacity: 0; pointer-events: none; }
.mk-type .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cfc3ba; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.mk-type .label { flex: 1; font-weight: 700; color: var(--mk-ink); line-height: 1.3; }
.mk-type .label small { display: block; font-weight: 500; color: var(--mk-muted); font-size: .8rem; }
.mk-type .price { font-family: 'Outfit', 'Noto Sans Bengali', sans-serif; font-weight: 900; font-size: 1.15rem; color: var(--mk-maroon); }
.mk-type:has(input:checked) { border-color: var(--mk-maroon); box-shadow: 0 0 0 4px var(--mk-maroon-tint); }
.mk-type:has(input:checked) .radio { border-color: var(--mk-maroon); }
.mk-type:has(input:checked) .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--mk-maroon); }
.mk-type:has(input:focus-visible) { outline: 3px solid var(--mk-gold); outline-offset: 2px; }

.mk-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--mk-cream); border: 1px dashed var(--mk-line); }
.mk-total span { font-weight: 700; color: var(--mk-text); }
.mk-total strong { font-family: 'Outfit', 'Noto Sans Bengali', sans-serif; font-size: 1.5rem; font-weight: 900; color: var(--mk-maroon); }
.mk-fine { font-size: .84rem; color: var(--mk-muted); text-align: center; }

/* ---------- Confirmation ---------- */
.mk-done { padding: 48px 0 0; }
.mk-done-card { max-width: 720px; margin: 0 auto; }
.mk-done-head { text-align: center; padding: 34px 28px 10px; }
.mk-done-icon { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; background: var(--mk-gold-soft); color: #9a6b00; font-size: 1.8rem; box-shadow: 0 0 0 8px rgba(255, 193, 7, .12); }
.mk-done-head h1 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 900; margin-bottom: 8px; }
.mk-done-head p { color: var(--mk-muted); font-size: 1rem; }
.mk-ticket { margin: 22px 28px 0; border-radius: 14px; border: 1.5px dashed rgba(106, 13, 24, .25); background: var(--mk-cream); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mk-ticket div { padding: 14px 18px; border-bottom: 1px dashed var(--mk-line); }
.mk-ticket div:nth-child(odd) { border-right: 1px dashed var(--mk-line); }
.mk-ticket div:nth-last-child(-n+2) { border-bottom: 0; }
.mk-ticket small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mk-muted); }
.mk-ticket strong { font-family: 'Outfit', 'Noto Sans Bengali', sans-serif; font-size: 1.15rem; color: var(--mk-ink); }
.mk-ticket .is-key strong { font-size: 1.5rem; color: var(--mk-maroon); letter-spacing: .04em; }
.mk-ticket .mk-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #fff1d6; color: #a15c07; font-size: .82rem; font-weight: 800; font-family: 'DM Sans', sans-serif; }
.mk-next { padding: 24px 28px 8px; }
.mk-next h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 12px; }
.mk-next ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: next; }
.mk-next li { display: flex; gap: 14px; align-items: flex-start; counter-increment: next; }
.mk-next li::before { content: counter(next); flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--mk-maroon); color: #fff; font-weight: 800; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; }
.mk-next li strong { color: var(--mk-ink); }
.mk-done-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; padding: 22px 28px 30px; }

/* WhatsApp button, as on the homepage */
.mk-wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff !important; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 10px 26px rgba(37, 211, 102, .4); text-decoration: none; transition: transform .2s ease; }
.mk-wa-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .mk-hero { padding: 34px 0 30px; }
    .mk-hero-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 680px) {
    .mk-wrap { padding: 0 16px; }
    .mk-facts { gap: 8px; }
    .mk-fact { padding: 12px 10px 10px; }
    .mk-fact strong { font-size: 1rem; }
    .mk-steps { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
    .mk-step { flex-direction: column; text-align: center; gap: 6px; padding: 10px 6px; font-size: .78rem; }
    .mk-step small { display: none; }
    .mk-card-head { padding: 20px 16px 12px; }
    .mk-cal { display: none; }
    .mk-list { display: grid; }
    .mk-legend { display: none; }
    .mk-form-card .mk-card-body { padding: 4px 16px 20px; }
    .mk-two, .mk-type-options { grid-template-columns: 1fr; }
    .mk-ticket { margin: 18px 16px 0; grid-template-columns: 1fr; }
    .mk-ticket div:nth-child(odd) { border-right: 0; }
    .mk-ticket div:nth-last-child(2) { border-bottom: 1px dashed var(--mk-line); }
    .mk-next { padding: 22px 18px 4px; }
    .mk-done-actions { padding: 20px 18px 24px; }
    .mk-done-actions .mk-btn { width: 100%; }
    .mk-wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}
