/* ===================================================
   TRACER STUDY — STYLES
   =================================================== */
:root {
    --primary:       #1A237E;
    --primary-light: #3949AB;
    --primary-dark:  #0D1457;
    --white:         #FFFFFF;
    --off-white:     #F5F7FF;
    --text:          #1A1A2E;
    --text-muted:    #6B7280;
    --border:        #E0E4F0;
    --success:       #2E7D32;
    --success-light: #E8F5E9;
    --warning:       #F57F17;
    --warning-light: #FFF8E1;
    --radius-sm:     8px;
    --radius-md:     14px;
    --radius-lg:     24px;
    --shadow-sm:     0 2px 8px rgba(26,35,126,0.08);
    --shadow-md:     0 8px 32px rgba(26,35,126,0.12);
    --transition:    0.2s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--off-white); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ============================================================
   HEADER
   ============================================================ */
.ts-header {
    background: var(--primary-dark);
    color: white;
    padding: 0 24px;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.ts-header-inner {
    max-width: 920px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ts-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ts-header-brand img { height: 36px; width: auto; }
.ts-brand-main { display: block; font-size: 0.95rem; font-weight: 700; color: white; }
.ts-brand-sub { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.6); }
.ts-back-link {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.82rem; color: rgba(255,255,255,0.65);
    transition: color var(--transition);
}
.ts-back-link:hover { color: white; }

/* ============================================================
   WRAPPER
   ============================================================ */
.ts-wrapper {
    max-width: 920px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}

/* ============================================================
   INTRO
   ============================================================ */
.ts-intro {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    color: white;
    text-align: center;
    margin-bottom: 28px;
}
.ts-intro-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.9; }
.ts-intro h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.ts-intro p { font-size: 0.95rem; color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 20px; line-height: 1.7; }
.ts-intro-meta { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.ts-intro-meta span { font-size: 0.82rem; color: rgba(255,255,255,0.75); display: flex; align-items: center; gap: 6px; }
.ts-intro-meta i { color: rgba(255,255,255,0.5); }

/* ============================================================
   PROGRESS
   ============================================================ */
.ts-progress-wrap {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px 28px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.ts-step-list {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.ts-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.ts-step-num {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background var(--transition), color var(--transition);
}
.ts-step-label { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; font-weight: 500; }
.ts-step.active .ts-step-num { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(26,35,126,0.3); }
.ts-step.active .ts-step-label { color: var(--primary); font-weight: 700; }
.ts-step.done .ts-step-num { background: var(--success); color: white; }
.ts-step.done .ts-step-label { color: var(--success); }
.ts-step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    min-width: 24px;
    max-width: 80px;
    align-self: flex-start;
    margin-top: 17px;
    transition: background var(--transition);
}
.ts-step-line.done { background: var(--success); }
.ts-progress-bar { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.ts-progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 99px; transition: width 0.4s ease; }

/* ============================================================
   FORM SECTION
   ============================================================ */
.ts-section {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 32px 36px;
    box-shadow: var(--shadow-sm);
    display: none;
    margin-bottom: 4px;
}
.ts-section.active { display: block; animation: fadeSlide 0.3s ease; }
@keyframes fadeSlide { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }

.ts-section-hdr { margin-bottom: 28px; }
.ts-section-badge {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(26,35,126,0.08);
    color: var(--primary);
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.ts-section-hdr h2 { font-size: 1.4rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.ts-section-hdr p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* sub-section headers (inside step3) */
.ts-section-hdr + .ts-section-hdr,
#sub_wirausaha .ts-section-hdr,
#sub_studi .ts-section-hdr,
#sub_carikerja .ts-section-hdr {
    padding-top: 28px;
    border-top: 1px dashed var(--border);
    margin-top: 8px;
}

/* ============================================================
   FORM FIELDS
   ============================================================ */
.ts-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ts-field { display: flex; flex-direction: column; gap: 6px; }
.ts-field-full { grid-column: 1 / -1; }
.ts-field label { font-size: 0.82rem; font-weight: 700; color: var(--text); }
.req { color: #D32F2F; margin-left: 2px; }
.ts-field-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: -2px; line-height: 1.5; }
.ts-field input[type="text"],
.ts-field input[type="email"],
.ts-field input[type="tel"],
.ts-field input[type="date"],
.ts-field input[type="month"],
.ts-field select,
.ts-field textarea {
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text);
    background: var(--off-white);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    width: 100%;
}
.ts-field input:focus, .ts-field select:focus, .ts-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,35,126,0.08);
    background: white;
}
.ts-field textarea { resize: vertical; min-height: 80px; }
.ts-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

/* Validation */
.ts-field.error input, .ts-field.error select, .ts-field.error textarea { border-color: #D32F2F; }
.ts-field .field-error { font-size: 0.75rem; color: #D32F2F; display: flex; align-items: center; gap: 4px; }

/* ============================================================
   RADIO CARDS (STATUS)
   ============================================================ */
.ts-radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.ts-radio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--off-white);
}
.ts-radio-card input { display: none; }
.ts-radio-card:has(input:checked) { border-color: var(--primary); background: white; box-shadow: 0 4px 16px rgba(26,35,126,0.1); }
.ts-rc-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: white; flex-shrink: 0;
}
.ts-rc-text { display: flex; flex-direction: column; }
.ts-rc-text strong { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.ts-rc-text span { font-size: 0.72rem; color: var(--text-muted); }
.ts-radio-card:hover { border-color: var(--primary-light); background: white; }

/* ============================================================
   RADIO ROW / PILLS
   ============================================================ */
.ts-radio-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ts-radio-pill {
    display: flex; align-items: center; gap: 7px;
    padding: 8px 16px;
    border: 1.5px solid var(--border);
    border-radius: 99px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--off-white);
    font-weight: 500;
}
.ts-radio-pill input { accent-color: var(--primary); }
.ts-radio-pill:has(input:checked) { border-color: var(--primary); background: rgba(26,35,126,0.06); color: var(--primary); }

/* ============================================================
   CHECKBOXES
   ============================================================ */
.ts-checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 4px; }
.ts-cb {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--off-white);
    line-height: 1.4;
}
.ts-cb input { accent-color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.ts-cb:has(input:checked) { border-color: var(--primary); background: rgba(26,35,126,0.05); color: var(--primary); }

/* ============================================================
   KESESUAIAN ROW
   ============================================================ */
.ts-kesesuaian-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 8px; }
.ts-ks-opt {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 14px 8px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--off-white);
    gap: 6px;
}
.ts-ks-opt input { display: none; }
.ts-ks-opt span { font-size: 0.82rem; font-weight: 700; color: var(--text); }
.ts-ks-opt small { font-size: 0.7rem; color: var(--text-muted); line-height: 1.3; }
.ts-ks-opt:has(input:checked) { border-color: var(--primary); background: white; box-shadow: 0 4px 12px rgba(26,35,126,0.1); }
.ts-ks-opt:has(input:checked) span { color: var(--primary); }

/* ============================================================
   COMPETENCY TABLE
   ============================================================ */
.ts-scale-legend {
    display: flex;
    gap: 32px;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.ts-legend-col { display: flex; flex-direction: column; gap: 4px; }
.ts-legend-col strong { font-size: 0.82rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.ts-legend-col span { font-size: 0.78rem; color: var(--text-muted); }

.ts-competency-table-wrap { overflow-x: auto; }
.ts-comp-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.ts-comp-table th {
    padding: 10px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    background: var(--off-white);
    color: var(--text-muted);
    border: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ts-comp-table th.col-kompetensi { text-align: left; width: 280px; }
.ts-comp-table th.col-group { background: rgba(26,35,126,0.06); color: var(--primary); }
.ts-comp-table .ts-scale-row th { font-size: 0.8rem; background: white; }
.ts-comp-table td { border: 1px solid var(--border); padding: 12px 8px; text-align: center; vertical-align: middle; }
.ts-comp-table tbody tr:nth-child(odd) td { background: #FAFBFF; }
.ts-comp-table tbody tr:hover td { background: rgba(26,35,126,0.03); }
.ts-comp-table td:first-child { text-align: left; padding-left: 14px; font-size: 0.85rem; font-weight: 500; vertical-align: middle; }
.ts-comp-table td.group-sep { border-left: 2px solid var(--primary-light); }
.ts-comp-radio { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; }

/* ============================================================
   SATISFACTION GRID
   ============================================================ */
.ts-satisfaction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.ts-sat-card {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    transition: border-color var(--transition);
}
.ts-sat-card:has(input:checked) { border-color: var(--primary); background: white; }
.ts-sat-title { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.ts-sat-title i { color: var(--primary); }
.ts-sat-desc { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.ts-star-row { display: flex; gap: 6px; }
.ts-star {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 8px 4px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    background: white;
}
.ts-star input { display: none; }
.ts-star span { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
.ts-star small { font-size: 0.6rem; color: var(--text-muted); text-align: center; line-height: 1.2; display: none; }
.ts-star:has(input:checked) { border-color: var(--primary); background: var(--primary); }
.ts-star:has(input:checked) span { color: white; }
.ts-star:hover { border-color: var(--primary-light); }

/* ============================================================
   SARAN
   ============================================================ */
.ts-saran-grid { display: grid; gap: 16px; margin-bottom: 20px; }

/* ============================================================
   DISCLAIMER
   ============================================================ */
.ts-disclaimer {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--warning-light);
    border: 1px solid #FFE082;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-top: 8px;
}
.ts-disclaimer i { color: var(--warning); flex-shrink: 0; margin-top: 2px; }
.ts-disclaimer p { font-size: 0.82rem; color: #5D4037; line-height: 1.6; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.ts-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 16px 24px;
    margin-top: 16px;
    box-shadow: var(--shadow-sm);
}
.ts-nav-info { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.btn-ts-prev, .btn-ts-next, .btn-ts-submit {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.btn-ts-prev { background: var(--off-white); color: var(--text); border: 1.5px solid var(--border); }
.btn-ts-prev:hover { border-color: var(--primary); color: var(--primary); }
.btn-ts-next { background: var(--primary); color: white; }
.btn-ts-next:hover { background: var(--primary-light); box-shadow: 0 4px 16px rgba(26,35,126,0.3); }
.btn-ts-submit { background: var(--success); color: white; }
.btn-ts-submit:hover { background: #1B5E20; box-shadow: 0 4px 16px rgba(46,125,50,0.3); }

/* ============================================================
   SUCCESS STATE
   ============================================================ */
.ts-success {
    text-align: center;
    padding: 64px 32px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.ts-success-icon { font-size: 5rem; color: var(--success); margin-bottom: 20px; }
.ts-success h2 { font-size: 2rem; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.ts-success p { font-size: 1rem; color: var(--text-muted); max-width: 480px; margin: 0 auto 24px; line-height: 1.7; }
.ts-success-badges { display: flex; flex-direction: column; gap: 8px; align-items: center; margin-bottom: 32px; }
.ts-success-badges span { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }
.ts-success-badges i { color: var(--primary); }
.btn-ts-home {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    transition: background var(--transition), box-shadow var(--transition);
}
.btn-ts-home:hover { background: var(--primary-light); box-shadow: 0 6px 20px rgba(26,35,126,0.3); }

/* ============================================================
   FOOTER
   ============================================================ */
.ts-footer {
    text-align: center;
    padding: 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: white;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .ts-wrapper { padding: 16px 12px 48px; }
    .ts-intro { padding: 28px 20px; }
    .ts-intro h1 { font-size: 1.3rem; }
    .ts-section { padding: 20px 16px; }
    .ts-grid-2 { grid-template-columns: 1fr; }
    .ts-radio-cards { grid-template-columns: 1fr 1fr; }
    .ts-kesesuaian-row { grid-template-columns: 1fr 1fr; gap: 8px; }
    .ts-checkbox-grid { grid-template-columns: 1fr; }
    .ts-satisfaction-grid { grid-template-columns: 1fr; }
    .ts-comp-table th.col-kompetensi { width: 180px; }
    .ts-nav { flex-wrap: wrap; }
    .ts-nav-info { order: 3; width: 100%; text-align: center; }
    .ts-step-label { display: none; }
}

@media (max-width: 480px) {
    .ts-radio-cards { grid-template-columns: 1fr; }
    .ts-kesesuaian-row { grid-template-columns: 1fr; }
    .ts-intro-meta { flex-direction: column; align-items: center; }
}
