body { /**/
    font-family: Arial, sans-serif; 
    line-height: 1.6; 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 20px; 
    color: #2c3e50;
    transition: padding-top 0.3s ease-in-out;
}
h1 { 
    color: #2c3e50; 
    text-align: center;
    margin-bottom: 30px;
}
h2, h3, h4 {
    color: #16a085;
}
.question { 
    margin-bottom: 20px; 
    padding: 15px; 
    background: #f5f5f5; 
    border-radius: 5px; 
    border-left: 4px solid #16a085;
}
.question p {
    margin-top: 0;
}
.question label {
    margin-right: 15px;
    cursor: pointer;
}
.question input[type="radio"] {
    margin-right: 5px;
}

.results { 
    margin-top: 30px; 
    padding: 20px; 
    background: #e9f7ef; 
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.mode-indicator { 
    padding: 10px 15px; 
    margin: 10px 0 20px; 
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}
.basic { 
    background: #fff3cd; 
    color: #856404;
    border: 1px solid #ffeeba;
}
.intermediate { 
    background: #cce5ff; 
    color: #004085;
    border: 1px solid #b8daff;
}
.advanced { 
    background: #d4edda; 
    color: #155724;
    border: 1px solid #c3e6cb;
}
button, input[type="submit"] { 
    background: #16a085; 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 5px; 
    cursor: pointer; 
    font-size: 16px;
    margin: 10px 5px;
    transition: background 0.3s;
}
button:hover, input[type="submit"]:hover { 
    background: #1abc9c; 
}
button:disabled, input[type="submit"]:disabled {
    background: #cccccc;
    cursor: not-allowed;
}
.button-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}
.career-card {
    background: white;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.career-card h4 {
    margin-top: 0;
    color: #2c3e50;
}
.salary {
    font-weight: bold;
    color: #16a085;
}
.skills {
    font-style: italic;
    color: #7f8c8d;
}
.progress-bar {
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}
.progress {
    height: 100%;
    background: #16a085;
    width: 0%; /* Initial width */
    transition: width 0.5s;
}
.trait-score {
    margin: 15px 0;
    padding: 10px;
    background: white;
    border-radius: 5px;
}
.trait-name {
    font-weight: bold;
}
.sticky-header_old {
    position: fixed; /* Changed to fixed for wider compatibility with scrolling */
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    z-index: 1000;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 800px; /* To align with body max-width */
    margin: 0 auto; /* Center the fixed header */
}

.sticky-header {
    /* Initial non-sticky state */
    background-color: white;
    padding-bottom: 10px; /* Spacing below header content before it becomes sticky */
    /* margin-bottom: 20px; /* Spacing below header when not sticky */
    /* The content inside .sticky-header (h1, progress-bar) will define its height */
    /* No fixed position initially */
    position: relative; /* Keep for z-index context if needed, but not essential here */
    z-index: 999;
}

.sticky-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0; 
    right: 0; 
    width: 100%; /* Take full viewport width */
    background-color: white; 
    z-index: 1000; 
    /* padding for the bar itself is handled by its inner content or specific padding here if needed */
    /* e.g., padding-top: 10px; padding-bottom: 10px; */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sticky-header-content-wrapper {
    max-width: 800px; /* Match body's max-width */
    margin: 0 auto;   /* Center content */
    padding: 10px 20px; /* Horizontal padding, and some vertical for breathing room */
}
.error-message {
    color: red;
    background-color: #ffebee;
    border: 1px solid red;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    text-align: center;
}