.welcome-popup {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
}

.welcome-popup.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.welcome-popup.is-closing {
    opacity: 0;
    visibility: visible;
}

.welcome-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
}

.welcome-popup-content {
    position: relative;
    z-index: 1;
    display: block;
    width: min(92vw, 860px);
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .38);
    overflow: hidden;
    transform: translateY(14px) scale(.96);
    opacity: 0;
    transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .28s ease;
}

.welcome-popup.is-visible .welcome-popup-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.welcome-popup.is-closing .welcome-popup-content {
    transform: translateY(10px) scale(.97);
    opacity: 0;
}

.welcome-popup-content img {
    display: block;
    width: 100%;
    height: auto;
}

.family-carousel-wrapper {
    position: relative;
}

.family-section .section-subtitle {
    margin-inline: auto;
    text-align: center;
}

.highlights-grid-section {
    background: #f4f4f4;
}

.home-training-card-content {
    display: flex;
    height: 100%;
    padding: 40px;
    flex-direction: column;
    justify-content: flex-start;
}

.home-training-lead {
    margin: 0 0 20px;
    color: #e2e8f0;
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.4;
}

.home-training-features {
    display: flex;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    flex-direction: column;
    gap: 10px;
}

.home-training-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
}

.home-training-enroll {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 150px;
    padding: 18px 25px;
    border-radius: 16px;
    background: #e30613;
    color: #fff;
    font-size: .85rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(227, 6, 19, .3);
    transition: transform .3s ease, box-shadow .3s ease;
}

.home-training-enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(227, 6, 19, .4);
}

.home-company-action {
    margin-top: 28px;
}

.home-faq-link {
    display: block;
}

.home-faq-link-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 20px;
    color: #1a202c;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.3px;
    transition: transform .3s ease, color .3s ease, background-color .3s ease;
}

.home-faq-link:hover .home-faq-link-inner {
    transform: scale(1.02);
    background: rgba(230, 0, 35, .06);
    color: var(--brand);
}

[data-theme="dark"] .home-faq-link-inner {
    color: #f8fafc;
}

@media (max-width: 640px) {
    .welcome-popup { padding: 12px; }
    .home-training-card-content { padding: 28px; }
    .home-training-enroll { margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .welcome-popup,
    .welcome-popup-content,
    .home-training-enroll,
    .traffic-source-survey,
    .traffic-source-survey-modal,
    .traffic-source-option { transition: none !important; }
}

/* Traffic Source Survey Modal - Original total2 style */
.traffic-source-survey[hidden] {
    display: none !important;
}

body.survey-open {
    overflow: hidden;
}

.traffic-source-survey {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background:
        radial-gradient(circle at 28% 18%, rgba(227, 6, 19, 0.16), transparent 28%),
        rgba(8, 12, 18, 0.48);
    backdrop-filter: blur(14px) saturate(1.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.traffic-source-survey.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.traffic-source-survey.is-closing {
    opacity: 0;
    pointer-events: none;
}

.traffic-source-survey-backdrop {
    position: absolute;
    inset: 0;
}

.traffic-source-survey-modal {
    position: relative;
    z-index: 1;
    width: min(100%, 640px);
    max-height: min(92vh, 840px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(227, 6, 19, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(15, 23, 42, 0.08), transparent 42%),
        rgba(255, 255, 255, 0.98);
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.26);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.24s ease;
}

.traffic-source-survey-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), transparent 34%);
}

.traffic-source-survey.is-visible .traffic-source-survey-modal {
    transform: translateY(0) scale(1);
}

.traffic-source-survey-content {
    position: relative;
    z-index: 1;
    padding: clamp(22px, 4vw, 32px);
    text-align: center;
}

.traffic-source-survey-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #0f172a;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.traffic-source-survey-close:hover,
.traffic-source-survey-close:focus-visible {
    border-color: rgba(227, 6, 19, 0.38);
    color: #e30613;
    transform: translateY(-1px);
}

.traffic-source-survey-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.traffic-source-survey-icon svg {
    width: 48px;
    height: 48px;
    overflow: visible;
}

.traffic-source-bubble {
    stroke: #172536;
    stroke-width: 5.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.traffic-source-check {
    stroke: #12c957;
    stroke-width: 6.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.traffic-source-survey-modal h2 {
    max-width: 460px;
    margin: 0 auto;
    color: #0f172a;
    font-size: clamp(1.6rem, 4.5vw, 2.1rem);
    font-weight: 900;
    line-height: 1.1;
}

.traffic-source-survey-intro {
    max-width: 420px;
    margin: 10px auto 0;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.45;
}

.traffic-source-survey-question {
    max-width: 420px;
    margin: 12px auto 18px;
    color: #334155;
    font-size: clamp(0.98rem, 2.2vw, 1.1rem);
    font-weight: 760;
    line-height: 1.4;
}

.traffic-source-survey-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.traffic-source-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 13px 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.88);
    color: #0f172a;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 850;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.traffic-source-option-mark {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(100, 116, 139, 0.5);
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 4px #fff;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.traffic-source-option:hover,
.traffic-source-option:focus-visible {
    border-color: rgba(227, 6, 19, 0.45);
    background: #fff;
    color: #b3050f;
    box-shadow: 0 10px 24px rgba(227, 6, 19, 0.12);
    transform: translateY(-1px);
    outline: none;
}

.traffic-source-option:hover .traffic-source-option-mark,
.traffic-source-option:focus-visible .traffic-source-option-mark {
    border-color: #e30613;
    background: #e30613;
    box-shadow: inset 0 0 0 4px #fff;
}

.traffic-source-option:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
    box-shadow: none;
}

.traffic-source-survey-options[hidden],
.traffic-source-survey-question[hidden],
.traffic-source-survey-thanks[hidden] {
    display: none !important;
}

.traffic-source-survey-thanks {
    display: grid;
    min-height: 150px;
    place-items: center;
    margin: 12px 0 0;
    padding: 24px 14px;
    border: 1px solid rgba(227, 6, 19, 0.14);
    border-radius: 18px;
    background: rgba(227, 6, 19, 0.06);
    color: #0f172a;
    font-size: clamp(1.28rem, 4vw, 1.72rem);
    font-weight: 900;
    line-height: 1.2;
    outline: none;
}

[data-theme="dark"] .traffic-source-survey {
    background:
        radial-gradient(circle at 28% 18%, rgba(227, 6, 19, 0.2), transparent 30%),
        rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .traffic-source-survey-modal {
    border-color: rgba(255, 255, 255, 0.13);
    background:
        linear-gradient(135deg, rgba(227, 6, 19, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 38%),
        rgba(7, 16, 24, 0.98);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.58);
}

[data-theme="dark"] .traffic-source-survey-modal::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%);
}

[data-theme="dark"] .traffic-source-survey-close {
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

[data-theme="dark"] .traffic-source-survey-icon {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

[data-theme="dark"] .traffic-source-bubble {
    stroke: #f8fafc;
}

[data-theme="dark"] .traffic-source-survey-modal h2,
[data-theme="dark"] .traffic-source-survey-thanks {
    color: #fff;
}

[data-theme="dark"] .traffic-source-survey-question {
    color: rgba(226, 232, 240, 0.86);
}

[data-theme="dark"] .traffic-source-survey-intro {
    color: rgba(226, 232, 240, 0.74);
}

[data-theme="dark"] .traffic-source-option {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.065);
    color: #f8fafc;
}

[data-theme="dark"] .traffic-source-option-mark {
    border-color: rgba(226, 232, 240, 0.45);
    background: rgba(7, 16, 24, 0.9);
    box-shadow: inset 0 0 0 4px rgba(7, 16, 24, 0.9);
}

[data-theme="dark"] .traffic-source-option:hover,
[data-theme="dark"] .traffic-source-option:focus-visible {
    border-color: rgba(227, 6, 19, 0.58);
    background: rgba(227, 6, 19, 0.15);
    color: #fff;
}

[data-theme="dark"] .traffic-source-option:hover .traffic-source-option-mark,
[data-theme="dark"] .traffic-source-option:focus-visible .traffic-source-option-mark {
    border-color: #e30613;
    background: #e30613;
    box-shadow: inset 0 0 0 4px #071018;
}

[data-theme="dark"] .traffic-source-survey-thanks {
    border-color: rgba(227, 6, 19, 0.26);
    background: rgba(227, 6, 19, 0.13);
}

@media (max-width: 560px) {
    .traffic-source-survey {
        padding: 14px;
    }
    .traffic-source-survey-options {
        grid-template-columns: minmax(0, 1fr);
    }
}


