/*
 * p1.css - Grafit design proposal, P1 refinements (public pages).
 *
 * Loaded LAST in header.php so it layers over the existing stylesheets without
 * replacing them (the current look stays; this only adds the agreed P1 points).
 * Removing the single <link> in header.php fully reverts everything here.
 *
 * The brand palette already lives in the settings-driven CSS variables
 * (--secondary-color = indigo, --primary-color = gold, --background-color =
 * cream page, --light-color = cream card). We alias Grafit's semantic token
 * names to those so the admin colour settings keep working, and add the few
 * new roles the proposal introduces (muted, error, warn, coral, lavender, pink).
 */
:root {
    --indigo: var(--secondary-color, #232153);
    --gold: var(--primary-color, #D89E19);
    --bg: var(--background-color, #FFF5EB);
    --card: var(--light-color, #FEEEE1);
    --orange: var(--accent-color, #D46627);
    --lav: #A9A8D4;
    --pink: #F2BFA9;
    --muted: #5F5B80;   /* secondary text, 5.9:1 on cream */
    --err: #A3352B;     /* error text on cream, 6.3:1 */
    --warn-bg: #FBEFCF; /* unverified-email banner */
    --coral: #FF8A80;   /* logout on indigo, 6.5:1 */
    --tap: 48px;        /* minimum touch target */
    --r-field: 14px;
    /* Body font already comes from the global Nunito rule; these tokens let the
     * P1 components name their fonts without hard-coding the family. */
    --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
    --font-display: "Balo", "Arial Rounded MT Bold", system-ui, sans-serif;
}

/* ------------------------------------------------------------------ *
 * Item 7 - "Ugrás a tartalomhoz" skip link + visible focus everywhere
 * ------------------------------------------------------------------ */

/* Screen-reader-only utility, becomes visible on keyboard focus. */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 2000;
    transform: translateY(-150%);
    transition: transform 0.15s ease;
    background: var(--gold);
    color: var(--indigo);
    font: 700 1rem/1 var(--font-body, "Nunito", sans-serif);
    padding: 12px 20px;
    border-radius: 999px;
    text-decoration: none;
}
.skip-link:focus {
    transform: translateY(0);
    outline: 3px solid var(--indigo);
    outline-offset: 3px;
}

/* Indigo focus ring on light surfaces; gold ring on indigo surfaces. */
:focus-visible {
    outline: 3px solid var(--indigo);
    outline-offset: 3px;
}
nav :focus-visible,
footer :focus-visible,
.on-indigo :focus-visible,
.course :focus-visible {
    outline-color: var(--gold);
}

/* Form fields: ONE clean focus indicator (the old
 * 3px always-on outline at offset -3 drew a second ring inside the field border
 * -> a double/thick outline). A single 2px indigo border + a single gold ring
 * on keyboard focus. */
input:not([type="checkbox"]):not([type="radio"]),
select, textarea {
    border: 2px solid var(--indigo);
    outline: none;
    border-radius: var(--r-field, 14px);
}
input:not([type="checkbox"]):not([type="radio"]):focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 1px;
    border-color: var(--indigo);
}

/* Honour reduced-motion for the whole site. */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    a:hover { transform: none !important; }
}

/* ------------------------------------------------------------------ *
 * Links in content areas: distinguished by colour and a hover state, NOT by an
 * underline (owner request 2026-10-23: the underline "nem tetszik"). The resting
 * state is indigo (sets it apart from the dark body text); hover shifts to gold.
 * Keyboard focus still gets an underline (focus-visible) so non-mouse users keep
 * a clear cue without the underline showing in normal use.
 * Nav and footer links sit on indigo, so they keep their light colour.
 * ------------------------------------------------------------------ */
main a:not(.btn) {
    color: var(--indigo);
    text-decoration: none;
    font-weight: 600;
}
main a:not(.btn):hover {
    color: var(--gold);
}
main a:not(.btn):focus-visible {
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Breadcrumb: a <nav>, so it inherited the global indigo nav background, which
 * hid its indigo link. Keep it on the page background. */
.breadcrumb {
    background: transparent;
    color: var(--muted);
    margin-bottom: 20px;
    margin-top: 10px;
    padding: 0;
}

/* The hero CTA sat on the highlighted-course bottom border; give it room. */
.highlighted-course { padding-bottom: 20px; }

/* The card state chip was flush to the card's top edge; add breathing room. */
.course .course-info { padding-top: 14px; }

/* Status chips (locked / in-progress / done) use indigo text as well. */
.state-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 700 14px/1.2 var(--font-body, "Nunito", sans-serif);
    color: var(--indigo);
}

/* ------------------------------------------------------------------ *
 * Item 6 - form and dialog bases: 48px fields, 16px text (no iOS zoom),
 * native <dialog>, checkbox focus. Radios/checkboxes are excluded from
 * the sizing so the registration image-radios keep their layout.
 * ------------------------------------------------------------------ */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    min-height: var(--tap);
    font-size: 16px;
}

/* Password field + reveal toggle. */
.password-field {
    position: relative;
    display: flex;
    align-items: center;
}
.password-field input {
    flex: 1;
    padding-right: 52px;
}
.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    min-height: 40px;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--indigo);
    border-radius: 999px;
}
.password-toggle .material-icons { font-size: 22px; }

/* The custom checkbox hid the real input with display:none, so it could not be
 * reached by keyboard. Make it focusable (but invisible) and show a focus ring
 * on the styled box instead (items 6 + 7). */
.checkbox-wrapper input[type="checkbox"] {
    display: inline-block;
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}
.checkbox-wrapper input[type="checkbox"]:focus-visible + .check-box {
    outline: 3px solid var(--indigo);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Native dialog (used by the new "Kód beváltása" and other P1 dialogs). */
dialog.p1-dialog {
    /* The global *{margin:0} strips the UA margin:auto that centers a modal
     * <dialog>, so it jumped to the top-left. Restore it. */
    margin: auto;
    inset: 0;
    border: 0;
    border-radius: var(--border-radius, 20px);
    padding: 0;
    max-width: 440px;
    width: calc(100% - 32px);
    background: var(--bg);
    color: #000;
    box-shadow: 0 12px 40px rgba(35, 33, 83, 0.25);
}
dialog.p1-dialog::backdrop {
    background: rgb(35 33 83 / 0.6);
}
.p1-dialog-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
/* display:flex above beats the default [hidden] { display:none }, so a panel
   toggled via the hidden attribute (e.g. the unlock success panel vs its form)
   needs this to actually hide. */
.p1-dialog-body[hidden] { display: none; }
.p1-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.p1-dialog-head h2 { margin: 0; }
.p1-dialog-close {
    min-height: 40px;
    min-width: 40px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--indigo);
    border-radius: 999px;
}
.p1-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}
.p1-field input {
    width: 100%;
    border-radius: var(--r-field, 14px);
}
.p1-error {
    color: var(--err);
    font-weight: 700;
    min-height: 1.2em;
}

/* ------------------------------------------------------------------ *
 * Item 11 - course-end congratulation + plush upload + approved gallery.
 * ------------------------------------------------------------------ */
.course-complete {
    margin-top: var(--spacing);
    background: var(--card);
    border: 2px solid var(--gold);
    border-radius: var(--border-radius, 20px);
    padding: 24px;
}
.course-complete h2 { margin-bottom: 8px; }
.plush-form { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.plush-form input[type="file"] {
    width: 100%;
    border: 2px dashed var(--indigo);
    border-radius: var(--r-field);
    padding: 12px;
    background: #fff;
}
.plush-consent { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 0; }
.plush-note { font-size: 13px; }
.plush-thanks { font-weight: 700; color: var(--indigo); }

.plush-gallery-section { margin-top: var(--spacing); }
.plush-gallery-section h2 { margin-bottom: 16px; }
.plush-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
@media (max-width: 1023px) { .plush-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 599px)  { .plush-gallery { grid-template-columns: repeat(2, 1fr); } }
.plush-item { margin: 0; border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: 0 1px 4px rgb(0 0 0 / 0.08); }
.plush-item img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
/* 12182: the caption sits BELOW the image on the card's own band (dark text on
 * the light card), not as a small white/gold overlay over the photo. */
.plush-item figcaption {
    padding: 12px 14px;
    background: var(--card);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.plush-caption { font-size: 16px; font-weight: 600; color: var(--indigo); line-height: 1.25; }
.plush-author { font-size: 14px; font-weight: 700; color: #5F5B80; }

/* ------------------------------------------------------------------ *
 * Item 12 - profile: "Nincs megerositve" chip + Tanulmanyaim list.
 * ------------------------------------------------------------------ */
.chip {
    display: inline-flex;
    align-items: center;
    font: 700 13px/1 var(--font-body);
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.chip--warn {
    background: var(--warn-bg);
    color: var(--err);
    border: 1px solid rgb(216 158 25 / 0.5);
}

/* On narrow phones the fixed 150px avatar column leaves the data column too
 * narrow for a long e-mail (which cannot wrap) -> horizontal overflow. Stack
 * the card and let long values wrap. */
@media (max-width: 480px) {
    .profile-data-container { grid-template-columns: 1fr !important; }
    .profile-data .data p,
    .profile-data .data { overflow-wrap: anywhere; word-break: break-word; }
}

.my-studies { margin-top: var(--spacing); }
.my-studies h2 { margin-bottom: calc(var(--spacing) / 3); }
.study-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.study-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card);
    border-radius: 14px;
    padding: 14px 16px;
}
.study-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.study-title { font-weight: 700; }
.study-progress {
    width: 100%;
    height: 8px;
    background: rgb(35 33 83 / 0.12);
    border-radius: 999px;
    overflow: hidden;
}
.study-progress > span { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.study-count { font-size: 13px; color: var(--muted); font-weight: 700; }
.study-continue { flex: 0 0 auto; }

/* Cohesive hover for the "Folytatom" cards. The global a:hover scale (elements.css)
 * made links inside a row jump -- the title appeared to slide out of the card while
 * the rest stayed. Keep the animation but make it one piece: no per-link scale inside
 * the row, a subtle whole-card lift, and the title stays in place (just the gold
 * accent on hover). (Gery, 2026-11-19.) */
.study-row { transition: box-shadow 0.2s ease, transform 0.2s ease; }
.study-row:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgb(35 33 83 / 0.35); }
.study-row a:hover { transform: none; }
.study-title:hover { color: var(--gold); }

/* Newsletter status opener was gold text on cream (2.1:1). Make it readable:
 * indigo text with a gold underline, like the other content links (design #1). */
#newsletter-popup-opener {
    color: var(--indigo);
    text-decoration: none;
    font-weight: 700;
}
#newsletter-popup-opener:hover {
    color: var(--gold);
}
@media (max-width: 599px) {
    .study-row { flex-direction: column; align-items: stretch; }
    .study-continue { text-align: center; }
}

/* ------------------------------------------------------------------ *
 * Item 13 - homepage polish: on phones the text comes before the image,
 * and review bubbles go full-width (they float on desktop).
 * ------------------------------------------------------------------ */
@media (max-width: 768px) {
    /* These two sections have the image first in the markup; push it below
     * the text on phones so the message leads (design point 4). */
    .about-container .item-details .item-image { order: 2; }
    #contents-of-box .image-container { order: 2; }

    /* Reviews: no float, full width, stacked (design point 6). */
    .review, .review.left, .review.right {
        float: none;
        max-width: 100%;
    }
}
.reviews-caption {
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 12px;
}

/* ------------------------------------------------------------------ *
 * Design item 9 - course detail extras: difficulty chip, requirements, FAQ.
 * ------------------------------------------------------------------ */
.course-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.course-meta .state-chip {
    background: var(--card);
    padding: 5px 12px;
    border-radius: 999px;
}
/* Difficulty: 5 yarn-ball scale in half steps + a short label. Full balls use
 * the brand primary (palette-aware); empty balls a muted indigo. */
.difficulty-badge {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 8px 14px;
    background: var(--background-color, #FFF5EB);
    border-radius: 12px;
}
.difficulty-badge-title { font-weight: 700; font-size: 14px; }
.difficulty-badge-text { font-size: 14px; }
.difficulty-badge .yarns { display: inline-flex; gap: 2px; }
.difficulty-badge .yarn { width: 26px; height: 26px; vertical-align: middle; }
.difficulty-badge .yarn-full g { stroke: var(--primary-color, #D89E19); }
.difficulty-badge .yarn-empty g { stroke: var(--difficulty-empty, #A9A8D4); }
/* Half: base ball empty, left-half overlay full. */
.difficulty-badge .yarn-half > g { stroke: var(--difficulty-empty, #A9A8D4); }
.difficulty-badge .yarn-half .half g { stroke: var(--primary-color, #D89E19); }
.course-requirements { margin-top: var(--spacing); }
.course-requirements h2, .course-faq h2 { margin-bottom: calc(var(--spacing) / 3); }
.requirements-body ul { padding-left: 22px; }
.requirements-body li { margin-bottom: 6px; }
/* The global *{padding:0} strips list indentation (landing.css re-adds it only on
 * the homepage); restore it for the course-detail lists so bullets don't hang
 * off the left margin. */
.course-curriculum ul, .faq-answer ul, .faq-answer ol { padding-left: 22px; }

.course-faq { margin-top: var(--spacing); }
.faq-item {
    border: 2px solid var(--card);
    border-radius: 12px;
    margin-bottom: 10px;
    background: var(--card);
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 700;
    color: var(--indigo);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 22px;
    color: var(--gold);
    flex: 0 0 auto;
}
.faq-item[open] summary::after { content: "\2212"; } /* minus */
.faq-item summary:focus-visible { outline: 3px solid var(--indigo); outline-offset: -3px; }
.faq-answer { padding: 0 16px 16px; }

/* ------------------------------------------------------------------ *
 * Item 10 - unverified e-mail banner (top of main on logged-in pages).
 * ------------------------------------------------------------------ */
.unverified-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--warn-bg);
    color: var(--indigo);
    border: 1px solid rgb(216 158 25 / 0.5);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-weight: 700;
}
.unverified-banner .material-icons { color: var(--orange); flex: 0 0 auto; }
.unverified-banner p { margin: 0; font-weight: 600; }

/* ------------------------------------------------------------------ *
 * Item 5 - course card states (locked / in-progress / done / available).
 * The cards sit on indigo with cream text, so chips use light/gold tones.
 * ------------------------------------------------------------------ */
.course-image { position: relative; }

/* Lock badge on a locked card's cover. */
.course-lock {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--indigo);
    color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 999px;
}
.course--locked .course-image img { filter: saturate(0.6) brightness(0.9); }

.course-info-top { display: flex; flex-direction: column; gap: 10px; }

/* State chip: overlay on the top-left of the cover image (Figma card has the
 * image on top). A semi-opaque indigo pill keeps it readable over any photo. */
.course .state-chip {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgb(35 33 83 / 0.82);
    color: var(--light-color);
    font-size: 14px;
    box-shadow: 0 1px 4px rgb(0 0 0 / 0.25);
}
.course .state-chip .material-icons { font-size: 16px; }
.course .state-chip--done { color: var(--gold); }
.course .state-chip--locked { color: #E7E5F3; }
.course .state-chip--available { color: #BFE9BF; }

/* Thin progress bar on an in-progress card. */
.card-progress {
    width: 100%;
    height: 8px;
    background: rgb(255 255 255 / 0.18);
    border-radius: 999px;
    overflow: hidden;
}
.card-progress > span {
    display: block;
    height: 100%;
    background: var(--gold);
    border-radius: 999px;
}

/* ------------------------------------------------------------------ *
 * Items 2 & 3 - lesson page: click-to-load video, module grouping,
 * current/done marking, and the mobile bottom action bar.
 * ------------------------------------------------------------------ */

/* Item 3: video facade (shown until the viewer presses play). */
.video-facade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff;
    background: linear-gradient(135deg, #2a2763, var(--indigo));
    font: 700 1.0625rem/1.3 var(--font-body);
    text-align: center;
    padding: 24px;
}
.video-play {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--indigo);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.video-play .material-icons { font-size: 44px; }
.video-facade-text { display: flex; flex-direction: column; gap: 4px; }
.video-facade-text small { font-weight: 400; font-size: 13px; opacity: 0.85; }

/* Module grouping + current/done marking in the lesson list. */
.lesson-module { margin-bottom: 18px; }
.lesson-module-title {
    font-family: var(--font-display);
    color: var(--indigo);
    margin-bottom: 8px;
}
.lesson--current {
    background: var(--card);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 8px 10px;
    margin-left: -10px;
}
.lesson--current .lesson-title { color: var(--indigo); }
.lesson-current-badge {
    font: 700 12px/1 var(--font-body);
    color: var(--indigo);
    background: var(--gold);
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.lesson--done .lesson-title { color: var(--muted); }

.module-select-wrap { margin: 0 0 12px; }
.module-select {
    width: 100%;
    border: 2px solid var(--indigo);
    border-radius: var(--r-field);
    padding: 0 12px;
    background: #fff;
}

/* Item 2: mobile bottom action bar. Desktop keeps the inline complete button. */
.lesson-actionbar { display: none; }
@media (max-width: 768px) {
    .lesson-actionbar {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: stretch;
        gap: 8px;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 1500;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
        background: var(--indigo);
        box-shadow: 0 -4px 16px rgba(35, 33, 83, 0.25);
    }
    .lesson-action {
        min-height: var(--tap);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 0 10px;
        border-radius: 999px;
        font: 700 15px/1 var(--font-display);
        text-decoration: none;
    }
    .lesson-action--prev, .lesson-action--next { color: var(--light-color); background: transparent; }
    .lesson-action--complete {
        background: var(--gold);
        color: var(--indigo);
        border: 0;
        cursor: pointer;
    }
    .lesson-action.is-disabled { opacity: 0.4; }
    /* Keep content clear of the fixed bar. */
    main.full-page { padding-bottom: 88px; }
    /* On phones the inline desktop complete button is redundant. */
    #lesson-complete-desktop { display: none; }
}

/* ------------------------------------------------------------------ *
 * Item 8 - footer legal links (sit on the indigo footer, kept light).
 * ------------------------------------------------------------------ */
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin-bottom: 12px;
}
.footer-legal a {
    color: var(--light-color);
    text-decoration: none;
}
.footer-legal a:hover { color: var(--gold); }
.footer-legal a:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* ------------------------------------------------------------------ *
 * Item 1 - mobile frame: 56px header. The existing mobile nav is 75px;
 * we tighten it to 56px and re-align the hamburger, the user area and
 * the content top offset to match (phones, <= 768px).
 * ------------------------------------------------------------------ */
@media (max-width: 768px) {
    nav#mobile {
        height: 56px !important;
        background-color: var(--indigo);
    }
    main {
        margin-top: calc(56px + var(--spacing) / 2) !important;
    }
    #menuToggle {
        top: 17px;
        left: 16px;
    }
    #mobile > .user-login-info,
    #mobile > .user-login-info.logged-in {
        top: 0;
        height: 56px;
        right: 16px;
    }
    /* The slide-in menu panel starts below the 56px bar. */
    #menu {
        padding-top: 84px;
    }
}

/* "Emlekezz ram" jelolonegyzet: a general input-stilus (elements.css) teljes
 * szelessegu dobozza tette. Rendes kis negyzet a felirat mellett. */
.form-remember { display: block; }
.form-remember .checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
}
.form-remember input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-height: 0;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    outline: none;
    border-radius: 4px;
    accent-color: var(--gold);
}
.form-remember input[type="checkbox"]:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* A kurzus-vegi blokk mindig a DOM-ban van; JS mutatja/rejti (azonnali, frissites nelkul). */
.course-complete.is-hidden { display: none; }

/* Kurzus-vegi pluss-urlap: rendezett kartya, egyedi fajl-valaszto, rendes
 * jelolonegyzet (12168/3: a nyers "Choose File" es az apro checkbox helyett). */
.course-complete { max-width: 760px; }
.plush-form { max-width: none; }
.plush-form .p1-field-label { font-weight: 700; display: block; margin-bottom: 6px; }
.plush-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.plush-file-drop {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border: 2px dashed var(--indigo);
    border-radius: 14px;
    cursor: pointer;
    color: var(--indigo);
    background: rgb(35 33 83 / 0.03);
    transition: background 0.15s ease;
}
.plush-file-drop:hover { background: rgb(35 33 83 / 0.07); }
.plush-file-drop .material-icons { font-size: 28px; }
.p1-field:focus-within .plush-file-drop { outline: 3px solid var(--gold); outline-offset: 2px; }
/* A rejtett natív checkbox var(--checkbox-height)-ra meretezi a latvanyt; itt nem
 * volt definialva, ezert tunt aprocskanak. */
.course-complete .checkbox-wrapper { --checkbox-height: 22px; }
.plush-consent label:not(.check-box) { cursor: pointer; }

/* Pluss-dialog: diszkret visszanyito + galeria-fejlec + dialog-gombsor (12181). */
.plush-open-btn.is-hidden { display: none; }
.plush-reopen-wrap { margin-top: 24px; }
.plush-gallery-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.plush-gallery-head h2 { margin: 0; }
.plush-dialog-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
#plush-dialog.p1-dialog { max-width: 500px; }
