/* Base Styles */
:root {
    --primary-color: #1E5B94;
    --secondary-color: #FF7A30;
    --light-blue: #E6F0F9;
    --dark-blue: #0D3B66;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #333333;
    --success-color: #4CAF50;
    --warning-color: #FFC107; /* Added for encouragement */
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: #FAFAFA;
}

.container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    border-radius: 8px;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--medium-gray);
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tagline {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

h2, h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 0.75rem 0;
}
h4 {
    color: var(--dark-blue); /* Darker blue for H4 */
    margin: 1rem 0 0.5rem 0;
}


p, ul, ol {
    margin-bottom: 1rem;
}

ul, ol {
    padding-left: 1.5rem;
}

.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
    margin: 5px;
}

.button:hover:not(:disabled) {
    background-color: var(--dark-blue);
}

.button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}


.button.secondary {
    background-color: var(--medium-gray);
    color: var(--dark-gray);
}

.button.secondary:hover {
    background-color: var(--dark-gray);
    color: white;
}

.cta-button {
    text-align: center;
    margin: 2rem 0;
    display: flex; /* Use flexbox for better alignment */
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}


footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--medium-gray);
    text-align: center;
    font-size: 0.9rem;
}

/* Instructions Section Styles */
#instructions-section, #supplementary-instructions {
    padding: 1.5rem;
    margin-bottom: 2rem;
    background-color: var(--light-blue);
    border-radius: 8px;
    border: 1px solid var(--primary-color);
}

#instructions-section h2, #supplementary-instructions h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.instruction-step {
    display: flex;
    align-items: flex-start; /* Align items top for multi-line text */
    margin-bottom: 1rem;
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.instruction-step .icon {
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
    padding-top: 3px; /* Align icon slightly better */
}

.instruction-step p {
    margin-bottom: 0;
    flex-grow: 1;
}

.name-input-step {
    flex-direction: column;
    align-items: flex-start;
}

.name-input-step label {
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.name-input-step input[type="text"] {
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
    font-size: 1rem;
}

.privacy-consent {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}
.privacy-consent label {
    margin-left: 5px;
    cursor: pointer;
}
.privacy-consent small {
    display: block;
    color: #666;
    margin-top: 5px;
}

#start-assessment-button, #start-supplementary-button {
    display: block;
    margin: 1.5rem auto 0 auto; /* Center button */
}


/* Assessment Styles */
#assessment-wrapper {
     position: relative; /* Needed for absolute encouragement message */
}

#encouragement-message {
    position: absolute;
    top: -50px; /* Position above progress bar */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--warning-color);
    color: var(--dark-gray);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 20; /* Above bee */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
#encouragement-message.visible {
    opacity: 1;
}


#progress-container {
    width: 100%;
    height: 10px;
    background-color: var(--light-gray);
    border-radius: 5px;
    margin-bottom: 2rem;
    position: relative;
    overflow: visible;
}

#progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--secondary-color);
    border-radius: 5px;
    transition: width 0.3s;
}

#progress-bee {
    position: absolute;
    top: -8px;
    left: -10px;
    width: 20px;
    height: 20px;
    transition: left 0.3s ease-in-out;
    z-index: 10;
    pointer-events: none;
}

.question-container {
    margin-bottom: 2rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.question-text {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    border: 1px solid var(--medium-gray);
    background-color: #fff;
}

.answer-option:hover {
    background-color: var(--light-blue);
    border-color: var(--primary-color);
}

.answer-option.selected {
    background-color: var(--light-blue);
    border-color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    font-weight: 500;
}

.answer-option input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Results Styles */
#results-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    /* Removed outer shadow, using container shadow */
}

#results-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-blue);
}

.results-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}
.results-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.work-style {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--medium-gray);
    background-color: #fff; /* Ensure white background */
}

.work-style.primary {
    border-color: var(--primary-color);
    background-color: var(--light-blue); /* Light blue for primary */
}
.work-style.secondary, .work-style.tertiary {
    border-color: var(--medium-gray);
     margin-top: 1rem;
}

.work-style h3 {
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.work-style-icon {
    margin-right: 10px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.work-style.primary .work-style-icon {
    background-color: var(--secondary-color); /* Highlight primary icon */
}

/* Energy Center & Growth Path */
.energy-center, .integration-path {
    font-size: 0.95rem;
    margin-top: 0.5rem;
    padding-left: 50px; /* Indent under icon */
    color: #444;
}
.energy-center strong, .integration-path strong {
    color: var(--dark-blue);
}

/* RIASEC Visuals */
.riasec-details {
    margin-top: 1rem;
}
.riasec-type-desc {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.riasec-type-desc strong {
    color: var(--dark-blue);
    min-width: 110px; /* Align descriptions */
    display: inline-block;
}
.riasec-score-bar-container {
    height: 10px;
    background-color: var(--light-gray);
    border-radius: 5px;
    margin-top: 2px;
    width: 100%; /* Or specific width */
    border: 1px solid var(--medium-gray);
    position: relative;
}
.riasec-score-bar {
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 5px;
    position: absolute;
    left: 0;
    top: 0;
}
.riasec-score-value {
    font-size: 0.85rem;
    color: #555;
    margin-left: 5px;
}


.riasec-scores { /* Old style for tags - maybe remove if using bars */
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1rem 0;
    justify-content: center;
}

.riasec-score { /* Old style for tags - maybe remove if using bars */
    background-color: var(--light-gray);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--dark-gray);
    border: 1px solid var(--medium-gray);
}

.traits-section {
    margin-top: 1rem;
    text-align: center;
}

.trait-tag {
    display: inline-block;
    background-color: var(--light-blue);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 15px;
    margin: 5px;
    font-size: 0.9rem;
    border: 1px solid var(--primary-color);
}

.workplace-subsection {
    margin-bottom: 1rem;
}

.workplace-subsection h4 {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.workplace-subsection .subsection-icon {
    margin-right: 8px;
    font-size: 1.1em;
    color: var(--secondary-color);
    width: 20px; /* Give icon fixed width */
    text-align: center;
}


/* Feedback Section */
.feedback-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.rating-options, .premium-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1rem 0;
}

.rating-btn, .premium-btn {
    padding: 8px 15px;
    background-color: white;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    cursor: pointer;
    flex-grow: 1;
    text-align: center;
    transition: background-color 0.2s, border-color 0.2s;
}

.rating-btn:hover, .premium-btn:hover {
     background-color: #f0f0f0;
}

.rating-btn.selected, .premium-btn.selected {
    background-color: var(--light-blue);
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
}

.text-feedback {
    margin-top: 1.5rem;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    margin: 10px 0;
    font-family: inherit;
    font-size: 1rem;
}

#submit-feedback {
    margin-top: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 15px auto;
    }
    .answer-option {
        padding: 12px 10px;
    }
    .button {
        padding: 10px 18px;
    }
    .cta-button {
         /* Keep buttons wrapping */
    }
     #encouragement-message {
        font-size: 0.85rem;
        padding: 6px 12px;
        top: -45px;
    }
}

@media (max-width: 480px) {
     h1 { font-size: 1.8rem; }
     h2 { font-size: 1.4rem; }
     h3 { font-size: 1.2rem; }
     h4 { font-size: 1.1rem; }

     .instruction-step .icon {
        font-size: 1.2rem;
        margin-right: 10px;
    }
    .answer-options {
        max-width: 100%;
    }
    .rating-btn, .premium-btn {
        font-size: 0.9rem;
        padding: 8px 10px;
        min-width: 120px; /* Ensure some minimum width */
        flex-basis: 45%; /* Try to fit two per row */
    }
    .riasec-type-desc strong {
         display: block; /* Stack label above description */
         margin-bottom: 2px;
         min-width: auto;
    }
    .work-style-icon {
         width: 35px;
         height: 35px;
         font-size: 18px;
    }
     .energy-center, .integration-path {
        padding-left: 0; /* Remove indent on small screens */
    }

}