/* ============================================================
   Survey Evaluasi — Main Stylesheet
   Font: Plus Jakarta Sans | Palette: Indigo Blue
   ============================================================ */

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

:root {
    --primary:      #3B5BDB;
    --primary-dark: #2F4AC7;
    --primary-light:#EEF2FF;
    --primary-mid:  #C5D0FA;
    --text-primary: #1A1D23;
    --text-secondary:#6B7280;
    --text-muted:   #9CA3AF;
    --border:       #E5E7EB;
    --border-focus: #3B5BDB;
    --bg-page:      #F0F2F8;
    --bg-card:      #FFFFFF;
    --success:      #10B981;
    --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:    0 4px 12px rgba(0,0,0,.10);
    --shadow-card:  0 2px 8px rgba(59,91,219,.08);
    --radius-sm:    8px;
    --radius-md:    12px;
    --radius-lg:    16px;
    --radius-xl:    20px;
    --font:         'Plus Jakarta Sans', system-ui, sans-serif;
}

body {
    font-family: var(--font);
    background: var(--bg-page);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── NAVBAR ──────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.navbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}
.brand-icon {
    width: 32px; height: 32px;
    flex-shrink: 0;
}
.brand-icon svg { width: 100%; height: 100%; }
.navbar-date {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}
.navbar-spacer { height: 60px; }

/* ── LAYOUT ──────────────────────────────── */
.main-content { flex: 1; padding: 32px 0 64px; }
.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ── INFO CARD ───────────────────────────── */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-card);
}
.info-card.compact { margin-bottom: 24px; padding: 24px 32px; }

.info-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}
.info-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.info-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    max-width: 560px;
}
.info-badges {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    margin-top: 4px;
}
.badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: white;
    white-space: nowrap;
}
.badge svg { width: 15px; height: 15px; }

.info-divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}
.info-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.meta-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.meta-value {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ── STEPPER ─────────────────────────────── */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.stepper-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 8px;
    margin-bottom: 26px;
    max-width: 120px;
    transition: background .3s;
}
.stepper-line.active { background: var(--primary); }

.step-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid var(--border);
    color: var(--text-muted);
    background: white;
    transition: all .25s;
}
.step-circle.current {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 6px var(--primary-light);
}
.step-circle.done {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}
.step-circle svg { width: 18px; height: 18px; }
.step-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}
.step-label.active { color: var(--primary); font-weight: 700; }

/* ── SECTION HEADING ─────────────────────── */
.section-heading {
    text-align: center;
    margin-bottom: 36px;
}
.section-heading h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.section-heading p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ── PERAN CARDS GRID ────────────────────── */
.peran-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.peran-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 24px 28px;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.peran-card:hover {
    border-color: var(--primary-mid);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.peran-card.selected {
    border-color: var(--primary);
    background: #F5F7FF;
    box-shadow: 0 0 0 4px rgba(59,91,219,.12), var(--shadow-md);
}

.peran-check {
    position: absolute;
    top: 14px; right: 14px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.peran-check svg { width: 16px; height: 16px; }

.peran-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all .2s;
}
.peran-icon svg { width: 40px; height: 40px; }
.peran-icon.active {
    background: var(--primary);
    color: white;
}

.peran-nama {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}
.peran-nama.active { color: var(--primary); }
.peran-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}

/* ── BUTTONS ─────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all .18s ease;
    white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,91,219,.3); }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-page); color: var(--text-primary); }

.btn-lg {
    padding: 14px 32px;
    font-size: 15px;
    border-radius: var(--radius-md);
}

/* ── ACTION BAR ──────────────────────────── */
.action-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-top: 8px;
}

/* ── QUESTION CARDS ──────────────────────── */
.question-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
}
.question-section {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}
.question-number {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 10px;
}
.question-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.5;
}
.required-mark { color: #EF4444; margin-left: 3px; }

/* ── RATING ──────────────────────────────── */
.rating-group { display: flex; flex-direction: column; gap: 10px; }
.rating-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}
.rating-stars { display: flex; gap: 10px; }
.rating-item { display: flex; }
.rating-item input[type=radio] { display: none; }
.rating-btn {
    width: 60px; height: 60px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .18s;
    gap: 3px;
}
.rating-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-secondary);
}
.rating-star { width: 14px; height: 14px; color: var(--text-muted); }
.rating-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.rating-item input:checked ~ .rating-btn {
    border-color: var(--primary);
    background: var(--primary);
}
.rating-item input:checked ~ .rating-btn .rating-num { color: white; }
.rating-item input:checked ~ .rating-btn .rating-star { color: rgba(255,255,255,.8); }

/* ── RADIO / CHECKBOX ────────────────────── */
.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}
.radio-item:hover { border-color: var(--primary-mid); background: var(--primary-light); }
.radio-item input[type=radio],
.radio-item input[type=checkbox] { display: none; }

.radio-custom {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    transition: all .15s;
    position: relative;
}
.radio-item input:checked ~ .radio-custom {
    border-color: var(--primary);
    background: var(--primary);
}
.radio-item input:checked ~ .radio-custom::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: white;
}
.radio-item input:checked ~ span { color: var(--primary); font-weight: 600; }

.checkbox-custom {
    width: 18px; height: 18px;
    border-radius: 4px;
    border: 2px solid var(--border);
    flex-shrink: 0;
    transition: all .15s;
}
.radio-item input:checked ~ .checkbox-custom {
    border-color: var(--primary);
    background: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l4 4 6-6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
}

/* ── FORM INPUTS ─────────────────────────── */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.form-input, .form-select {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    color: var(--text-primary);
    background: white;
    outline: none;
    transition: border-color .15s;
}
.form-input:focus, .form-select:focus { border-color: var(--border-focus); }
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    color: var(--text-primary);
    resize: vertical;
    outline: none;
    transition: border-color .15s;
    line-height: 1.6;
}
.form-textarea:focus { border-color: var(--border-focus); }

/* ── KONFIRMASI PAGE ─────────────────────── */
.konfirmasi-wrap {
    max-width: 560px;
    margin: 20px auto 0;
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: 48px 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.konfirmasi-icon { margin-bottom: 24px; }
.konfirmasi-icon svg { width: 80px; height: 80px; }
.konfirmasi-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.konfirmasi-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
}
.konfirmasi-detail {
    background: var(--bg-page);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 32px;
    text-align: left;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.detail-row:last-child { border-bottom: none; }
.detail-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.detail-value { font-size: 14px; font-weight: 600; color: var(--text-primary); text-align: right; max-width: 60%; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}
.status-badge.success {
    background: #D1FAE5;
    color: #065F46;
}
.konfirmasi-actions { display: flex; gap: 12px; justify-content: center; }

/* ── FOOTER ──────────────────────────────── */
.footer {
    background: white;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.footer-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-brand { font-weight: 700; font-size: 13px; }
.footer-copy { font-size: 12px; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
}
.footer-links a:hover { color: var(--primary); }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {
    .info-card-top { flex-direction: column; }
    .info-meta { grid-template-columns: 1fr; gap: 16px; }
    .info-badges { flex-wrap: wrap; }
    .peran-grid { grid-template-columns: 1fr; }
    .info-title { font-size: 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .rating-stars { flex-wrap: wrap; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .stepper-line { max-width: 60px; }
    .konfirmasi-wrap { padding: 32px 20px; }
}
