/* MTEC Diploma Detail — Route LMS catalog program layout */

.mtec-diploma-page {
    --mtec-deep: #181E4B;
    --mtec-blue: #5E6282;
    --mtec-primary: #0077C8;
    --mtec-divider: rgba(0, 41, 142, 0.05);
    --mtec-card-border: rgba(0, 41, 142, 0.06);
    --mtec-shadow: 0 14px 34px -20px rgba(8, 47, 73, 0.25);
    background: #f8fafc;
    font-family: 'Cairo', sans-serif;
}

.mtec-diploma-page h1,
.mtec-diploma-page h2,
.mtec-diploma-page h3,
.mtec-diploma-page h4 {
    font-family: 'Cairo', sans-serif;
}

.mtec-diploma-page__inner {
    max-width: 72rem;
    margin-inline: auto;
    width: 100%;
}

.mtec-diploma-page__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--mtec-deep);
    margin-bottom: 0.375rem;
    unicode-bidi: plaintext;
    text-align: start;
}

.mtec-diploma-page__intro {
    margin-bottom: 1.75rem;
}

.mtec-diploma-page__lead {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mtec-blue);
    max-width: 48rem;
    line-height: 1.65;
    opacity: 0.9;
    unicode-bidi: plaintext;
    text-align: start;
}

.mtec-diploma-page__badge-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mtec-blue);
    opacity: 0.85;
}

.mtec-diploma-page__badge-row > span:not(.mtec-diploma-page__pill) {
    unicode-bidi: plaintext;
    text-align: start;
}

.mtec-diploma-page__pill {
    flex-shrink: 0;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    text-transform: uppercase;
    font-weight: 800;
    background: rgba(0, 119, 200, 0.08);
    color: var(--mtec-primary);
}

.mtec-diploma-page__grid {
    display: grid;
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .mtec-diploma-page__grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: 2rem;
    }
}

.mtec-diploma-page__main {
    order: 2;
    min-width: 0;
}

.mtec-diploma-page__aside {
    order: 1;
    min-width: 0;
}

@media (min-width: 1024px) {
    .mtec-diploma-page__main { order: 1; }
    .mtec-diploma-page__aside { order: 2; }
}

/* Tab bar */
.mtec-diploma-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.375rem;
    padding: 0.375rem;
    border-radius: 20px;
    background: rgba(241, 245, 249, 0.85);
    border: 1px solid var(--mtec-divider);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(8px);
}

.mtec-diploma-tabs__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.625rem 0.25rem;
    border: 0;
    border-radius: 14px;
    font-size: 0.625rem;
    font-weight: 800;
    color: #64748b;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

@media (min-width: 640px) {
    .mtec-diploma-tabs__btn {
        font-size: 0.8125rem;
        padding: 0.625rem 0.75rem;
    }
}

.mtec-diploma-tabs__btn i {
    font-size: 1rem;
    display: none;
}

@media (min-width: 640px) {
    .mtec-diploma-tabs__btn i { display: inline; }
}

.mtec-diploma-tabs__btn.is-active {
    color: #fff;
    background: var(--mtec-primary);
    box-shadow: 0 4px 14px rgba(0, 119, 200, 0.25);
}

.mtec-diploma-tabs__btn:not(.is-active):hover {
    color: #334155;
}

/* Tab panels */
.mtec-diploma-panel {
    display: none;
    animation: mtecFadeIn 0.4s ease;
}

.mtec-diploma-panel.is-active {
    display: block;
}

@keyframes mtecFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.mtec-diploma-card {
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--mtec-card-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mtec-diploma-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--mtec-divider);
}

.mtec-diploma-card__head h2 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--mtec-deep);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.mtec-diploma-card__body {
    padding: 1.25rem 1.5rem;
}

.mtec-diploma-card__body--prose {
    color: var(--mtec-blue);
    line-height: 1.75;
    font-weight: 500;
    font-size: 0.9375rem;
    unicode-bidi: plaintext;
    text-align: start;
}

/* Curriculum accordion — Route style */
.mtec-curriculum-item {
    --curriculum-bg: #fff;
    --curriculum-border: var(--mtec-divider);
    --curriculum-bg-open: rgba(0, 119, 200, 0.04);
    --curriculum-border-open: rgba(0, 119, 200, 0.15);
    --curriculum-num-bg: rgba(0, 119, 200, 0.1);
    --curriculum-num-fg: var(--mtec-primary);
    --curriculum-accent: var(--mtec-primary);
    border-radius: 16px;
    border: 1px solid var(--curriculum-border);
    background: var(--curriculum-bg);
    overflow: hidden;
    transition: border-color 0.35s, background 0.35s, box-shadow 0.35s;
}

.mtec-curriculum-item.is-open {
    border-color: var(--curriculum-border-open);
    background: var(--curriculum-bg-open);
    box-shadow: 0 8px 24px -16px color-mix(in srgb, var(--curriculum-accent) 35%, transparent);
}

.mtec-curriculum-item--tone-0 {
    --curriculum-bg: #f0f7fc;
    --curriculum-border: #b8d9f0;
    --curriculum-bg-open: #e1f2fb;
    --curriculum-border-open: #5eb0e5;
    --curriculum-num-bg: #d2ebf8;
    --curriculum-num-fg: #0066a8;
    --curriculum-accent: #0077c8;
}

.mtec-curriculum-item--tone-1 {
    --curriculum-bg: #ecfdf5;
    --curriculum-border: #a7f3d0;
    --curriculum-bg-open: #d1fae5;
    --curriculum-border-open: #34d399;
    --curriculum-num-bg: #bbf7d0;
    --curriculum-num-fg: #047857;
    --curriculum-accent: #059669;
}

.mtec-curriculum-item--tone-2 {
    --curriculum-bg: #f5f3ff;
    --curriculum-border: #ddd6fe;
    --curriculum-bg-open: #ede9fe;
    --curriculum-border-open: #a78bfa;
    --curriculum-num-bg: #e9d5ff;
    --curriculum-num-fg: #6d28d9;
    --curriculum-accent: #7c3aed;
}

.mtec-curriculum-item--tone-3 {
    --curriculum-bg: #fffbeb;
    --curriculum-border: #fde68a;
    --curriculum-bg-open: #fef3c7;
    --curriculum-border-open: #fbbf24;
    --curriculum-num-bg: #fde68a;
    --curriculum-num-fg: #b45309;
    --curriculum-accent: #d97706;
}

.mtec-curriculum-item--tone-4 {
    --curriculum-bg: #fff1f2;
    --curriculum-border: #fecdd3;
    --curriculum-bg-open: #ffe4e6;
    --curriculum-border-open: #fb7185;
    --curriculum-num-bg: #fecdd3;
    --curriculum-num-fg: #be123c;
    --curriculum-accent: #e11d48;
}

.mtec-curriculum-item--tone-5 {
    --curriculum-bg: #ecfeff;
    --curriculum-border: #a5f3fc;
    --curriculum-bg-open: #cffafe;
    --curriculum-border-open: #22d3ee;
    --curriculum-num-bg: #a5f3fc;
    --curriculum-num-fg: #0e7490;
    --curriculum-accent: #0891b2;
}

.mtec-curriculum-item--tone-6 {
    --curriculum-bg: #eef2ff;
    --curriculum-border: #c7d2fe;
    --curriculum-bg-open: #e0e7ff;
    --curriculum-border-open: #818cf8;
    --curriculum-num-bg: #c7d2fe;
    --curriculum-num-fg: #4338ca;
    --curriculum-accent: #4f46e5;
}

.mtec-curriculum-item--tone-7 {
    --curriculum-bg: #fff7ed;
    --curriculum-border: #fed7aa;
    --curriculum-bg-open: #ffedd5;
    --curriculum-border-open: #fb923c;
    --curriculum-num-bg: #fed7aa;
    --curriculum-num-fg: #c2410c;
    --curriculum-accent: #ea580c;
}

.mtec-curriculum-item__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: start;
}

.mtec-curriculum-item__num {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 900;
    flex-shrink: 0;
    background: var(--curriculum-num-bg);
    color: var(--curriculum-num-fg);
    transition: all 0.35s;
}

.mtec-curriculum-item.is-open .mtec-curriculum-item__num {
    background: var(--curriculum-accent);
    color: #fff;
}

.mtec-curriculum-item__title {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--mtec-deep);
    unicode-bidi: plaintext;
    text-align: start;
}

.mtec-curriculum-item__chevron {
    color: #94a3b8;
    transition: transform 0.35s;
}

.mtec-curriculum-item.is-open .mtec-curriculum-item__chevron {
    transform: rotate(180deg);
    color: var(--curriculum-accent);
}

.mtec-curriculum-item__body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.35s ease;
    unicode-bidi: plaintext;
    text-align: start;
}

.mtec-curriculum-item.is-open .mtec-curriculum-item__body {
    max-height: 1200px;
    opacity: 1;
}

.mtec-curriculum-item__content {
    padding: 0 1rem 1rem 1rem;
    color: color-mix(in srgb, var(--curriculum-accent) 72%, #181e4b);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.65;
}

/* Highlights grid — "What you will learn" */
.mtec-highlight-grid {
    display: grid;
    gap: 1.125rem;
}

@media (min-width: 768px) {
    .mtec-highlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}

.mtec-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.14);
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.06) 0%, rgba(255, 255, 255, 0.92) 100%);
    min-height: 5.5rem;
}

.mtec-highlight-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.16);
    color: #059669;
    flex-shrink: 0;
    font-size: 1.125rem;
}

.mtec-highlight-item__body {
    flex: 1;
    min-width: 0;
}

.mtec-highlight-item__title {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    font-weight: 800;
    line-height: 1.45;
    color: #181e4b;
    text-wrap: pretty;
    unicode-bidi: plaintext;
    text-align: start;
}

.mtec-highlight-item__text {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mtec-blue);
    line-height: 1.7;
    text-wrap: pretty;
    white-space: pre-line;
    unicode-bidi: plaintext;
    text-align: start;
}

.mtec-highlight-item__text[dir="ltr"],
.mtec-highlight-item__title[dir="ltr"] {
    letter-spacing: 0.01em;
}

/* Legacy span selector (cached HTML fragments) */
.mtec-highlight-item span:not(.mtec-highlight-item__icon) {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mtec-blue);
    line-height: 1.7;
    unicode-bidi: plaintext;
    text-align: start;
    text-wrap: pretty;
}

/* Feature cards */
.mtec-feature-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .mtec-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.mtec-feature-card {
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--mtec-divider);
    background: rgba(248, 250, 252, 0.8);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.mtec-feature-card:hover {
    border-color: rgba(0, 119, 200, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.mtec-feature-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.mtec-feature-card h4 {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--mtec-deep);
    margin-bottom: 0.25rem;
    unicode-bidi: plaintext;
    text-align: start;
}

.mtec-feature-card p {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1.5;
    unicode-bidi: plaintext;
    text-align: start;
}

/* Sticky sidebar card */
.mtec-diploma-sidebar {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--mtec-card-border);
    background: #fff;
    box-shadow: var(--mtec-shadow);
}

@media (min-width: 1024px) {
    .mtec-diploma-sidebar {
        position: sticky;
        top: 6rem;
    }
}

.mtec-diploma-sidebar__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    overflow: hidden;
    border-bottom: 1px solid var(--mtec-divider);
    cursor: pointer;
}

.mtec-diploma-sidebar__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.mtec-diploma-sidebar__media:hover img {
    transform: scale(1.03);
}

.mtec-diploma-sidebar__media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.1) 50%, transparent);
}

.mtec-diploma-sidebar__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mtec-diploma-sidebar__play-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.3s;
}

.mtec-diploma-sidebar__play-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

.mtec-diploma-sidebar__play-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #fff;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.mtec-diploma-sidebar__body {
    padding: 1rem 1.5rem 1.5rem;
}

.mtec-diploma-sidebar__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.mtec-diploma-sidebar__price-current {
    font-size: 1.5rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.mtec-diploma-sidebar__price-was {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: line-through;
}

.mtec-diploma-sidebar__cta {
    display: none;
    width: 100%;
    height: 2.875rem;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border: 0;
    border-radius: 12px;
    background: var(--mtec-primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 119, 200, 0.25);
    transition: filter 0.3s, transform 0.2s;
    text-decoration: none;
}

@media (min-width: 1024px) {
    .mtec-diploma-sidebar__cta { display: flex; }
}

.mtec-diploma-sidebar__cta:hover {
    filter: brightness(1.05);
}

.mtec-diploma-sidebar__cta:active {
    transform: scale(0.98);
}

.mtec-diploma-sidebar__privileges {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--mtec-divider);
}

.mtec-diploma-sidebar__privileges h4 {
    font-size: 0.5625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.625rem;
}

.mtec-diploma-privilege {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border-radius: 12px;
    background: rgba(0, 119, 200, 0.03);
    margin-bottom: 0.375rem;
}

.mtec-diploma-privilege span:first-child {
    font-size: 0.75rem;
    line-height: 1;
}

.mtec-diploma-privilege span:nth-child(2) {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    flex: 1;
    unicode-bidi: plaintext;
    text-align: start;
}

.mtec-diploma-privilege i:last-child {
    color: var(--mtec-primary);
    opacity: 0.5;
    font-size: 0.875rem;
}

/* Mobile fixed CTA */
.mtec-diploma-mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--mtec-divider);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
    .mtec-diploma-mobile-cta { display: none; }
}

.mtec-diploma-mobile-cta a {
    display: flex;
    width: 100%;
    height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 16px;
    background: var(--mtec-primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 119, 200, 0.25);
}

.mtec-diploma-page__below {
    margin-top: 2.5rem;
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
}

@media (min-width: 1024px) {
    .mtec-diploma-page__below {
        padding-bottom: 2rem;
    }
}

.mtec-diploma-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    margin-bottom: 1.25rem;
    transition: color 0.2s;
}

.mtec-diploma-back:hover {
    color: var(--mtec-primary);
}

.mtec-diploma-expand-btn {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--mtec-primary);
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0.375rem 0.625rem;
    border-radius: 8px;
}

.mtec-diploma-expand-btn:hover {
    background: rgba(0, 119, 200, 0.06);
}

.mtec-diploma-sidebar__video-active {
    width: 100%;
    height: 100%;
}

.mtec-diploma-sidebar__video-active iframe,
.mtec-diploma-sidebar__video-active video {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
    background: #000;
}

/* ── Below sections: see assets/css/showcase-sections.css ── */

/* Enrollment form */
.mtec-enroll-card__head {
    margin-bottom: 1.25rem;
}

.mtec-enroll-card__shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 119, 200, 0.1);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 18px 40px -24px rgba(0, 119, 200, 0.28);
}

.mtec-enroll-card__accent {
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #0077c8 0%, #00a3e8 45%, #4f46e5 100%);
}

.mtec-enroll-card__body {
    padding: 1.5rem 1.5rem 1.75rem;
    background: linear-gradient(180deg, #fafcff 0%, #fff 42%);
}

.mtec-enroll-form {
    max-width: 42rem;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mtec-enroll-form__group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.125rem 1.125rem 1.25rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 41, 142, 0.07);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mtec-enroll-form__group-head {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.mtec-enroll-form__group-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: rgba(0, 119, 200, 0.1);
    color: var(--mtec-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.mtec-enroll-form__group-head h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 900;
    color: var(--mtec-deep);
    letter-spacing: -0.01em;
}

.mtec-enroll-form__group-hint {
    margin: -0.25rem 0 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
}

.mtec-enroll-form__grid {
    display: grid;
    gap: 1rem;
}

.mtec-enroll-form__grid--2 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .mtec-enroll-form__grid--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.mtec-enroll-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mtec-enroll-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--mtec-deep);
    line-height: 1.3;
}

.mtec-enroll-label i {
    color: var(--mtec-primary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.mtec-enroll-label em {
    font-style: normal;
    color: #ef4444;
    font-weight: 900;
}

.mtec-enroll-input,
.mtec-enroll-form input[type="text"],
.mtec-enroll-form input[type="tel"],
.mtec-enroll-form input[type="email"],
.mtec-enroll-form input[type="password"],
.mtec-enroll-form textarea {
    width: 100%;
    padding: 0.8125rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 41, 142, 0.1);
    background-color: #fff;
    color: var(--mtec-deep);
    font-size: 0.875rem;
    font-weight: 600;
    outline: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.mtec-enroll-input::placeholder,
.mtec-enroll-form input::placeholder,
.mtec-enroll-form textarea::placeholder {
    color: #94a3b8;
    font-weight: 600;
}

.mtec-enroll-input:focus,
.mtec-enroll-form input:focus,
.mtec-enroll-form textarea:focus {
    border-color: rgba(0, 119, 200, 0.45);
    box-shadow: 0 0 0 4px rgba(0, 119, 200, 0.1);
    background-color: #fff;
}

.mtec-enroll-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.mtec-enroll-password-wrap .mtec-enroll-input {
    padding-right: 2.75rem;
}

[dir="rtl"] .mtec-enroll-password-wrap .mtec-enroll-input {
    padding-right: 1rem;
    padding-left: 2.75rem;
}

.mtec-enroll-password-toggle {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

[dir="rtl"] .mtec-enroll-password-toggle {
    right: auto;
    left: 0.65rem;
}

.mtec-enroll-password-toggle:hover {
    color: var(--mtec-primary);
    background: rgba(0, 119, 200, 0.08);
}

.mtec-enroll-reviews {
    margin-top: 2rem;
}

.mtec-enroll-input--textarea,
.mtec-enroll-form textarea {
    resize: vertical;
    min-height: 6.5rem;
    line-height: 1.6;
}

.mtec-enroll-input--select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-inline-end: 2.75rem;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2300298e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.95rem center;
    background-size: 1.1rem 1.1rem;
    cursor: pointer;
}

[dir="rtl"] .mtec-enroll-input--select {
    background-position: left 0.95rem center;
}

.mtec-enroll-input--select:focus {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230077c8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.95rem center;
    background-size: 1.1rem 1.1rem;
}

[dir="rtl"] .mtec-enroll-input--select:focus {
    background-position: left 0.95rem center;
}

.mtec-enroll-field[hidden] {
    display: none !important;
}

.mtec-enroll-locations {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .mtec-enroll-locations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.mtec-enroll-location {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.5rem;
    padding: 0.875rem 1rem;
    border-radius: 16px;
    border: 1.5px solid rgba(0, 41, 142, 0.1);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mtec-enroll-location:hover {
    border-color: rgba(0, 119, 200, 0.28);
    background: #f8fbff;
}

.mtec-enroll-location:has(input:checked) {
    border-color: var(--mtec-primary);
    background: linear-gradient(135deg, rgba(0, 119, 200, 0.08) 0%, rgba(0, 163, 232, 0.05) 100%);
    box-shadow: 0 8px 20px -14px rgba(0, 119, 200, 0.45);
}

.mtec-enroll-location input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mtec-enroll-location__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 12px;
    background: rgba(0, 119, 200, 0.1);
    color: var(--mtec-primary);
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.mtec-enroll-location:has(input:checked) .mtec-enroll-location__icon {
    background: var(--mtec-primary);
    color: #fff;
}

.mtec-enroll-location__text {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--mtec-deep);
    line-height: 1.35;
}

.mtec-enroll-location__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 999px;
    border: 1.5px solid rgba(0, 41, 142, 0.14);
    color: transparent;
    font-size: 0.875rem;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.mtec-enroll-location:has(input:checked) .mtec-enroll-location__check {
    border-color: var(--mtec-primary);
    background: var(--mtec-primary);
    color: #fff;
}

.mtec-enroll-form .mtec-recaptcha-block {
    padding: 0.875rem 1rem;
    border-radius: 16px;
    border: 1px dashed rgba(0, 41, 142, 0.12);
    background: rgba(255, 255, 255, 0.7);
}

.mtec-enroll-form__footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.25rem;
}

.mtec-enroll-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 3.25rem;
    padding: 0.875rem 1.25rem;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #0077c8 0%, #005ea1 100%);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 24px -8px rgba(0, 119, 200, 0.55);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.mtec-enroll-submit i {
    font-size: 1.05rem;
}

.mtec-enroll-submit:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -10px rgba(0, 119, 200, 0.6);
}

.mtec-enroll-submit:active {
    transform: translateY(0);
}

.mtec-enroll-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mtec-enroll-form__secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #94a3b8;
    text-align: center;
    line-height: 1.5;
}

.mtec-enroll-form__secure i {
    color: #10b981;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.mtec-enroll-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-top: 1rem;
}

.mtec-enroll-steps__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #64748b;
    background: rgba(148, 163, 184, 0.12);
}

.mtec-enroll-steps__item > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 900;
    background: rgba(100, 116, 139, 0.15);
    color: #475569;
}

.mtec-enroll-steps__item.is-active {
    color: #0077c8;
    background: rgba(0, 119, 200, 0.1);
}

.mtec-enroll-steps__item.is-active > span {
    background: #0077c8;
    color: #fff;
}

.mtec-enroll-steps__item.is-done {
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
}

.mtec-enroll-steps__item.is-done > span {
    background: #10b981;
    color: #fff;
}

.mtec-enroll-steps__sep {
    width: 1.5rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 119, 200, 0.35), rgba(79, 70, 229, 0.25));
}

.mtec-enroll-form__next-hint {
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #475569;
    background: rgba(0, 119, 200, 0.06);
    border: 1px solid rgba(0, 119, 200, 0.1);
    line-height: 1.5;
}

.mtec-enroll-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 119, 200, 0.12);
}

.mtec-enroll-summary__line {
    margin: 0;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.5;
}

.mtec-enroll-summary__edit {
    font-size: 0.8125rem;
    font-weight: 800;
    color: #0077c8;
    text-decoration: none;
}

.mtec-enroll-summary__edit:hover {
    text-decoration: underline;
}

.mtec-enroll-summary__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
}

.mtec-enroll-summary__meta span:not(:last-child)::after {
    content: '·';
    margin-inline-start: 0.75rem;
    color: #cbd5e1;
}

.mtec-enroll-account-page {
    padding-block: 2rem 3rem;
    max-width: 48rem;
    margin-inline: auto;
}

.mtec-enroll-card--step2 .mtec-enroll-form {
    max-width: none;
}

.mtec-enroll-expired__body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
}

.mtec-enroll-expired__body p {
    margin: 0;
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.6;
}

.mtec-enroll-expired__cta {
    text-decoration: none;
    max-width: 20rem;
    margin-inline: auto;
}

.mtec-enroll-field--choices .mtec-enroll-label {
    margin-bottom: 0.125rem;
}

.mtec-enroll-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .mtec-enroll-choices {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .mtec-enroll-choices {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.mtec-enroll-choice {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 6.5rem;
    padding: 0.875rem 0.625rem;
    border-radius: 18px;
    border: 1.5px solid rgba(0, 41, 142, 0.1);
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mtec-enroll-choice:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 119, 200, 0.22);
    box-shadow: 0 8px 20px -14px rgba(0, 119, 200, 0.35);
}

.mtec-enroll-choice:has(input:checked) {
    border-color: var(--choice-accent, var(--mtec-primary));
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, var(--choice-bg, rgba(0, 119, 200, 0.06)) 100%);
    box-shadow: 0 10px 24px -14px var(--choice-shadow, rgba(0, 119, 200, 0.4));
}

.mtec-enroll-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mtec-enroll-choice__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    background: var(--choice-bg, rgba(0, 119, 200, 0.1));
    color: var(--choice-accent, var(--mtec-primary));
    font-size: 1.35rem;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.mtec-enroll-choice:has(input:checked) .mtec-enroll-choice__icon {
    background: var(--choice-accent, var(--mtec-primary));
    color: #fff;
    transform: scale(1.04);
}

.mtec-enroll-choice__text {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--mtec-deep);
    line-height: 1.35;
}

.mtec-enroll-choice__check {
    position: absolute;
    top: 0.5rem;
    inset-inline-end: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 999px;
    border: 1.5px solid rgba(0, 41, 142, 0.12);
    color: transparent;
    font-size: 0.75rem;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.mtec-enroll-choice:has(input:checked) .mtec-enroll-choice__check {
    border-color: var(--choice-accent, var(--mtec-primary));
    background: var(--choice-accent, var(--mtec-primary));
    color: #fff;
}

.mtec-enroll-choice--facebook {
    --choice-accent: #1877f2;
    --choice-bg: rgba(24, 119, 242, 0.1);
    --choice-shadow: rgba(24, 119, 242, 0.35);
}

.mtec-enroll-choice--instagram {
    --choice-accent: #e4405f;
    --choice-bg: rgba(228, 64, 95, 0.1);
    --choice-shadow: rgba(228, 64, 95, 0.32);
}

.mtec-enroll-choice--tiktok {
    --choice-accent: #fe2c55;
    --choice-bg: rgba(37, 244, 238, 0.14);
    --choice-shadow: rgba(254, 44, 85, 0.35);
}

.mtec-enroll-choice--tiktok .mtec-enroll-choice__icon--brand {
    background: #010101;
    color: inherit;
}

.mtec-enroll-choice--tiktok:has(input:checked) .mtec-enroll-choice__icon--brand {
    background: #010101;
    color: inherit;
}

.mtec-enroll-brand-svg {
    width: 1.35rem;
    height: 1.35rem;
    display: block;
}

.mtec-enroll-choice--google {
    --choice-accent: #4285f4;
    --choice-bg: rgba(66, 133, 244, 0.1);
    --choice-shadow: rgba(66, 133, 244, 0.32);
}

.mtec-enroll-choice--whatsapp {
    --choice-accent: #25d366;
    --choice-bg: rgba(37, 211, 102, 0.1);
    --choice-shadow: rgba(37, 211, 102, 0.32);
}

/* Branch tones — physical vs online live vs online recorded */
.mtec-enroll-choice--branch {
    --choice-accent: #0077c8;
    --choice-bg: rgba(0, 119, 200, 0.1);
    --choice-shadow: rgba(0, 119, 200, 0.32);
}

.mtec-enroll-choice--branch-online {
    --choice-accent: #0ea5e9;
    --choice-bg: rgba(14, 165, 233, 0.1);
    --choice-shadow: rgba(14, 165, 233, 0.32);
}

.mtec-enroll-choice--branch-online-live {
    --choice-accent: #e11d48;
    --choice-bg: rgba(225, 29, 72, 0.1);
    --choice-shadow: rgba(225, 29, 72, 0.3);
}

.mtec-enroll-choice--branch-online-recorded {
    --choice-accent: #7c3aed;
    --choice-bg: rgba(124, 58, 237, 0.1);
    --choice-shadow: rgba(124, 58, 237, 0.3);
}

/* Education stage tones */
.mtec-enroll-choice--edu-secondary {
    --choice-accent: #0077c8;
    --choice-bg: rgba(0, 119, 200, 0.1);
    --choice-shadow: rgba(0, 119, 200, 0.32);
}

.mtec-enroll-choice--edu-university {
    --choice-accent: #7c3aed;
    --choice-bg: rgba(124, 58, 237, 0.1);
    --choice-shadow: rgba(124, 58, 237, 0.3);
}

.mtec-enroll-choice--edu-graduate {
    --choice-accent: #0d9488;
    --choice-bg: rgba(13, 148, 136, 0.1);
    --choice-shadow: rgba(13, 148, 136, 0.3);
}

/* Projects carousel — see assets/css/showcase-sections.css */

/* Reviews */
.mtec-reviews-wrap {
    margin-top: 0.5rem;
    padding-block: 0.25rem 1.5rem;
}

.mtec-reviews-wrap .mtec-diploma-section__head {
    margin-bottom: 1.75rem;
}

.mtec-reviews-wrap .mtec-diploma-card {
    border-radius: 24px;
    border: 1px solid var(--mtec-card-border);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 14px 34px -20px rgba(8, 47, 73, 0.12);
    overflow: hidden;
}

.mtec-reviews-wrap .mtec-diploma-card__body {
    padding: 1.25rem 1.125rem 1.375rem;
    background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
}

.mtec-reviews-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.mtec-reviews-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 41, 142, 0.07);
    background: #fff;
    box-shadow: 0 2px 10px rgba(24, 30, 75, 0.04);
    flex: 1 1 9rem;
}

.mtec-reviews-stat__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mtec-reviews-stat p {
    font-size: 0.625rem;
    font-weight: 700;
    color: #94a3b8;
}

.mtec-reviews-stat strong {
    font-size: 0.9375rem;
    font-weight: 900;
    color: var(--mtec-deep);
}

.mtec-reviews-carousel::before,
.mtec-reviews-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(24px, 5vw, 64px);
    z-index: 10;
    pointer-events: none;
}

.mtec-reviews-carousel::before {
    left: 0;
    background: linear-gradient(to right, #f8fafc 30%, transparent);
}

.mtec-reviews-carousel::after {
    right: 0;
    background: linear-gradient(to left, #f8fafc 30%, transparent);
}

@media (max-width: 639px) {
    .mtec-reviews-carousel::before,
    .mtec-reviews-carousel::after { display: none; }
}

.mtec-review-card-inner {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0, 41, 142, 0.07);
    box-shadow:
        0 1px 2px rgba(24, 30, 75, 0.04),
        0 8px 24px -12px rgba(0, 41, 142, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

@media (min-width: 640px) {
    .review-card:hover .mtec-review-card-inner {
        transform: translateY(-3px);
        box-shadow: var(--mtec-shadow);
        border-color: rgba(0, 119, 200, 0.12);
    }
}

.mtec-review-avatar {
    background: linear-gradient(135deg, #0077C8, #005fa3);
}

/* Partners + carousel hint — see showcase-sections.css / partners-section.css */

/* Shared carousel (reviews) — horizontal scroll + optional auto-advance on desktop */
.reviews-scroll-track,
.mobile-scroll-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 0.375rem 0.25rem 0.875rem;
    touch-action: pan-x;
}

.reviews-scroll-track::-webkit-scrollbar,
.mobile-scroll-track::-webkit-scrollbar { display: none; }

.reviews-scroll-track .review-card,
.mobile-scroll-track .review-card {
    scroll-snap-align: center;
    flex-shrink: 0;
    width: calc(100vw - 3rem);
    max-width: 340px;
}

.reviews-carousel { position: relative; }

@media (min-width: 640px) {
    .reviews-scroll-track {
        scroll-snap-type: x proximity;
        cursor: grab;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 119, 200, 0.28) transparent;
        padding: 0.375rem 0.5rem 1.125rem;
    }

    .reviews-scroll-track::-webkit-scrollbar {
        display: block;
        height: 6px;
    }

    .reviews-scroll-track::-webkit-scrollbar-thumb {
        background: rgba(0, 119, 200, 0.28);
        border-radius: 999px;
    }

    .reviews-scroll-track.is-dragging {
        cursor: grabbing;
        scroll-snap-type: none;
        user-select: none;
    }

    .reviews-scroll-track .review-card {
        scroll-snap-align: start;
    }
}

.review-card { flex-shrink: 0; }

@media (min-width: 640px) {
    .review-card { width: 320px; }
}

@media (min-width: 1024px) {
    .review-card { width: 350px; }
}

.review-stars i { font-size: 0.8125rem; }

@media (prefers-reduced-motion: reduce) {
    .mtec-partners-track {
        animation: none;
    }
    .mtec-partners-track { flex-wrap: wrap; justify-content: center; width: 100%; }
}

@media (max-width: 639px) {
    .mtec-diploma-page__inner {
        padding-inline: 0.875rem;
    }

    .mtec-diploma-page__badge-row {
        flex-wrap: wrap;
    }

    .mtec-diploma-sidebar__body {
        padding: 1rem 1.125rem 1.25rem;
    }

    .mtec-diploma-tabs__btn i {
        display: none;
    }

    .mtec-enroll-form input[type="text"],
    .mtec-enroll-form input[type="tel"],
    .mtec-enroll-form input[type="email"],
    .mtec-enroll-form textarea,
    .mtec-enroll-input {
        font-size: 1rem;
    }

    .mtec-enroll-card__body {
        padding: 1.125rem 1rem 1.375rem;
    }

    .mtec-enroll-form__group {
        padding: 1rem;
    }

    .mtec-diploma-page {
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    }

    .mtec-diploma-card__head {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .mtec-diploma-card__head h2 {
        font-size: 0.9375rem;
    }

    .mtec-diploma-tabs__btn span {
        font-size: 0.58rem;
        line-height: 1.25;
    }
}

/* ============================================================
   Enroll step 2 — sending spinner + animated success screen
   ============================================================ */

.mtec-enroll-submit.is-sending {
    cursor: progress;
}

.mtec-enroll-submit.is-sending i {
    display: inline-block;
    box-sizing: border-box;
    width: 1.05rem;
    height: 1.05rem;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mtec-enroll-spin 0.7s linear infinite;
}

.mtec-enroll-submit.is-sending i::before {
    content: none;
}

.mtec-enroll-field--has-error .mtec-enroll-input,
.mtec-enroll-field--has-error .mtec-enroll-choices,
.mtec-enroll-field--has-error .mtec-enroll-schedule-groups {
    border-color: #dc2626;
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.15);
}

.mtec-enroll-field-error {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #dc2626;
    font-weight: 600;
}

.mtec-enroll-form__error-summary {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(220, 38, 38, 0.25);
    background: rgba(254, 242, 242, 0.95);
    color: #991b1b;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
}

.mtec-enroll-form__error-summary i {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.mtec-recaptcha-block--has-error .g-recaptcha {
    outline: 2px solid rgba(220, 38, 38, 0.35);
    outline-offset: 4px;
    border-radius: 0.5rem;
}

@keyframes mtec-enroll-spin {
    to { transform: rotate(360deg); }
}

html.mtec-enroll-locked,
html.mtec-enroll-locked body {
    overflow: hidden;
}

/* ---- success overlay ---- */
.mtec-enroll-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 100060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: radial-gradient(120% 120% at 50% 0%, rgba(0, 41, 142, 0.55) 0%, rgba(2, 12, 40, 0.78) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mtec-enroll-success-overlay.is-visible {
    opacity: 1;
}

.mtec-enroll-success-card {
    position: relative;
    width: min(100%, 27rem);
    background: #fff;
    border-radius: 24px;
    padding: 2.25rem 1.75rem 1.75rem;
    text-align: center;
    box-shadow: 0 30px 70px rgba(2, 12, 40, 0.45);
    transform: translateY(18px) scale(0.96);
    opacity: 0;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.42s ease;
}

.mtec-enroll-success-overlay.is-visible .mtec-enroll-success-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.mtec-enroll-success__badge {
    width: 5.5rem;
    height: 5.5rem;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 35%, rgba(34, 197, 94, 0.18) 0%, rgba(34, 197, 94, 0.06) 70%);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    animation: mtec-enroll-badge-pulse 1.8s ease-out 0.4s;
}

@keyframes mtec-enroll-badge-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
    100% { box-shadow: 0 0 0 22px rgba(34, 197, 94, 0); }
}

.mtec-enroll-success__check {
    width: 4rem;
    height: 4rem;
}

.mtec-enroll-success__circle {
    stroke: #22c55e;
    stroke-width: 2.5;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: mtec-enroll-stroke 0.55s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.mtec-enroll-success__mark {
    stroke: #16a34a;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: mtec-enroll-stroke 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes mtec-enroll-stroke {
    to { stroke-dashoffset: 0; }
}

.mtec-enroll-success__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: #0077c8;
    margin-bottom: 0.4rem;
}

.mtec-enroll-success__kicker i {
    color: #f59e0b;
}

.mtec-enroll-success__kicker:empty {
    display: none;
}

.mtec-enroll-success__title {
    margin: 0 0 0.5rem;
    font-size: 1.45rem;
    font-weight: 900;
    color: #0f1538;
}

.mtec-enroll-success__body {
    margin: 0 0 1.4rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #526285;
}

.mtec-enroll-success__cta {
    width: 100%;
}

/* Forward arrow should point in the reading direction (left in RTL). */
[dir="rtl"] .mtec-enroll-success__cta .ri-arrow-right-line {
    transform: scaleX(-1);
}

.mtec-enroll-success__secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.9rem 0 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
}

.mtec-enroll-success__secure i {
    color: #10b981;
}

/* ---- confetti ---- */
.mtec-enroll-confetti {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.mtec-enroll-confetti__piece {
    position: absolute;
    top: -8%;
    width: 9px;
    height: 14px;
    border-radius: 2px;
    opacity: 0;
    animation-name: mtec-enroll-confetti-fall;
    animation-timing-function: cubic-bezier(0.3, 0.6, 0.5, 1);
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes mtec-enroll-confetti-fall {
    0% { opacity: 0; transform: translateY(-10vh) rotate(0deg); }
    10% { opacity: 1; }
    100% { opacity: 0; transform: translateY(105vh) rotate(540deg); }
}

@media (prefers-reduced-motion: reduce) {
    .mtec-enroll-success-overlay,
    .mtec-enroll-success-card {
        transition: none;
    }
    .mtec-enroll-success__circle,
    .mtec-enroll-success__mark {
        animation: none;
        stroke-dashoffset: 0;
    }
    .mtec-enroll-success__badge,
    .mtec-enroll-confetti__piece,
    .mtec-enroll-submit.is-sending i {
        animation: none;
    }
    .mtec-enroll-confetti { display: none; }
}

.mtec-diploma-page__duration-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.mtec-diploma-page__duration-wrap .mtec-diploma-card__duration-meta {
    justify-content: center;
}

/* Schedule groups (ERP cohorts) */
.mtec-diploma-schedule .mtec-diploma-card__head h2 i {
    margin-inline-end: 0.35rem;
}

.mtec-schedule-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}

@media (min-width: 640px) {
    .mtec-schedule-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.mtec-schedule-card {
    border: 1px solid var(--mtec-card-border);
    border-radius: 1rem;
    padding: 1rem 1.125rem;
    background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
    box-shadow: var(--mtec-shadow);
}

.mtec-schedule-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mtec-schedule-card__title {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--mtec-deep);
    margin: 0;
}

.mtec-schedule-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 800;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    white-space: nowrap;
}

.mtec-schedule-card__badge--open {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.mtec-schedule-card__badge--warn {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.mtec-schedule-card__badge--full {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
}

.mtec-schedule-card__capacity {
    margin-top: 0.75rem;
}

.mtec-schedule-card__bar {
    height: 0.375rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
    overflow: hidden;
}

.mtec-schedule-card__bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    transition: width 0.35s ease;
}

.mtec-schedule-card__bar-fill--open { background: #10b981; }
.mtec-schedule-card__bar-fill--warn { background: #f59e0b; }
.mtec-schedule-card__bar-fill--full { background: #94a3b8; }

.mtec-schedule-card__capacity-text {
    margin: 0.35rem 0 0;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--mtec-blue);
    opacity: 0.85;
}

.mtec-schedule-card__slots {
    list-style: none;
    margin: 0.875rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mtec-schedule-card__slots--flat {
    margin-top: 0;
}

.mtec-schedule-slot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--mtec-deep);
}

.mtec-schedule-slot__time,
.mtec-schedule-slot__loc {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.mtec-schedule-slot__loc {
    color: var(--mtec-blue);
    font-weight: 600;
}

/* Enrollment schedule picker */
.mtec-enroll-schedule-groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}

@media (min-width: 640px) {
    .mtec-enroll-schedule-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.mtec-enroll-schedule-group {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    border: 1.5px solid rgba(0, 41, 142, 0.1);
    border-radius: 1.125rem;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mtec-enroll-schedule-group:hover:not(.is-disabled) {
    transform: translateY(-1px);
    border-color: rgba(0, 119, 200, 0.22);
    box-shadow: 0 10px 24px -16px rgba(0, 119, 200, 0.35);
}

.mtec-enroll-schedule-group input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mtec-enroll-schedule-group__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.875rem;
    background: rgba(0, 119, 200, 0.1);
    color: var(--mtec-primary, #0077C8);
    font-size: 1.125rem;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mtec-enroll-schedule-group__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-inline-end: 1.5rem;
}

.mtec-enroll-schedule-group__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mtec-enroll-schedule-group__title {
    font-size: 0.9375rem;
    font-weight: 900;
    color: var(--mtec-deep, #181E4B);
    line-height: 1.3;
}

.mtec-enroll-schedule-group__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 800;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    white-space: nowrap;
}

.mtec-enroll-schedule-group__badge--open {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.mtec-enroll-schedule-group__badge--warn {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.mtec-enroll-schedule-group__badge--full {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
}

.mtec-enroll-schedule-group__slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.mtec-enroll-schedule-group__slot {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.625rem;
    border-radius: 999px;
    background: rgba(0, 41, 142, 0.05);
    font-size: 0.6875rem;
    font-weight: 700;
    color: #475569;
}

.mtec-enroll-schedule-group__slot i {
    color: var(--mtec-primary, #0077C8);
    font-size: 0.75rem;
}

.mtec-enroll-schedule-group__capacity {
    margin-top: 0.125rem;
}

.mtec-enroll-schedule-group__bar {
    height: 0.4375rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
    overflow: hidden;
}

.mtec-enroll-schedule-group__bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    transition: width 0.35s ease;
}

.mtec-enroll-schedule-group__bar-fill--open { background: linear-gradient(90deg, #10b981, #34d399); }
.mtec-enroll-schedule-group__bar-fill--warn { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.mtec-enroll-schedule-group__bar-fill--full { background: #94a3b8; }

.mtec-enroll-schedule-group__capacity-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0.4rem 0 0;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #64748b;
}

.mtec-enroll-schedule-group__capacity-sep {
    opacity: 0.55;
}

.mtec-enroll-schedule-group__seats {
    font-weight: 800;
}

.mtec-enroll-schedule-group__seats--open { color: #047857; }
.mtec-enroll-schedule-group__seats--full { color: #64748b; }

.mtec-enroll-schedule-group__check {
    position: absolute;
    top: 0.75rem;
    inset-inline-end: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    color: #cbd5e1;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.mtec-enroll-schedule-group:has(input:checked) {
    border-color: var(--mtec-primary, #0077C8);
    background: linear-gradient(180deg, #fff 0%, rgba(0, 119, 200, 0.05) 100%);
    box-shadow: 0 12px 28px -16px rgba(0, 119, 200, 0.45), 0 0 0 3px rgba(0, 119, 200, 0.1);
}

.mtec-enroll-schedule-group:has(input:checked) .mtec-enroll-schedule-group__icon {
    background: var(--mtec-primary, #0077C8);
    color: #fff;
    transform: scale(1.04);
}

.mtec-enroll-schedule-group:has(input:checked) .mtec-enroll-schedule-group__check {
    color: var(--mtec-primary, #0077C8);
    transform: scale(1.06);
}

.mtec-enroll-schedule-group:has(input:checked) .mtec-enroll-schedule-group__check i::before {
    content: "\eb80";
}

.mtec-enroll-schedule-group.is-disabled {
    opacity: 0.62;
    cursor: not-allowed;
    background: #f1f5f9;
    transform: none;
    box-shadow: none;
}

.mtec-enroll-schedule-group.is-disabled .mtec-enroll-schedule-group__icon {
    background: rgba(100, 116, 139, 0.12);
    color: #94a3b8;
}

.mtec-enroll-schedule-group.is-disabled .mtec-enroll-schedule-group__seats--full {
    color: #94a3b8;
}
