@font-face {
    font-family: "Plan Inter";
    src: url(/themes/vuzopedia/assets/fonts/Inter-Regular.woff2) format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Plan Inter";
    src: url(/themes/vuzopedia/assets/fonts/Inter-SemiBold.woff2) format("woff2");
    font-weight: 600 800;
    font-display: swap;
}

:root {
    --vx-plan-action: linear-gradient(110deg, #239df2 0%, #0079ed 100%);
    --vx-plan-action-hover: linear-gradient(110deg, #138de5 0%, #0068d6 100%);
    --vx-plan-ink: #202a36;
    --vx-plan-muted: #677586;
}

/* The public theme has high-specificity button rules; keep plan actions consistent. */
body .vx-admission-plan-entry button,
body .vx-admission-direct-plan {
    background: var(--vx-plan-action) !important;
    border-color: transparent !important;
    border-radius: 6px;
    color: #fff !important;
    box-shadow: 0 5px 14px #0079ed1a !important;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    white-space: normal;
    transition: box-shadow .15s ease, background .15s ease;
}

body .vx-admission-plan-entry button:hover,
body .vx-admission-direct-plan:hover {
    background: var(--vx-plan-action-hover) !important;
    box-shadow: 0 7px 20px #0079ed26 !important;
}

body .vx-admission-plan-entry .vx-admission-plan-saved {
    background: #eaf8f1 !important;
    border-color: #d5ece0 !important;
    color: #167654 !important;
    box-shadow: none !important;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
}

body .vx-admission-plan-entry .vx-admission-plan-saved:hover {
    background: #dff2e8 !important;
    color: #105c41 !important;
}

body .vx-admission-plan-entry :is(button, a):focus-visible,
body .vx-admission-direct-plan:focus-visible,
.vxRepresentativePlanDialog :is(a, button):focus-visible {
    outline: 3px solid #2499eb;
    outline-offset: 4px;
}

body .vx-admission-plan-entry button:disabled {
    opacity: .65;
    cursor: wait;
}

.vxPlanArt {
    --vx-plan-art-position: 0%;
    display: block;
    width: 180px;
    aspect-ratio: 1;
    background-image: url(../images/plan-illustrations.webp);
    background-size: 300% 100%;
    background-position: var(--vx-plan-art-position) 0;
    background-repeat: no-repeat;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.vxPlanArt--chat { --vx-plan-art-position: 50%; }
.vxPlanArt--folder { --vx-plan-art-position: 100%; }

.vxCommPlan.vxPlanSurface,
.vxPlanVisual .vxAdmissionGateway__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr auto;
    align-items: start;
    gap: 12px 24px;
    position: relative;
    box-sizing: border-box;
    min-width: 0;
    padding: 28px;
    border: 1px solid #dfebf4;
    border-radius: 8px;
    background: linear-gradient(110deg, #f7fbff 0%, #edf6fd 100%);
    color: var(--vx-plan-ink);
    box-shadow: none;
    font-family: "Plan Inter", Arial, sans-serif;
    letter-spacing: 0;
    container: plan-entry / inline-size;
    isolation: isolate;
}

.vxCommPlan.vxPlanSurface { margin: 20px 0 28px; }
.vxPlanVisual.vxAdmissionGateway { margin: 28px 0 32px; gap: 18px; }
.vxPlanVisual .vxAdmissionGateway__card { min-height: 0; height: 100%; }
.vxPlanVisual .vxAdmissionGateway__card::after { content: none; }
.vxPlanVisual .vxAdmissionGateway__card--competition { background: #f5f8fc; }

.vxPlanSurface .vxCommPlan__main,
.vxPlanSurface .vxCommPlan__copy,
.vxPlanVisual .vxAdmissionGateway__content,
.vxPlanVisual .vxAdmissionGateway__copy { display: contents; }

.vxPlanSurface .vxCommPlan__heading,
.vxPlanVisual .vxAdmissionGateway__heading { grid-area: 1 / 1; min-width: 0; align-self: center; }

.vxPlanSurface .vxCommPlan__icon,
.vxPlanVisual .vxAdmissionGateway__visual {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
    width: 200px;
    height: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
}

.vxPlanVisual .vxAdmissionGateway__visual { width: 150px; }
.vxPlanSurface .vxCommPlan__icon.vxPlanArt,
.vxPlanVisual .vxAdmissionGateway__visual.vxPlanArt,
.vxRepresentativePlanDialog .vxRepresentativePlanDialog__icon.vxPlanArt {
    background-image: url(../images/plan-illustrations.webp);
    background-size: 300% 100%;
    background-position: var(--vx-plan-art-position) 0;
    background-repeat: no-repeat;
}
.vxPlanVisual .vxAdmissionGateway__visual--photo {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 140px;
    height: 160px;
    grid-row: 1;
    align-self: start;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 12px;
    background: #dfeef8;
    box-shadow: 0 6px 18px #16465d1f;
    color: #226799;
    font-size: 44px;
}
.vxPlanVisual .vxAdmissionGateway__visual--photo img { width: 100%; height: 100%; object-fit: cover; }

.vxPlanSurface .vxCommPlan__kicker,
.vxPlanVisual .vxAdmissionGateway__kicker {
    display: block;
    margin: 0 0 9px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: #16826a;
    font-size: 11px;
    line-height: 1.5;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
}
.vxPlanVisual .vxAdmissionGateway__meta { display: block; margin: 0; }
.vxPlanVisual .vxAdmissionGateway__status { display: none; }
.vxPlanVisual .vxAdmissionGateway__card--competition .vxAdmissionGateway__kicker,
.vxPlanSurface.vxCommPlan--general .vxCommPlan__kicker,
.vxPlanSurface.vxCommPlan--event .vxCommPlan__kicker { color: #2577b7; }

.vxPlanSurface .vxCommPlan__copy h2,
.vxPlanVisual .vxAdmissionGateway__copy h2 {
    margin: 0;
    color: var(--vx-plan-ink);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
.vxPlanSurface.vxCommPlan--general .vxCommPlan__copy h2 { font-size: 28px; }
.vxPlanSurface .vxCommPlan__copy > p,
.vxPlanVisual .vxAdmissionGateway__copy > p {
    grid-area: 2 / 1;
    margin: 0;
    color: var(--vx-plan-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.vxPlanSurface .vxCommPlan__action,
.vxPlanVisual .vxAdmissionGateway__footer {
    grid-area: 3 / 1;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 12px;
    width: auto;
    min-width: 0;
    padding: 8px 0 0;
    border: 0;
    background: none;
}
.vxPlanSurface .vxCommPlan__promise,
.vxPlanVisual .vxAdmissionGateway__promise {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #788596;
    font-size: 11px;
    line-height: 1.5;
    font-weight: 400;
    text-align: left;
}
.vxPlanSurface .vxCommPlan__promise .material-icons,
.vxPlanVisual .vxAdmissionGateway__promise .material-icons { color: #7b9caf; font-size: 15px; }
.vxPlanVisual .vxAdmissionGateway__action { min-width: 0; max-width: 100%; }
.vxPlanSurface .vxCommPlan__action .vx-admission-plan-entry,
.vxPlanSurface .vxCommPlan__action .vx-admission-plan-entry form { width: auto; min-width: 0; }

body .vxPlanSurface .vxCommPlan__action :is(button, .vx-admission-plan-saved, .vx-admission-direct-plan),
body .vxPlanVisual .vxAdmissionGateway__action :is(button, .vx-admission-plan-saved) {
    min-height: 46px;
    max-width: 100%;
    padding: 12px 20px;
    font: 600 14px/1.4 "Plan Inter", Arial, sans-serif;
    text-align: center;
    white-space: normal;
    border-radius: 6px;
}
body .vxPlanVisual .vxAdmissionGateway__card .vxAdmissionGateway__action .vx-admission-plan-entry :is(button, .vx-admission-plan-saved) {
    background: var(--vx-plan-action) !important;
    border-color: transparent !important;
    color: #fff !important;
}
body .vxPlanVisual .vxAdmissionGateway__card .vxAdmissionGateway__action .vx-admission-plan-entry :is(button, .vx-admission-plan-saved):is(:hover, :focus-visible) {
    background: var(--vx-plan-action-hover) !important;
}
body .vxPlanVisual .vxAdmissionGateway__action .vx-admission-plan-saved :is(span, i) { color: #fff !important; }
.vxPlanSurface .vxCommPlan__action .vx-admission-direct-plan .material-icons,
.vxPlanSurface .vxCommPlan__action button .material-icons { order: 2; }

/* Narrow columns switch to a small illustration beside the heading, not narrow body copy. */
@container plan-entry (max-width: 620px) {
    .vxPlanSurface .vxCommPlan__icon,
    .vxPlanVisual .vxAdmissionGateway__visual:not(.vxAdmissionGateway__visual--photo) { width: 100px; grid-row: 1; }
    .vxPlanSurface .vxCommPlan__copy > p,
    .vxPlanVisual .vxAdmissionGateway__copy > p,
    .vxPlanSurface .vxCommPlan__action,
    .vxPlanVisual .vxAdmissionGateway__footer { grid-column: 1 / -1; }
    .vxPlanSurface.vxCommPlan .vxCommPlan__copy h2,
    .vxPlanVisual .vxAdmissionGateway__copy h2 { font-size: 23px; }
}

@container plan-entry (max-width: 350px) {
    .vxPlanSurface .vxCommPlan__icon,
    .vxPlanVisual .vxAdmissionGateway__visual:not(.vxAdmissionGateway__visual--photo) { width: 70px; }
    .vxPlanVisual .vxAdmissionGateway__visual--photo { width: 104px; height: 120px; font-size: 36px; }
    .vxPlanSurface.vxCommPlan .vxCommPlan__copy h2,
    .vxPlanVisual .vxAdmissionGateway__copy h2 { font-size: 20px; }
    .vxPlanSurface .vxCommPlan__action > .vx-admission-plan-entry,
    .vxPlanSurface .vxCommPlan__action > .vx-admission-direct-plan,
    .vxPlanVisual .vxAdmissionGateway__action,
    .vxPlanVisual .vxAdmissionGateway__action .vx-admission-plan-entry,
    .vxPlanSurface .vx-admission-plan-entry form,
    .vxPlanVisual .vx-admission-plan-entry form { width: 100%; min-width: 0; }
}

@container plan-entry (max-width: 280px) {
    .vxPlanVisual .vxAdmissionGateway__visual--photo { width: 88px; height: 104px; }
    .vxPlanSurface .vxCommPlan__icon { grid-area: 1 / 1; width: 60px; }
    .vxPlanSurface .vxCommPlan__heading { grid-area: 2 / 1 / auto / -1; }
    .vxPlanSurface .vxCommPlan__copy > p { grid-row: 3; }
    .vxPlanSurface .vxCommPlan__action { grid-row: 4; }
}

.vxRepresentativePlanDialog {
    width: 520px;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    padding: 30px;
    border: 1px solid #e2e9f0;
    border-radius: 8px;
    background: #fff;
    color: var(--vx-plan-ink);
    box-shadow: 0 24px 80px #172d4340;
    font-family: "Plan Inter", Arial, sans-serif;
    letter-spacing: 0;
    overflow-y: auto;
}
.vxRepresentativePlanDialog::backdrop { background: #23303e75; backdrop-filter: blur(5px); }
.vxRepresentativePlanDialog .vxRepresentativePlanDialog__head {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 28px;
    gap: 14px;
    align-items: center;
    padding: 0;
    border: 0;
    background: none;
    color: var(--vx-plan-ink);
}
.vxRepresentativePlanDialog__head::after { content: none; }
.vxRepresentativePlanDialog .vxRepresentativePlanDialog__icon {
    width: 76px;
    height: 76px;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
}
.vxRepresentativePlanDialog .vxRepresentativePlanDialog__kicker {
    margin-bottom: 6px;
    color: #7e8b99;
    font-size: 10px;
    line-height: 1.5;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
}
.vxRepresentativePlanDialog .vxRepresentativePlanDialog__head h2 {
    margin: 0;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--vx-plan-ink);
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
.vxRepresentativePlanDialog .vxRepresentativePlanDialog__close {
    width: 28px;
    height: 28px;
    min-width: 0;
    align-self: start;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: none;
    color: #84909d;
}
.vxRepresentativePlanDialog .vxRepresentativePlanDialog__close:hover { background: #f0f5f8; color: #243749; }
.vxRepresentativePlanDialog .vxRepresentativePlanDialog__body { padding: 24px 0 22px; }
.vxRepresentativePlanDialog .vxRepresentativePlanDialog__body p {
    margin: 0;
    padding: 0;
    border: 0;
    color: #627082;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 400;
}
.vxRepresentativePlanDialog .vxRepresentativePlanDialog__body .vxRepresentativePlanDialog__note {
    margin-top: 14px;
    color: #8a95a2;
    font-size: 12px;
}
.vxRepresentativePlanDialog .vxRepresentativePlanDialog__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
}
.vxRepresentativePlanDialog .vxRepresentativePlanDialog__actions :is(a, button) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 12px 14px;
    border: 0;
    border-radius: 6px;
    font: 600 14px/1.4 "Plan Inter", Arial, sans-serif;
    text-decoration: none !important;
    white-space: normal;
    text-align: center;
    order: initial;
}
.vxRepresentativePlanDialog .vxRepresentativePlanDialog__actions .vxRepresentativePlanDialog__primary {
    background: var(--vx-plan-action) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 5px 14px #0079ed1a !important;
}
.vxRepresentativePlanDialog .vxRepresentativePlanDialog__primary:hover,
.vxRepresentativePlanDialog .vxRepresentativePlanDialog__primary:focus-visible { background: var(--vx-plan-action-hover) !important; border-color: transparent !important; }
.vxRepresentativePlanDialog .vxRepresentativePlanDialog__primary .material-icons { display: inline-block; font-size: 20px; }
.vxRepresentativePlanDialog .vxRepresentativePlanDialog__actions .vxRepresentativePlanDialog__secondary {
    background: #f2f7fb !important;
    color: #6b7d8f !important;
    box-shadow: none;
}
.vxRepresentativePlanDialog .vxRepresentativePlanDialog__secondary:hover { background: #e9f2f9 !important; color: #304d66 !important; }

@media (max-width: 600px) {
    .vxCommPlan.vxPlanSurface,
    .vxPlanVisual .vxAdmissionGateway__card { padding: 22px 20px; column-gap: 14px; }
    .vxRepresentativePlanDialog { padding: 24px 20px; }
    .vxRepresentativePlanDialog .vxRepresentativePlanDialog__head { grid-template-columns: 56px minmax(0, 1fr) 24px; gap: 10px; }
    .vxRepresentativePlanDialog .vxRepresentativePlanDialog__icon { width: 56px; height: 56px; }
    .vxRepresentativePlanDialog .vxRepresentativePlanDialog__head h2 { font-size: 22px; }
    .vxPlanSurface .vxCommPlan__action .vx-admission-plan-entry,
    .vxPlanSurface .vxCommPlan__action .vx-admission-plan-entry form { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    body .vx-admission-plan-entry button,
    body .vx-admission-direct-plan { transition: none; }
}
