@charset "UTF-8";

/* =========================================================
   KS01 Assessment Widget - Premium Luxury Design
   ========================================================= */

/* ===== CSS Variables for Premium Theme ===== */
:root {
    --ks01-primary: #0A5EAA;
    --ks01-primary-light: #1A7DD4;
    --ks01-primary-dark: #084A88;
    --ks01-accent: #FFD700;
    --ks01-gradient-start: #0A5EAA;
    --ks01-gradient-end: #1A7DD4;
    --ks01-bg-light: #F8FBFF;
    --ks01-bg-gradient: linear-gradient(180deg, #E8F4FF 0%, #F8FBFF 50%, #FFFFFF 100%);
    --ks01-text-primary: #1A3A5C;
    --ks01-text-secondary: #5A7A9A;
    --ks01-text-muted: #8AA4BC;
    --ks01-shadow-sm: 0 2px 8px rgba(10, 94, 170, 0.08);
    --ks01-shadow-md: 0 4px 20px rgba(10, 94, 170, 0.12);
    --ks01-shadow-lg: 0 8px 40px rgba(10, 94, 170, 0.15);
    --ks01-shadow-glow: 0 0 30px rgba(10, 94, 170, 0.25);
    --ks01-radius-sm: 8px;
    --ks01-radius-md: 12px;
    --ks01-radius-lg: 20px;
    --ks01-radius-full: 9999px;
    --ks01-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Base Widget Container ===== */
.ks01-assessment-widget {
    font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--ks01-bg-gradient);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    overflow-y: auto;
    color: var(--ks01-text-primary);
    display: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ks01-assessment-widget.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Premium Header ===== */
.ks01-header-simple {
    background: linear-gradient(to bottom, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
    border-bottom: 1px solid rgba(10, 94, 170, 0.08);
    box-shadow: var(--ks01-shadow-sm);
}

.ks01-back-arrow {
    position: absolute;
    left: 16px;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--ks01-primary);
    cursor: pointer;
    padding: 8px;
    margin: 0;
    transition: var(--ks01-transition);
    border-radius: var(--ks01-radius-full);
}

.ks01-back-arrow:hover {
    background: rgba(10, 94, 170, 0.08);
    transform: translateX(-2px);
}

.ks01-header-logo-img {
    text-align: center;
}

.ks01-header-logo-img img {
    height: 24px;
    width: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.ks01-header-sub {
    font-size: 11px;
    color: var(--ks01-primary);
    font-weight: 600;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* ===== Premium Step Indicator ===== */
.ks01-steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px 0;
    padding: 16px 24px;
    position: relative;
    gap: 60px;
    background: rgba(255,255,255,0.6);
    border-radius: var(--ks01-radius-lg);
    margin-left: 20px;
    margin-right: 20px;
    box-shadow: var(--ks01-shadow-sm);
}

.ks01-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.ks01-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E0EEF9 0%, #C8DDF0 100%);
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    color: var(--ks01-text-muted);
    transition: var(--ks01-transition);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.ks01-step.active .ks01-step-circle {
    background: linear-gradient(135deg, var(--ks01-gradient-start) 0%, var(--ks01-gradient-end) 100%);
    color: white;
    box-shadow: var(--ks01-shadow-glow);
    transform: scale(1.1);
}

.ks01-step-label {
    font-size: 11px;
    color: var(--ks01-text-muted);
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: var(--ks01-transition);
}

.ks01-step.active .ks01-step-label {
    color: var(--ks01-primary);
}

.ks01-step-line {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #E0EEF9 0%, #C8DDF0 100%);
    z-index: 1;
    border-radius: 2px;
}

/* ===== Content Areas ===== */
.ks01-content {
    padding: 0 24px 48px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.ks01-content-centered {
    padding: 0 24px 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    max-width: 400px;
    margin: 0 auto;
}

/* ===== Premium Typography ===== */
.ks01-title-main {
    font-size: 26px;
    color: var(--ks01-text-primary);
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.ks01-title-large-blue {
    font-size: 22px;
    background: linear-gradient(135deg, var(--ks01-gradient-start) 0%, var(--ks01-gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}

.ks01-title-blue {
    font-size: 18px;
    color: var(--ks01-primary);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.5;
}

.ks01-guide-text-sm {
    font-size: 14px;
    color: var(--ks01-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.ks01-guide-text-blue {
    font-size: 14px;
    color: var(--ks01-text-secondary);
    margin: 16px 0;
    line-height: 1.6;
}

.ks01-guide-text-blue-bold {
    font-size: 15px;
    color: var(--ks01-primary);
    font-weight: 600;
    margin-top: 20px;
}

/* ===== Camera Frame (Initial Screen) ===== */
.ks01-camera-frame {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 24px;
    background: linear-gradient(145deg, #E8F4FF 0%, #F0F7FF 100%);
    border-radius: var(--ks01-radius-lg);
    overflow: hidden;
    box-shadow: var(--ks01-shadow-md), inset 0 0 60px rgba(10, 94, 170, 0.05);
    border: 2px solid rgba(10, 94, 170, 0.1);
}

.ks01-camera-guide-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px dashed rgba(10, 94, 170, 0.25);
    border-radius: 50%;
    pointer-events: none;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
}

.ks01-sample-watch-bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.08;
    pointer-events: none;
}

/* ===== Trimming Container (Confirm Screen) ===== */
.ks01-trim-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 24px;
    background: linear-gradient(145deg, #1A2A3A 0%, #0A1A2A 100%);
    border-radius: var(--ks01-radius-md);
    overflow: hidden;
    touch-action: none;
    cursor: move;
    box-shadow: var(--ks01-shadow-lg), 0 0 0 1px rgba(255,255,255,0.1);
}

.ks01-trim-corner {
    position: absolute;
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 215, 0, 0.9);
    z-index: 20;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.ks01-trim-corner.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; border-radius: 4px 0 0 0; }
.ks01-trim-corner.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; border-radius: 0 4px 0 0; }
.ks01-trim-corner.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; border-radius: 0 0 0 4px; }
.ks01-trim-corner.br { bottom: 12px; right: 12px; border-left: none; border-top: none; border-radius: 0 0 4px 0; }

.ks01-trim-img-wrapper {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: center center;
}

.ks01-trim-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.ks01-hint-icon {
    font-size: 18px;
    margin-right: 6px;
}

/* ===== Premium Camera Button ===== */
.ks01-actions-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.ks01-btn-circle-large-blue {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--ks01-gradient-start) 0%, var(--ks01-gradient-end) 100%);
    color: white;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 17px;
    box-shadow: 
        var(--ks01-shadow-lg),
        0 0 40px rgba(10, 94, 170, 0.3),
        inset 0 2px 0 rgba(255,255,255,0.15);
    cursor: pointer;
    transition: var(--ks01-transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.ks01-btn-circle-large-blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.ks01-btn-circle-large-blue:hover::before {
    left: 100%;
}

.ks01-btn-circle-large-blue:hover {
    transform: scale(1.05);
    box-shadow: 
        var(--ks01-shadow-lg),
        0 0 60px rgba(10, 94, 170, 0.4);
}

.ks01-btn-circle-large-blue:active {
    transform: scale(0.98);
}

.ks01-link-blue {
    color: var(--ks01-primary);
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    background: none;
    border: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--ks01-radius-full);
    transition: var(--ks01-transition);
}

.ks01-link-blue:hover {
    background: rgba(10, 94, 170, 0.08);
}

.ks01-footer-note-blue {
    font-size: 11px;
    color: var(--ks01-text-muted);
    margin-top: 16px;
    line-height: 1.5;
    padding: 12px;
    background: rgba(10, 94, 170, 0.03);
    border-radius: var(--ks01-radius-sm);
}

/* ===== Premium Buttons ===== */
.ks01-btn-block-blue {
    display: block;
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(145deg, var(--ks01-gradient-start) 0%, var(--ks01-gradient-end) 100%);
    color: white;
    border: none;
    border-radius: var(--ks01-radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--ks01-shadow-md), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: var(--ks01-transition);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.ks01-btn-block-blue::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: 0.5s;
}

.ks01-btn-block-blue:hover {
    transform: translateY(-2px);
    box-shadow: var(--ks01-shadow-lg), 0 0 30px rgba(10, 94, 170, 0.3);
}

.ks01-btn-block-blue:hover::after {
    left: 100%;
}

.ks01-btn-block-blue:active {
    transform: translateY(0);
}

.ks01-btn-outline-block {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: rgba(255,255,255,0.8);
    color: var(--ks01-primary);
    border: 2px solid rgba(10, 94, 170, 0.2);
    border-radius: var(--ks01-radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ks01-transition);
    backdrop-filter: blur(10px);
}

.ks01-btn-outline-block:hover {
    border-color: var(--ks01-primary);
    background: rgba(10, 94, 170, 0.05);
    transform: translateY(-1px);
}

.ks01-link-large-blue {
    background: none;
    border: none;
    color: var(--ks01-primary);
    font-size: 15px;
    cursor: pointer;
    margin-top: 12px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--ks01-radius-full);
    transition: var(--ks01-transition);
}

.ks01-link-large-blue:hover {
    background: rgba(10, 94, 170, 0.08);
}

.ks01-actions-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== Premium Loader ===== */
.ks01-loader-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
}

.ks01-loader-ring {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(10, 94, 170, 0.1);
    border-top-color: var(--ks01-primary);
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    box-sizing: border-box;
    box-shadow: var(--ks01-shadow-sm);
}

.ks01-loader-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 13px;
    color: var(--ks01-text-secondary);
    font-weight: 500;
    line-height: 1.5;
    width: 120px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Result Screen - Product Display ===== */
.ks01-product-display {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 24px;
    background: white;
    border-radius: var(--ks01-radius-lg);
    padding: 16px;
    box-shadow: var(--ks01-shadow-lg);
}

.ks01-product-img-main {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ks01-check-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, #34C759 0%, #28A745 100%);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    border: 3px solid white;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.ks01-product-meta {
    margin-bottom: 20px;
}

.ks01-meta-label {
    display: inline-block;
    font-size: 11px;
    color: white;
    background: linear-gradient(135deg, var(--ks01-gradient-start) 0%, var(--ks01-gradient-end) 100%);
    margin-bottom: 8px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--ks01-radius-full);
    letter-spacing: 0.3px;
}

.ks01-product-name {
    font-size: 18px;
    color: var(--ks01-text-primary);
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.ks01-price-label {
    font-size: 14px;
    color: var(--ks01-text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
}

.ks01-price-large {
    font-size: 44px;
    background: linear-gradient(135deg, var(--ks01-gradient-start) 0%, var(--ks01-gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-family: 'Helvetica Neue', -apple-system, sans-serif;
    letter-spacing: -2px;
    margin-bottom: 8px;
}

.ks01-price-note {
    font-size: 12px;
    color: var(--ks01-text-muted);
    font-weight: 500;
    margin-bottom: 16px;
}

.ks01-price-sub-note {
    font-size: 12px;
    color: var(--ks01-text-muted);
    margin-bottom: 12px;
}

.ks01-disclaimer-text {
    font-size: 11px;
    color: var(--ks01-text-secondary);
    line-height: 1.6;
    text-align: left;
    margin-bottom: 24px;
    padding: 14px;
    background: rgba(10, 94, 170, 0.03);
    border-radius: var(--ks01-radius-sm);
    border-left: 3px solid rgba(10, 94, 170, 0.2);
}

.ks01-links-vertical {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.ks01-link-arrow {
    background: none;
    border: none;
    color: var(--ks01-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--ks01-radius-full);
    transition: var(--ks01-transition);
}

.ks01-link-arrow:hover {
    background: rgba(10, 94, 170, 0.08);
}

.ks01-msg {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--ks01-text-secondary);
}

/* ===== Details Screen - Premium Form ===== */
.ks01-form-section, .ks01-input-block {
    margin-bottom: 28px;
    text-align: left;
}

.ks01-label-blue {
    display: block;
    font-size: 13px;
    color: var(--ks01-text-primary);
    margin-bottom: 10px;
    font-weight: 600;
    text-align: left;
    letter-spacing: 0.3px;
}

.ks01-label-blue .badge-required {
    background: linear-gradient(135deg, var(--ks01-gradient-start) 0%, var(--ks01-gradient-end) 100%);
    color: white;
    font-size: 9px;
    padding: 3px 8px;
    border-radius: var(--ks01-radius-full);
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 600;
}

.ks01-capsule-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ks01-capsule-btn {
    flex: 1;
    min-width: 70px;
    padding: 14px 10px;
    text-align: center;
    background: rgba(10, 94, 170, 0.06);
    color: var(--ks01-text-secondary);
    border: 2px solid transparent;
    border-radius: var(--ks01-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ks01-transition);
}

.ks01-capsule-btn:hover {
    background: rgba(10, 94, 170, 0.1);
}

.ks01-capsule-btn.active {
    background: linear-gradient(135deg, var(--ks01-gradient-start) 0%, var(--ks01-gradient-end) 100%);
    color: white;
    box-shadow: var(--ks01-shadow-md);
    transform: scale(1.02);
}

.ks01-info-note-pink {
    margin-bottom: 24px;
    font-size: 12px;
    color: #E85D75;
    font-weight: 500;
    text-align: left;
    line-height: 1.7;
    padding: 14px;
    background: rgba(232, 93, 117, 0.08);
    border-radius: var(--ks01-radius-sm);
    border-left: 3px solid #E85D75;
}

.ks01-links-vertical-gap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.ks01-btn-outline-wide {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(10, 94, 170, 0.15);
    background: rgba(255,255,255,0.8);
    color: var(--ks01-primary);
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--ks01-radius-md);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: var(--ks01-transition);
    backdrop-filter: blur(8px);
}

.ks01-btn-outline-wide:hover {
    border-color: var(--ks01-primary);
    background: rgba(10, 94, 170, 0.05);
    transform: translateY(-1px);
}

/* ===== Form Inputs ===== */
.ks01-badge-blue {
    color: var(--ks01-primary);
    margin-left: 6px;
    font-size: 10px;
    vertical-align: middle;
}

.ks01-input-text {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(10, 94, 170, 0.12);
    border-radius: var(--ks01-radius-sm);
    font-size: 15px;
    box-sizing: border-box;
    color: var(--ks01-text-primary);
    background: rgba(255,255,255,0.8);
    transition: var(--ks01-transition);
}

.ks01-input-text::placeholder {
    color: var(--ks01-text-muted);
}

.ks01-input-text:focus {
    outline: none;
    border-color: var(--ks01-primary);
    box-shadow: 0 0 0 4px rgba(10, 94, 170, 0.1);
    background: white;
}

.ks01-tel-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ks01-tel-inputs input {
    text-align: center;
}

.ks01-tel-inputs .sep {
    color: var(--ks01-text-muted);
    font-weight: 500;
}

.ks01-textarea {
    width: 100%;
    height: 110px;
    padding: 14px;
    border: 2px solid rgba(10, 94, 170, 0.12);
    border-radius: var(--ks01-radius-sm);
    font-size: 14px;
    box-sizing: border-box;
    resize: none;
    color: var(--ks01-text-primary);
    background: rgba(255,255,255,0.8);
    transition: var(--ks01-transition);
}

.ks01-textarea:focus {
    outline: none;
    border-color: var(--ks01-primary);
    box-shadow: 0 0 0 4px rgba(10, 94, 170, 0.1);
    background: white;
}

.ks01-privacy-check.large {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 14px;
    background: rgba(10, 94, 170, 0.03);
    border-radius: var(--ks01-radius-sm);
}

.ks01-checkbox {
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    min-height: 22px;
    margin-right: 12px;
    accent-color: var(--ks01-primary);
    cursor: pointer;
    border: 2px solid var(--ks01-primary) !important;
    border-radius: 4px;
    background: white;
}

.ks01-checkbox:checked {
    background: var(--ks01-primary);
}

.ks01-checkbox-label {
    font-size: 13px;
    color: var(--ks01-text-secondary);
}

.ks01-checkbox-label a {
    color: var(--ks01-primary);
    font-weight: 600;
}

/* ===== Thanks Screen ===== */
.ks01-product-display-thanks {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background: white;
    border-radius: var(--ks01-radius-lg);
    overflow: hidden;
    box-shadow: var(--ks01-shadow-lg);
    padding: 12px;
}

.ks01-product-img-thanks {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ks01-product-name-thanks {
    font-size: 17px;
    color: var(--ks01-text-primary);
    font-weight: 700;
    margin-bottom: 12px;
}

/* ===== Header Thumb ===== */
.ks01-header-thumb {
    position: absolute;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: var(--ks01-radius-sm);
    overflow: hidden;
    border: 2px solid rgba(10, 94, 170, 0.15);
    box-shadow: var(--ks01-shadow-sm);
}

.ks01-header-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Candidates Grid ===== */
.ks01-candidates-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.ks01-candidate-card {
    background: white;
    border-radius: var(--ks01-radius-md);
    padding: 12px;
    text-align: left;
    position: relative;
    cursor: pointer;
    transition: var(--ks01-transition);
    box-shadow: var(--ks01-shadow-sm);
    border: 1px solid rgba(10, 94, 170, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.ks01-candidate-card:hover {
    box-shadow: var(--ks01-shadow-md);
    transform: translateY(-2px);
    border-color: var(--ks01-primary);
}

.ks01-candidate-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--ks01-gradient-start) 0%, var(--ks01-gradient-end) 100%);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px 0 8px 0;
    letter-spacing: 0.3px;
}

.ks01-candidate-img-wrap {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: linear-gradient(145deg, #F0F7FF 0%, #E8F4FF 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--ks01-radius-sm);
    overflow: hidden;
}

.ks01-candidate-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.ks01-candidate-info {
    flex: 1;
    padding-right: 30px;
}

.ks01-candidate-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ks01-text-primary);
    line-height: 1.4;
    margin-bottom: 4px;
}

.ks01-candidate-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--ks01-primary);
}

.ks01-candidate-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ks01-primary);
    font-size: 18px;
    font-weight: 700;
    opacity: 0.5;
    transition: var(--ks01-transition);
}

.ks01-candidate-card:hover .ks01-candidate-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(4px);
}

.ks01-candidates-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

/* ===== Legacy Support (Hidden) ===== */
.ks01-product-card, .ks01-diff-section {
    display: none;
}

/* ===== Guide Circle Overlay (Confirm Screen) ===== */
.ks01-guide-circle-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    border: 2.5px dashed rgba(255, 215, 0, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 15;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.25), inset 0 0 30px rgba(0, 0, 0, 0.1);
    animation: guide-pulse 2s ease-in-out infinite;
}

@keyframes guide-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ===== Compact Content (Less Scroll) ===== */
.ks01-content-compact {
    padding: 0 20px 24px;
}

.ks01-content-compact .ks01-title-main,
.ks01-content-compact .ks01-title-large-blue,
.ks01-content-compact .ks01-title-blue {
    margin-bottom: 12px;
}

.ks01-content-compact .ks01-form-section,
.ks01-content-compact .ks01-input-block {
    margin-bottom: 16px;
}

.ks01-guide-compact {
    margin: 8px 0 16px;
}

/* ===== Form Validation Styles ===== */
.ks01-error-msg {
    color: #E85D75;
    font-size: 12px;
    margin-top: 6px;
    min-height: 18px;
}

.ks01-badge-required {
    background: linear-gradient(135deg, var(--ks01-gradient-start) 0%, var(--ks01-gradient-end) 100%);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: var(--ks01-radius-full);
    margin-left: 6px;
    font-weight: 600;
}

/* ===== Disabled Button State ===== */
.ks01-btn-block-blue:disabled,
.ks01-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

.ks01-btn-block-blue:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ===== Thanks Screen Spacing ===== */
.ks01-thanks-content {
    padding-top: 24px;
}

.ks01-thanks-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

/* ===== Step Indicator - Dimmed State (for Form/Step 2) ===== */
.ks01-form .ks01-step:first-child .ks01-step-circle {
    background: linear-gradient(135deg, #C8DDF0 0%, #B8CDDF 100%);
    opacity: 0.6;
}

.ks01-form .ks01-step:first-child .ks01-step-label {
    opacity: 0.6;
}

/* ===== Trigger Button (Launch Button) ===== */
.ks01-assessment-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(145deg, var(--ks01-gradient-start, #0A5EAA) 0%, var(--ks01-gradient-end, #1A7DD4) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(10, 94, 170, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.ks01-assessment-trigger::before {
    content: '📷';
    font-size: 20px;
}

.ks01-assessment-trigger::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.ks01-assessment-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(10, 94, 170, 0.45);
}

.ks01-assessment-trigger:hover::after {
    left: 100%;
}

.ks01-assessment-trigger:active {
    transform: translateY(-1px);
}

/* ===== Trigger Button (ks01-trigger-btn) ===== */
.ks01-trigger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(145deg, #0A5EAA 0%, #1A7DD4 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(10, 94, 170, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
}

.ks01-trigger-btn .ks01-camera-icon {
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M12 15.2a3.2 3.2 0 1 0 0-6.4 3.2 3.2 0 0 0 0 6.4z'/%3E%3Cpath d='M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.ks01-trigger-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.ks01-trigger-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(10, 94, 170, 0.45);
}

.ks01-trigger-btn:hover::after {
    left: 100%;
}

.ks01-trigger-btn:active {
    transform: translateY(-1px);
}

.ks01-trigger-btn span {
    font-weight: 700;
}

/* --- Model Loader Toast --- */
.ks01-model-loader-toast {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ks01-model-loader-toast .ks01-loader-icon {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ks01-spin 1s linear infinite;
}

@keyframes ks01-spin {
    to { transform: rotate(360deg); }
}
