/* ============================================================
   Holland Code Quiz (RIASEC) — holland-quiz.css
   Prefix: holl-  (all classes/IDs use this prefix)
   Accent color: #4f46e5 (indigo) — distinct from DISC green
   ============================================================ */

/* ---------- Reset inside container ---------- */
.holl-quiz-container *,
.holl-results-wrap *,
.holl-gate-wrap * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============================================================
   QUIZ CONTAINER
   ============================================================ */
.holl-quiz-container {
    max-width: 660px;
    margin: 32px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    color: #333;
    padding: 0 16px 40px;
}

/* ---------- Progress ---------- */
.holl-progress-wrapper {
    margin-bottom: 28px;
}

.holl-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.holl-progress-pct {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.holl-step-label {
    font-size: 13px;
    color: #888;
}

.holl-progress-track {
    width: 100%;
    height: 7px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.holl-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* ---------- Scale Header ---------- */
.holl-scale-header {
    margin-bottom: 22px;
}

.holl-scale-title {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    color: #222;
}

.holl-scale-labels {
    display: flex;
    justify-content: space-around;
    padding: 0 4px;
}

.holl-scale-labels span {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: #777;
    line-height: 1.3;
}

/* ---------- Questions ---------- */
.holl-questions-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.holl-question-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}

.holl-question-card:hover {
    box-shadow: 0 2px 10px rgba(79,70,229,0.10);
}

.holl-question-text {
    font-size: 14px;
    color: #333;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
}

.holl-radio-group {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
}

/* Hidden real radio inputs */
.holl-radio-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom radio circles */
.holl-radio-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.holl-radio-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2.5px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.15s;
    background: transparent;
    position: relative;
}

.holl-radio-circle::after {
    content: '';
    display: none;
}

/* Value-specific colors */
.holl-radio-label[data-val="1"] .holl-radio-circle {
    border-color: #f28b82;
    background: #fff0ef;
}
.holl-radio-label[data-val="2"] .holl-radio-circle {
    border-color: #f5c07a;
    background: #fff8ef;
}
.holl-radio-label[data-val="3"] .holl-radio-circle {
    border-color: #bdbdbd;
    background: #f5f5f5;
}
.holl-radio-label[data-val="4"] .holl-radio-circle {
    border-color: #818cf8;
    background: #eef2ff;
}
.holl-radio-label[data-val="5"] .holl-radio-circle {
    border-color: #4f46e5;
    background: #e8e7ff;
}

/* Checked state */
.holl-radio-label[data-val="1"] input[type="radio"]:checked + .holl-radio-circle {
    background: #f28b82;
    border-color: #f28b82;
}
.holl-radio-label[data-val="2"] input[type="radio"]:checked + .holl-radio-circle {
    background: #f5c07a;
    border-color: #f5c07a;
}
.holl-radio-label[data-val="3"] input[type="radio"]:checked + .holl-radio-circle {
    background: #757575;
    border-color: #757575;
}
.holl-radio-label[data-val="4"] input[type="radio"]:checked + .holl-radio-circle {
    background: #818cf8;
    border-color: #818cf8;
}
.holl-radio-label[data-val="5"] input[type="radio"]:checked + .holl-radio-circle {
    background: #4f46e5;
    border-color: #4f46e5;
}

/* Checkmark when selected */
.holl-radio-label input[type="radio"]:checked + .holl-radio-circle::after {
    content: '✓';
    display: block;
    font-size: 18px;
    color: #fff;
    font-weight: 700;
    line-height: 1;
}

.holl-radio-label .holl-radio-circle:hover {
    transform: scale(1.08);
}

/* ---------- Navigation ---------- */
.holl-nav-area {
    text-align: center;
    margin-top: 8px;
}

.holl-validation-msg {
    font-size: 13px;
    color: #e53935;
    margin-bottom: 10px;
    display: none;
}
.holl-validation-msg.holl-visible {
    display: block;
}

.holl-btn-next {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    letter-spacing: 0.3px;
}

.holl-btn-next:hover {
    opacity: 0.9;
}

.holl-btn-next:active {
    transform: scale(0.98);
}

.holl-btn-next:disabled {
    background: #9e9e9e;
    cursor: not-allowed;
}

/* ---------- Loading state ---------- */
.holl-loading {
    text-align: center;
    padding: 40px 20px;
    color: #555;
    font-size: 15px;
}

.holl-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: holl-spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

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

/* ---------- Back Button ---------- */
.holl-scale-header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.holl-btn-back {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1.5px solid #d0d0d0;
    border-radius: 10px;
    background: #fff;
    color: #666;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.18s, color 0.18s, background 0.18s, box-shadow 0.18s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 0;
}

.holl-btn-back:hover {
    border-color: #4f46e5;
    color: #4f46e5;
    background: #eef2ff;
    box-shadow: 0 2px 8px rgba(79,70,229,0.13);
}

.holl-btn-back:active {
    transform: scale(0.94);
}

.holl-scale-header-top .holl-scale-title {
    flex: 1;
    margin-bottom: 0;
    text-align: center;
}

.holl-scale-labels-offset {
    flex: 0 0 44px;
    min-width: 44px;
}

/* ---------- Error highlight card ---------- */
.holl-card-error {
    border: 2px solid #e53935 !important;
    background: #fff8f8 !important;
    transition: border 0.2s, background 0.2s;
}

/* ============================================================
   RESULTS PAGE
   ============================================================ */
.holl-results-body {
    background: #f4f5ff;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.holl-results-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

/* --- Results Header --- */
.holl-results-header {
    text-align: center;
    margin-bottom: 28px;
}

.holl-site-logo {
    font-size: 13px;
    color: #4f46e5;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 8px;
}

.holl-results-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.holl-result-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
}

/* --- Holland Code Badge --- */
.holl-code-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 16px 0 4px;
    flex-wrap: wrap;
}

.holl-code-letter {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    line-height: 1;
}

.holl-code-letter span.holl-letter-sub {
    font-size: 9px;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.holl-code-letter.holl-letter-dim {
    background: #e0e0e0 !important;
    box-shadow: none;
    color: #aaa;
}

.holl-code-label {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 10px;
}

.holl-code-label strong {
    color: #4f46e5;
    font-weight: 700;
}

/* --- Primary Type Card --- */
.holl-primary-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(79,70,229,0.08);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border-top: 5px solid var(--holl-type-color, #4f46e5);
}

.holl-primary-badge {
    font-size: 48px;
    line-height: 1;
    flex-shrink: 0;
}

.holl-primary-info {
    flex: 1;
    min-width: 0;
}

.holl-primary-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 4px;
}

.holl-primary-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.holl-primary-tagline {
    font-size: 13px;
    color: #777;
    margin-bottom: 14px;
}

.holl-primary-score-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}

.holl-primary-score-fill {
    height: 100%;
    background: var(--holl-type-color, #4f46e5);
    border-radius: 10px;
    transition: width 1s ease;
}

.holl-primary-score-text {
    font-size: 12px;
    color: #888;
}

/* --- Description Card --- */
.holl-desc-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(79,70,229,0.08);
}

.holl-desc-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.holl-desc-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 16px;
}

.holl-traits {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.holl-traits-col {
    flex: 1;
}

.holl-traits-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.holl-traits-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.holl-traits-col ul li {
    font-size: 13px;
    color: #555;
    padding: 3px 0;
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
}

.holl-traits-col ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4f46e5;
}

/* --- Top 3 Cards --- */
.holl-top3-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(79,70,229,0.08);
}

.holl-top3-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.holl-top3-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.holl-top3-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f9fafb;
    border-left: 4px solid var(--holl-item-color, #4f46e5);
}

.holl-top3-rank {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--holl-item-color, #4f46e5);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.holl-top3-info {
    flex: 1;
    min-width: 0;
}

.holl-top3-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 3px;
}

.holl-top3-tagline {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.holl-top3-careers {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.holl-career-chip {
    font-size: 11px;
    background: #eef2ff;
    color: #4f46e5;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

/* --- Chart Card --- */
.holl-chart-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(79,70,229,0.08);
}

.holl-chart-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.holl-chart-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

#holl-radar-chart {
    max-width: 280px;
    max-height: 280px;
    width: 280px !important;
    height: 280px !important;
}

/* --- All Scores Card --- */
.holl-scores-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(79,70,229,0.08);
}

.holl-scores-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.holl-scores-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.holl-score-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.holl-score-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #444;
    font-weight: 500;
}

.holl-score-emoji {
    font-size: 16px;
}

.holl-badge-top {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    margin-left: auto;
    color: #fff;
}

.holl-score-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.holl-score-bar-bg {
    flex: 1;
    height: 10px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.holl-score-bar-inner {
    height: 100%;
    border-radius: 10px;
    transition: width 1.2s ease;
}

.holl-score-pct {
    font-size: 12px;
    color: #888;
    width: 42px;
    text-align: right;
    flex-shrink: 0;
}

.holl-score-row.holl-score-top .holl-score-label {
    font-weight: 700;
    color: #1a1a2e;
}

/* --- Share Card --- */
.holl-share-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(79,70,229,0.08);
}

.holl-share-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.holl-share-card p {
    font-size: 13px;
    color: #777;
    margin-bottom: 14px;
}

.holl-share-url {
    display: flex;
    gap: 8px;
}

.holl-share-url input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
    background: #fafafa;
    outline: none;
    min-width: 0;
}

.holl-btn-copy {
    padding: 10px 18px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.holl-btn-copy:hover {
    opacity: 0.85;
}

/* --- Footer --- */
.holl-results-footer {
    text-align: center;
    margin-top: 24px;
}

.holl-btn-retake {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    border: 2px solid #4f46e5;
    color: #4f46e5;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.holl-btn-retake:hover {
    background: #4f46e5;
    color: #fff;
}

/* ============================================================
   ACCESS GATE
   ============================================================ */
.holl-gate-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f4f5ff;
}

.holl-gate-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 24px rgba(79,70,229,0.12);
}

.holl-gate-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.holl-gate-box h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.holl-gate-box p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.holl-gate-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.holl-gate-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
    color: #333;
}

.holl-gate-form input:focus {
    border-color: #4f46e5;
}

.holl-gate-error {
    color: #e53935;
    font-size: 13px;
    margin-top: 8px;
    min-height: 18px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    .holl-primary-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .holl-primary-badge {
        font-size: 56px;
    }
    .holl-primary-name {
        font-size: 18px;
    }
    .holl-traits {
        flex-direction: column;
    }
    .holl-radio-circle {
        width: 34px;
        height: 34px;
    }
    .holl-radio-label input[type="radio"]:checked + .holl-radio-circle::after {
        font-size: 15px;
    }
    .holl-share-url {
        flex-direction: column;
    }
    .holl-results-wrap {
        padding: 16px 12px 48px;
    }
    .holl-chart-wrap {
        flex-direction: column;
        gap: 20px;
    }
    .holl-code-letter {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    .holl-top3-item {
        flex-direction: column;
    }
}
