/* ==========================================================================
   Candidate Pre-Learning Page v2 — Tabbed Sections
   ========================================================================== */

:root {
    --unv-blue: #009EDB;
    --unv-dark-blue: #0077B6;
    --unv-light-blue: #E6F7FF;
    --unv-teal: #006064;
    --unv-green: var(--unv-blue);
    --unv-green-dark: var(--unv-dark-blue);
    --unv-green-light: var(--unv-light-blue);
    --unv-gray: #F7F8FA;
    --unv-dark-gray: #666666;
    --unv-text: #333333;
    --unv-success: #10B981;
    --unv-warning: #F59E0B;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    color: var(--unv-text);
}

#maincontent { display: none; }
a { color: var(--unv-blue); }

.cpl-container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* Reveal animation */
.cpl-reveal { animation: cplReveal 0.6s ease-out both; }
@keyframes cplReveal {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Sections === */
.cpl-section { padding: 48px 0; }
.cpl-section-gray { background: var(--unv-gray); }

.cpl-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--unv-dark-blue);
    text-align: center;
    margin-bottom: 8px;
}
.cpl-section-subtitle {
    text-align: center;
    color: var(--unv-dark-gray);
    font-size: 1rem;
    margin-bottom: 36px;
    line-height: 1.6;
}

/* === Banner === */
.cpl-banner {
    position: relative;
    width: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--unv-blue) 0%, var(--unv-dark-blue) 55%, var(--unv-teal) 100%);
    overflow: hidden;
}
.cpl-banner::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(255,255,255,0.07) 0%, transparent 50%),
        radial-gradient(circle at 85% 20%, rgba(255,255,255,0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(255,255,255,0.04) 0%, transparent 45%);
    pointer-events: none;
}
.cpl-banner::after {
    content: "";
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        45deg, transparent, transparent 60px,
        rgba(255,255,255,0.012) 60px, rgba(255,255,255,0.012) 120px
    );
    pointer-events: none;
}
.cpl-banner-content {
    position: relative; z-index: 2;
    text-align: center; padding: 48px 24px; max-width: 720px;
}
.cpl-banner-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255,255,255,0.14); margin-bottom: 18px;
    backdrop-filter: blur(4px);
}
.cpl-banner-icon i { font-size: 1.5rem; color: white; }
.cpl-banner h1 {
    color: white; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700;
    margin-bottom: 12px; text-shadow: 0 2px 10px rgba(0,0,0,0.15);
    letter-spacing: -0.3px;
}
.cpl-banner p {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem); line-height: 1.7;
    color: rgba(255,255,255,0.9); font-weight: 400;
}

/* === Intro text === */
.cpl-intro-text {
    text-align: center;
    font-size: 1.02rem;
    color: var(--unv-dark-gray);
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto 36px;
}

/* === Section Navigation (tab stepper) === */
.cpl-nav {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}
.cpl-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    font-size: 0.88rem;
    color: #9ca3af;
}
.cpl-nav-item:hover {
    border-color: var(--unv-blue);
    color: var(--unv-dark-blue);
    background: var(--unv-light-blue);
}
.cpl-nav-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f3f4f6;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 0.25s;
}
.cpl-nav-label {
    font-weight: 500;
    white-space: nowrap;
}

/* Active nav */
.cpl-nav-item.is-active {
    border-color: var(--unv-green);
    background: var(--unv-green-light);
    color: var(--unv-green-dark);
    box-shadow: 0 2px 12px rgba(0,158,219,0.15);
}
.cpl-nav-item.is-active .cpl-nav-num {
    background: var(--unv-green);
    color: white;
}

/* Visited nav */
.cpl-nav-item.is-visited {
    border-color: #b3e5fc;
    color: var(--unv-text);
}
.cpl-nav-item.is-visited .cpl-nav-num {
    background: var(--unv-success);
    color: white;
    font-size: 0;
}
.cpl-nav-item.is-visited .cpl-nav-num::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: white;
}

/* === Tab header === */
.cpl-tab-header {
    margin-bottom: 24px;
}

/* === Tab footer (prev/next) === */
.cpl-tab-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    gap: 12px;
}
.cpl-btn-prev,
.cpl-btn-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid var(--unv-green);
    border-radius: 8px;
    font-size: 0.93rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
}
.cpl-btn-prev {
    background: white;
    color: var(--unv-green-dark);
}
.cpl-btn-prev:hover {
    background: var(--unv-green-light);
}
.cpl-btn-next {
    background: var(--unv-green);
    color: white;
    border-color: var(--unv-green);
    margin-left: auto;
    box-shadow: 0 4px 14px rgba(0,158,219,0.25);
}
.cpl-btn-next:hover {
    background: var(--unv-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,158,219,0.3);
}

/* === Content card === */
.cpl-content-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    padding: 36px 32px;
    line-height: 1.7;
    font-size: 1rem;
    color: var(--unv-text);
}
.cpl-content-card h2 {
    color: var(--unv-dark-blue); font-size: 1.35rem; font-weight: 700;
    margin: 28px 0 14px; padding-bottom: 8px;
    border-bottom: 3px solid var(--unv-green); display: inline-block;
}
.cpl-content-card h2:first-child { margin-top: 0; }
.cpl-content-card h3 {
    color: var(--unv-dark-blue); font-size: 1.1rem; font-weight: 600;
    margin: 28px 0 10px; padding: 14px 18px;
    background: linear-gradient(135deg, var(--unv-green-light), #d4eef9);
    border-left: 4px solid var(--unv-green); border-radius: 0 8px 8px 0;
}
.cpl-content-card h3:first-child { margin-top: 0; }
.cpl-content-card h4 {
    color: var(--unv-dark-blue); font-size: 1rem; font-weight: 600;
    margin: 20px 0 8px;
}
.cpl-content-card h4:first-child { margin-top: 0; }
.cpl-content-card p { margin-bottom: 14px; }
.cpl-content-card ul, .cpl-content-card ol { margin-bottom: 14px; padding-left: 24px; }
.cpl-content-card li { margin-bottom: 6px; }
.cpl-content-card a { color: var(--unv-blue); text-decoration: none; font-weight: 500; }
.cpl-content-card a:hover { text-decoration: underline; }

/* === Tables === */
.cpl-table,
.cpl-content-card table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    margin: 16px 0 24px;
    border: 1px solid #e5e7eb;
}
.cpl-table thead th,
.cpl-content-card th {
    background: linear-gradient(135deg, var(--unv-blue), var(--unv-dark-blue));
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}
.cpl-table tbody td,
.cpl-content-card td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.93rem;
    vertical-align: top;
}
.cpl-table tbody tr:last-child td,
.cpl-content-card tr:last-child td { border-bottom: none; }
.cpl-table tbody tr:nth-child(even) td,
.cpl-content-card tr:nth-child(even) td { background: #f9fafb; }

/* === Callouts === */
.cpl-callout {
    border-radius: 10px;
    padding: 16px 20px;
    margin: 16px 0 24px;
    font-size: 0.93rem;
    line-height: 1.6;
    border-left: 4px solid;
}
.cpl-callout-tip {
    background: var(--unv-green-light);
    border-left-color: var(--unv-green);
    color: #004a73;
}
.cpl-callout-info {
    background: var(--unv-light-blue);
    border-left-color: var(--unv-blue);
    color: #004a73;
}

/* === Category cards with PDF thumbnail previews === */
.cpl-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0 28px;
}
.cpl-category-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.cpl-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

/* Thumbnail area */
.cpl-cat-thumb {
    position: relative;
    overflow: hidden;
    background: #f0f2f5;
    border-bottom: 1px solid #e5e7eb;
}
.cpl-cat-thumb a {
    display: block;
    text-decoration: none;
}
.cpl-cat-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cpl-cat-thumb a:hover img {
    transform: scale(1.03);
}
.cpl-cat-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 30, 60, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(2px);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    pointer-events: none;
}
.cpl-cat-thumb a:hover .cpl-cat-thumb-overlay {
    opacity: 1;
}
.cpl-cat-thumb-overlay i {
    font-size: 1.2rem;
}

/* Card body */
.cpl-cat-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.cpl-cat-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    width: fit-content;
}
.cpl-cat-community .cpl-cat-badge { background: #e0f7f0; color: #00796b; }
.cpl-cat-associate .cpl-cat-badge { background: #fff8e1; color: #bf8f00; }
.cpl-cat-specialist .cpl-cat-badge { background: #fbe9e7; color: #c75b39; }
.cpl-cat-expert .cpl-cat-badge { background: #FFF3E0; color: #BF6900; }
.cpl-cat-online .cpl-cat-badge { background: #e0f2fe; color: #0369a1; }

/* Online assignment: video + PDF side by side */
.cpl-online-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: start;
}
.cpl-online-row .cpl-video-card { margin-bottom: 0; }
.cpl-online-row .cpl-category-card { height: 100%; }
@media (max-width: 680px) {
    .cpl-online-row { grid-template-columns: 1fr; }
}

/* Course promo card (Page 1) */
.cpl-course-promo {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    margin: 1.2rem 0;
    transition: box-shadow 0.2s;
}
.cpl-course-promo:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.cpl-course-promo img {
    width: 280px;
    height: auto;
    object-fit: cover;
    display: block;
}
.cpl-course-promo-info {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cpl-course-promo-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--unv-light-blue);
    color: var(--unv-dark-blue);
    margin-bottom: 8px;
    width: fit-content;
}
.cpl-course-promo-info h4 { font-size: 1.05rem; margin: 0 0 6px; }
.cpl-course-promo-info h4 a { color: var(--unv-text); text-decoration: none; }
.cpl-course-promo-info h4 a:hover { color: var(--unv-blue); }
.cpl-course-promo-info p { font-size: 0.85rem; color: var(--unv-dark-gray); margin: 0; }
@media (max-width: 600px) {
    .cpl-course-promo { flex-direction: column; }
    .cpl-course-promo img { width: 100%; max-height: 180px; }
}

/* UVP ID guide image in Section 5 */
.cpl-uvpid-guide {
    margin: 20px 0;
    text-align: center;
}
.cpl-uvpid-guide img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cpl-category-card h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--unv-text);
    margin: 0 0 6px;
}
.cpl-category-card p {
    font-size: 0.84rem;
    color: var(--unv-dark-gray);
    line-height: 1.5;
    margin: 0;
}

/* Expert card (no thumbnail) — distinct treatment */
.cpl-cat-no-thumb {
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(160deg, #fffaf0 0%, #fff3e0 100%);
    border: 2px dashed #f0d9b5;
    padding: 24px 20px;
}
.cpl-cat-icon-large {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe0b2, #ffcc80);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.cpl-cat-icon-large i {
    font-size: 1.4rem;
    color: #BF6900;
}
.cpl-cat-no-thumb .cpl-cat-body {
    align-items: center;
    text-align: center;
}

/* === Volunteer Story cards === */
.cpl-story-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0 28px;
}
.cpl-story-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.cpl-story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    text-decoration: none;
    color: inherit;
}
.cpl-story-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #f0f2f5;
}
.cpl-story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cpl-story-card:hover .cpl-story-thumb img {
    transform: scale(1.05);
}
.cpl-story-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 30, 60, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(2px);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.cpl-story-card:hover .cpl-story-overlay {
    opacity: 1;
}
.cpl-story-body {
    padding: 16px 20px;
}
.cpl-story-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--unv-light-blue);
    color: var(--unv-dark-blue);
    margin-bottom: 6px;
}
.cpl-story-body h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--unv-text);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .cpl-story-grid { grid-template-columns: 1fr; }
}

/* === Video cards === */
.cpl-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0 28px;
}
.cpl-video-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}
.cpl-video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.cpl-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #1a1a2e;
}
.cpl-video-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}
.cpl-video-info {
    padding: 14px 18px;
}
.cpl-video-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--unv-text);
    margin: 0 0 4px;
}
.cpl-video-info p {
    font-size: 0.82rem;
    color: var(--unv-dark-gray);
    margin: 0;
    line-height: 1.4;
}

/* Single video card (not in grid) — wider */
.cpl-content-card > .cpl-video-card {
    max-width: 560px;
    margin: 20px 0 28px;
}

/* === Quiz === */
.cpl-quiz-intro {
    margin-bottom: 24px;
}
.cpl-quiz-question {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 16px;
}
.cpl-quiz-question h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--unv-dark-blue);
    margin: 0 0 14px;
}
.cpl-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cpl-quiz-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--unv-text);
    cursor: pointer;
    transition: all 0.2s;
}
.cpl-quiz-option:hover:not(:disabled) {
    border-color: var(--unv-green);
    background: var(--unv-green-light);
}
.cpl-quiz-option:disabled {
    cursor: default;
    opacity: 0.8;
}
.cpl-quiz-option.is-correct {
    border-color: var(--unv-success) !important;
    background: #ecfdf5 !important;
    color: #065f46;
    opacity: 1 !important;
}
.cpl-quiz-option.is-wrong {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
    color: #991b1b;
    opacity: 1 !important;
}
.cpl-quiz-feedback {
    display: none;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
}
.cpl-quiz-feedback.visible { display: flex; align-items: center; gap: 6px; }
.cpl-quiz-feedback.correct { background: #ecfdf5; color: #065f46; }
.cpl-quiz-feedback.wrong { background: #fef2f2; color: #991b1b; }
.cpl-quiz-feedback i { font-size: 1rem; }

.cpl-quiz-result {
    text-align: center;
    padding: 28px 24px;
    background: linear-gradient(135deg, var(--unv-green-light), #b3e5fc);
    border-radius: 12px;
    margin: 24px 0;
    animation: cplReveal 0.5s ease-out both;
}
.cpl-quiz-result-icon { font-size: 2.4rem; color: var(--unv-green); margin-bottom: 8px; }
.cpl-quiz-result h3 { font-size: 1.2rem; font-weight: 700; color: var(--unv-green-dark); margin-bottom: 4px; }
.cpl-quiz-result p { font-size: 0.9rem; color: #005a8c; }

/* Declaration gate */
.cpl-declare-gate {
    margin-top: 28px;
}

/* === Form === */
.cpl-form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    animation: cplReveal 0.5s ease-out both;
}
.cpl-form-header {
    background: linear-gradient(135deg, var(--unv-green-light) 0%, #b3e5fc 100%);
    padding: 24px 32px;
    border-bottom: 1px solid #81d4fa;
    display: flex; align-items: flex-start; gap: 16px;
}
.cpl-form-header-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--unv-green), var(--unv-green-dark));
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cpl-form-header-icon i { color: white; font-size: 1.1rem; }
.cpl-form-header h2 {
    font-size: 1.2rem; font-weight: 600; color: var(--unv-green-dark); margin-bottom: 4px;
}
.cpl-form-header p { font-size: 0.88rem; color: #005a8c; line-height: 1.5; }
.cpl-form-body { padding: 28px 32px 32px; }
.cpl-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cpl-form-group { margin-bottom: 20px; min-width: 0; width: 100%; }
.cpl-form-group label {
    display: block; font-size: 0.88rem; font-weight: 600;
    color: var(--unv-text); margin-bottom: 6px;
}
.cpl-form-group label .required { color: #ef4444; margin-left: 2px; }
.cpl-form-input,
.cpl-form-body input[type="text"].cpl-form-input,
.cpl-form-body input[type="email"].cpl-form-input {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid #d1d5db; border-radius: 8px;
    font-size: 0.93rem; font-family: inherit; color: var(--unv-text);
    background: white; transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box; max-width: 100%;
}
.cpl-form-input:focus {
    outline: none; border-color: var(--unv-green);
    box-shadow: 0 0 0 3px rgba(0,158,219,0.12);
}
.cpl-form-input::placeholder { color: #9ca3af; }
.cpl-form-input.input-error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.08); }
.cpl-field-error { display: none; font-size: 0.8rem; color: #ef4444; margin-top: 5px; }
.cpl-field-error.visible { display: block; }
.cpl-honeypot {
    position: absolute; left: -9999px; opacity: 0;
    height: 0; width: 0; overflow: hidden; pointer-events: none;
}
.cpl-submit-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 13px 32px; border: none; border-radius: 8px;
    font-size: 1rem; font-weight: 600; font-family: inherit; color: white;
    background: linear-gradient(135deg, var(--unv-green), var(--unv-green-dark));
    cursor: pointer; transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0,158,219,0.25);
}
.cpl-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,158,219,0.35); }
.cpl-submit-btn:active { transform: translateY(0); }
.cpl-submit-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.cpl-submit-btn i { font-size: 0.9rem; }

/* === Status cards === */
.cpl-status-card {
    border-radius: 12px; padding: 28px 32px; margin-bottom: 28px;
    display: flex; align-items: flex-start; gap: 16px; border: 1px solid;
    animation: cplReveal 0.5s ease-out both;
}
.cpl-status-icon {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.cpl-status-body h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.cpl-status-body p { font-size: 0.9rem; line-height: 1.6; }
.cpl-status-success { background: linear-gradient(135deg,#f0f9ff,#e0f2fe); border-color: #b3e5fc; }
.cpl-status-success .cpl-status-icon { background: #22c55e; color: white; }
.cpl-status-success h3 { color: #166534; } .cpl-status-success p { color: #15803d; }
.cpl-status-error { background: linear-gradient(135deg,#fef2f2,#fee2e2); border-color: #fecaca; }
.cpl-status-error .cpl-status-icon { background: #ef4444; color: white; }
.cpl-status-error h3 { color: #991b1b; } .cpl-status-error p { color: #b91c1c; }
.cpl-status-info { background: linear-gradient(135deg,#eff6ff,#dbeafe); border-color: #bfdbfe; }
.cpl-status-info .cpl-status-icon { background: var(--unv-blue); color: white; }
.cpl-status-info h3 { color: #1e40af; } .cpl-status-info p { color: #1d4ed8; }
.cpl-status-applied { background: linear-gradient(135deg,#ecfdf5,#d1fae5); border-color: #a7f3d0; }
.cpl-status-applied .cpl-status-icon { background: var(--unv-success); color: white; }
.cpl-status-applied h3 { color: #065f46; } .cpl-status-applied p { color: #047857; }
.cpl-status-disabled { background: linear-gradient(135deg,var(--unv-gray),#e5e5e5); border-color: #d4d4d4; }
.cpl-status-disabled .cpl-status-icon { background: var(--unv-dark-gray); color: white; }
.cpl-status-disabled h3 { color: #404040; } .cpl-status-disabled p { color: var(--unv-dark-gray); }

/* === FAQ === */
.cpl-faq-list { max-width: 720px; margin: 0 auto; }
.cpl-faq-item {
    background: white; border: 1px solid #e5e7eb; border-radius: 10px;
    margin-bottom: 10px; overflow: hidden; transition: box-shadow 0.2s;
}
.cpl-faq-item:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.cpl-faq-item[open] { border-color: var(--unv-green); box-shadow: 0 2px 12px rgba(0,158,219,0.1); }
.cpl-faq-item summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; cursor: pointer; font-weight: 600;
    font-size: 0.95rem; color: var(--unv-text); list-style: none;
    transition: color 0.2s;
}
.cpl-faq-item summary::-webkit-details-marker { display: none; }
.cpl-faq-item summary::after {
    content: '\f078'; font-family: 'Font Awesome 5 Free'; font-weight: 900;
    font-size: 0.75rem; color: var(--unv-dark-gray); transition: transform 0.25s;
}
.cpl-faq-item[open] summary::after { transform: rotate(180deg); }
.cpl-faq-item[open] summary { color: var(--unv-green-dark); }
.cpl-faq-answer {
    padding: 0 20px 18px; font-size: 0.9rem;
    color: var(--unv-dark-gray); line-height: 1.65;
}

/* === Selected Banner === */
.cpl-selected-banner {
    background: #f0fdf4;
    border-top: 3px solid #22c55e;
    border-bottom: 1px solid #bbf7d0;
    padding: 32px 0;
}
.cpl-selected-banner .cpl-support-inner {
    justify-content: flex-start;
    text-align: left;
    align-items: center;
    flex-wrap: nowrap;
}
.cpl-selected-banner .cpl-support-icon {
    background: #22c55e;
    color: #fff;
    flex-shrink: 0;
}
.cpl-selected-banner .cpl-support-body h3 { color: #166534 !important; margin: 0 0 6px 0; font-size: 1.15rem; }
.cpl-selected-banner .cpl-support-body p { color: #374151 !important; margin: 0; font-size: 0.92rem; }
.cpl-selected-banner .cpl-support-body a { color: #059669; font-weight: 600; }
.cpl-selected-banner .cpl-support-body a:hover { color: #047857; }

/* === Support === */
.cpl-support {
    background: linear-gradient(135deg, var(--unv-dark-blue) 0%, var(--unv-teal) 100%);
    padding: 40px 0;
}
.cpl-support-inner {
    display: flex; align-items: center; gap: 20px;
    justify-content: center; flex-wrap: wrap; text-align: center;
}
.cpl-support-icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,0.12); display: flex;
    align-items: center; justify-content: center;
}
.cpl-support-icon i { color: white; font-size: 1.3rem; }
.cpl-support-body h3 { color: white; font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }
.cpl-support-body p { color: rgba(255,255,255,0.85); font-size: 0.92rem; line-height: 1.5; }

/* === Footer === */
.cpl-footer {
    text-align: center; padding: 24px 20px;
    color: #9ca3af; font-size: 0.82rem;
    border-top: 1px solid #e5e7eb;
}
.cpl-footer a { color: var(--unv-blue); text-decoration: none; }
.cpl-footer a:hover { text-decoration: underline; }

/* === Toast === */
.unv-toast-container {
    position: fixed; top: 24px; right: 24px; z-index: 10000;
    display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.unv-toast {
    pointer-events: auto; display: flex; align-items: flex-start; gap: 12px;
    min-width: 300px; max-width: 420px; padding: 14px 18px;
    border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,0.16);
    animation: unvToastIn 0.35s cubic-bezier(0.22,1,0.36,1) forwards;
    border-left: 4px solid; backdrop-filter: blur(8px); position: relative;
}
.unv-toast.toast-hiding { animation: unvToastOut 0.3s ease forwards; }
.unv-toast-success { background: linear-gradient(135deg,#f0fdf4,#dcfce7); border-left-color: #22c55e; }
.unv-toast-error { background: linear-gradient(135deg,#fef2f2,#fee2e2); border-left-color: #ef4444; }
.unv-toast-warning { background: linear-gradient(135deg,#fffbeb,#fef3c7); border-left-color: #f59e0b; }
.unv-toast-info { background: linear-gradient(135deg,#eff6ff,#dbeafe); border-left-color: var(--unv-blue); }
.unv-toast-icon {
    flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
}
.unv-toast-success .unv-toast-icon { background: #22c55e; color: white; }
.unv-toast-error .unv-toast-icon { background: #ef4444; color: white; }
.unv-toast-warning .unv-toast-icon { background: #f59e0b; color: white; }
.unv-toast-info .unv-toast-icon { background: var(--unv-blue); color: white; }
.unv-toast-body { flex: 1; min-width: 0; }
.unv-toast-title { font-weight: 600; font-size: 0.85rem; margin-bottom: 2px; }
.unv-toast-success .unv-toast-title { color: #166534; }
.unv-toast-error .unv-toast-title { color: #991b1b; }
.unv-toast-warning .unv-toast-title { color: #92400e; }
.unv-toast-info .unv-toast-title { color: #1e40af; }
.unv-toast-message { font-size: 0.8rem; line-height: 1.4; }
.unv-toast-success .unv-toast-message { color: #15803d; }
.unv-toast-error .unv-toast-message { color: #b91c1c; }
.unv-toast-warning .unv-toast-message { color: #a16207; }
.unv-toast-info .unv-toast-message { color: #1d4ed8; }
.unv-toast-close {
    flex-shrink: 0; background: none; border: none; cursor: pointer;
    font-size: 1.1rem; line-height: 1; color: #9ca3af; padding: 0;
    margin-top: -2px; transition: color 0.2s;
}
.unv-toast-close:hover { color: #374151; }
.unv-toast-progress {
    position: absolute; bottom: 0; left: 4px; right: 0;
    height: 3px; border-radius: 0 0 6px 0; overflow: hidden;
}
.unv-toast-progress-bar { height: 100%; border-radius: 2px; animation: unvToastProgress linear forwards; }
.unv-toast-success .unv-toast-progress-bar { background: #22c55e; }
.unv-toast-error .unv-toast-progress-bar { background: #ef4444; }
.unv-toast-warning .unv-toast-progress-bar { background: #f59e0b; }
.unv-toast-info .unv-toast-progress-bar { background: var(--unv-blue); }
@keyframes unvToastIn { from { opacity:0; transform: translateX(40px) scale(0.95); } to { opacity:1; transform: translateX(0) scale(1); } }
@keyframes unvToastOut { from { opacity:1; transform: translateX(0) scale(1); } to { opacity:0; transform: translateX(40px) scale(0.9); } }
@keyframes unvToastProgress { from { width:100%; } to { width:0%; } }

/* === Responsive === */
@media (max-width: 768px) {
    .cpl-section { padding: 36px 0; }
    .cpl-banner { min-height: 220px; }
    .cpl-banner-content { padding: 36px 16px; }
    .cpl-nav { gap: 8px; }
    .cpl-nav-item { padding: 10px 14px; font-size: 0.82rem; }
    .cpl-nav-label { display: none; }
    .cpl-nav-num { width: 36px; height: 36px; font-size: 0.9rem; }
    .cpl-content-card { padding: 24px 20px; }
    .cpl-category-grid { grid-template-columns: 1fr; }
    .cpl-video-grid { grid-template-columns: 1fr; }
    .cpl-course-promo img { width: 200px; }
    .cpl-form-header { padding: 20px; flex-direction: column; align-items: flex-start; }
    .cpl-form-body { padding: 20px; }
    .cpl-form-row { grid-template-columns: 1fr; }
    .cpl-status-card {
        padding: 20px; flex-direction: column;
        align-items: center; text-align: center;
    }
    .cpl-submit-btn { width: 100%; }
    .cpl-support-inner { flex-direction: column; }
    .cpl-tab-footer { flex-direction: column; }
    .cpl-btn-prev, .cpl-btn-next { width: 100%; justify-content: center; }
    .cpl-btn-next { margin-left: 0; }
    .unv-toast-container { top: auto; bottom: 16px; right: 12px; left: 12px; }
    .unv-toast { min-width: 0; max-width: none; }
}

@media (max-width: 480px) {
    .cpl-nav-item { padding: 8px 10px; }
    .cpl-nav-num { width: 32px; height: 32px; font-size: 0.82rem; }
}
