.enneagram-test-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    position: relative;
}

/* Test Intro */
.test-intro {
    text-align: center;
    padding: 40px 20px;
}

.test-intro h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

.test-intro p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

/* Progress Bar */
.progress-bar {
    background: #f0f0f0;
    height: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    background: #4CAF50;
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

/* Questions */
.question {
    padding: 20px;
}

.question h3 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 15px;
}

.question-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: #444;
    margin-bottom: 25px;
}

/* Answer Options */
.answers {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.answers label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answers label:hover {
    background: #f0f0f0;
}

.answers label.selected {
    background-color: #ffd500 !important;
    border-color: #e6c000 !important;
    color: #362f59 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.answers label.selected:hover {
    background-color: #ffd500 !important;
}

.answers input[type="radio"] {
    margin-right: 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #adb5bd;
    border-radius: 50%;
    outline: none;
    position: relative;
}

.answers input[type="radio"]:checked {
    border-color: #FF6652;
}

.answers input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #FF6652;
    border-radius: 50%;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.button {
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Remove the old button styles first */
.button.start-test,
button.start-test,
.start-test {
    background-color: #ffd500 !important;
    border: none !important;
    color: #362f59 !important;
    padding: 15px 30px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border-radius: 99px !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: inline-block !important;
    text-decoration: none !important;
    min-width: 200px !important;
    margin-top: 20px !important;
}

.button.start-test:hover,
button.start-test:hover,
.start-test:hover,
.button.start-test:focus,
button.start-test:focus,
.start-test:focus,
.button.start-test:active,
button.start-test:active,
.start-test:active {
    background-color: #e6c000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    color: #362f59 !important;
    text-decoration: none !important;
}

/* Remove any other potentially conflicting styles */
.start-test.btn,
.start-test.btn-primary,
.start-test.button {
    background-color: #ffd500 !important;
    color: #362f59 !important;
    border: none !important;
}

.submit-test {
    background: #4CAF50;
    color: white;
}

.prev-question,
.next-question {
    background: #2196F3;
    color: white;
}

.retake-test {
    background: #FF9800;
    color: white;
}

.button:hover {
    opacity: 0.9;
}

/* Results */
.test-results {
    text-align: center;
    padding: 20px;
}

.primary-type {
    margin-bottom: 40px;
}

.primary-type h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
}

.type-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: #666;
}

/* Score Bars */
.score-bars {
    max-width: 600px;
    margin: 0 auto;
}

.score-bar {
    margin-bottom: 15px;
}

.score-bar label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.bar-container {
    background: #f0f0f0;
    height: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.bar {
    background: #2196F3;
    height: 100%;
    transition: width 0.5s ease;
}

.score-value {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media screen and (max-width: 600px) {
    .enneagram-test-container {
        margin: 20px;
        padding: 15px;
    }

    .test-intro {
        padding: 20px 15px;
    }

    .test-intro h2 {
        font-size: 1.5em;
    }

    .answer-options label {
        padding: 10px;
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .button {
        width: 100%;
        margin: 5px 0;
    }
}

@media (max-width: 768px) {
    .start-test {
        padding: 8px 40px;
        font-size: 18px;
        min-width: 110px;
    }
}

/* Thank You Page Styles */
.thank-you-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

.thank-you-image {
    width: 200px;
    height: auto;
    margin: 0 auto;
}

.thank-you-container h2 {
    color: #333;
    font-size: 24px;
    margin: 20px 0;
}

.thank-you-container p {
    color: #666;
    font-size: 18px;
    line-height: 1.5;
    margin: 20px 0;
}

.thank-you-container .btn-primary {
    background-color: #ffd500;
    border: none;
    color: #362f59;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.thank-you-container .btn-primary:hover {
    background-color: #e6c000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .thank-you-container {
        padding: 15px;
    }
    
    .thank-you-image {
        width: 150px;
    }
    
    .thank-you-container h2 {
        font-size: 20px;
    }
    
    .thank-you-container p {
        font-size: 16px;
    }
}

/* Enneagram Queen Logo */
.enneagram-logo {
    display: block;
    width: 120px;
    height: auto;
    margin: 0 auto 30px;
}

@media screen and (max-width: 768px) {
    .enneagram-logo {
        width: 100px;
        margin: 0 auto 20px;
    }
}