<!-- start Simple Custom CSS and JS -->
<style type="text/css">
/* General Body & Typography */
.aptitude-test-container {
    font-family: 'Poppins', 'Arial', sans-serif;
    color: #333;
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    border-radius: 10px;
    box-sizing: border-box;
}

.aptitude-test-title {
    text-align: center;
    font-size: 2.4em;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 700;
}

.aptitude-test-description {
    text-align: center;
    font-size: 1.15em;
    color: #555;
    margin-bottom: 35px;
    line-height: 1.7;
    padding: 0 15px;
}

/* Timer Bar */
.aptitude-timer-bar {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px 20px;
    background-color: #f0f8ff; /* Light blue */
    border: 1px solid #d0e8f8;
    border-radius: 8px;
    font-size: 1.3em;
    font-weight: 600;
    color: #0056b3; /* Dark blue */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.aptitude-timer-label {
    margin-right: 10px;
}

.aptitude-timer {
    font-family: 'Roboto Mono', monospace; /* Monospaced font for timer */
    color: #d32f2f; /* Red for urgency */
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.aptitude-section-title {
    text-align: center;
    font-size: 1.9em;
    color: #333;
    margin-top: 30px;
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Question Item */
.aptitude-question-item {
    padding: 22px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease-in-out;
    margin-bottom: 25px; /* Spacing between questions when only one is shown */
}

.aptitude-question-text {
    font-size: 1.15em;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.6;
    color: #444;
}

/* Options List */
.aptitude-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aptitude-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: all 0.2s ease;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 15px;
    background-color: #fefefe;
}

.aptitude-radio-label:hover {
    border-color: #a0a0a0;
    background-color: #f5f5f5;
}

.aptitude-radio-label input[type="radio"] {
    display: none; /* Hide default radio button */
}

.aptitude-radio-button {
    font-size: 1.05em;
    color: #666;
    flex-grow: 1; /* Allow text to take up space */
    padding-left: 25px; /* Space for custom radio indicator */
    position: relative;
}

/* Custom Radio Indicator */
.aptitude-radio-button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #999;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.2s ease;
}

.aptitude-radio-label input[type="radio"]:checked + .aptitude-radio-button::before {
    background-color: #000; /* Dark background when checked */
    border-color: #000;
    box-shadow: 0 0 0 2px #fff inset; /* Inner white circle */
}

.aptitude-radio-label input[type="radio"]:checked + .aptitude-radio-button {
    color: #000;
    font-weight: 600;
}

/* Pagination Controls */
.aptitude-pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.aptitude-pagination-button {
    background-color: #fff;
    color: #000;
    border: 2px solid #000;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    min-width: 100px;
}

.aptitude-pagination-button:hover:not(:disabled) {
    background-color: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.aptitude-pagination-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #ccc;
    color: #666;
}

.aptitude-pagination-dots {
    display: flex;
    flex-wrap: wrap; /* Allow dots to wrap if too many questions */
    justify-content: center;
    flex-grow: 1; /* Allow dots to take up available space */
    gap: 8px; /* Spacing between dots */
    margin: 0 15px; /* Space from buttons */
}

.aptitude-dot {
    width: 12px;
    height: 12px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0; /* Prevent dots from shrinking */
}

.aptitude-dot:hover {
    background-color: #888;
    transform: scale(1.1);
}

.aptitude-dot.active {
    background-color: #000;
    transform: scale(1.2);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
}

/* Form Footer & Messages */
.aptitude-form-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.aptitude-submit-button {
    background-color: #000; /* Black for primary action */
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.aptitude-submit-button:hover:not(:disabled) {
    background-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.aptitude-submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.aptitude-message {
    margin-top: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    text-align: center;
}

.aptitude-message.aptitude-error {
    background-color: #ffebee; /* Light red */
    color: #d32f2f; /* Dark red */
    border: 1px solid #ef9a9a;
}

.aptitude-message.aptitude-success {
    background-color: #e8f5e9; /* Light green */
    color: #2e7d32; /* Dark green */
    border: 1px solid #a5d6a7;
}

.aptitude-loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #000; /* Black spinner */
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Container */
.aptitude-results-container {
    margin-top: 40px;
    padding: 25px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.aptitude-results-title {
    text-align: center;
    font-size: 2.2em;
    color: #1a1a1a;
    margin-bottom: 25px;
    font-weight: 700;
}

#aptitude-results-content {
    line-height: 1.7;
    font-size: 1.05em;
    color: #444;
}

#aptitude-results-content h4 {
    font-size: 1.6em;
    color: #000;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 600;
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 8px;
}

#aptitude-results-content p {
    margin-bottom: 15px;
}

#aptitude-results-content ul {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 15px;
}

#aptitude-results-content li {
    margin-bottom: 8px;
}

#aptitude-results-content strong {
    font-weight: 700;
    color: #1a1a1a;
}

.aptitude-info-message {
    text-align: center;
    padding: 15px;
    background-color: #e3f2fd; /* Light blue */
    border: 1px solid #bbdefb;
    border-radius: 6px;
    color: #1565c0; /* Darker blue */
    font-size: 0.95em;
    margin-top: 20px;
}

.aptitude-disclaimer {
    font-size: 0.9em;
    color: #777;
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    line-height: 1.5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .aptitude-test-container {
        margin: 20px 15px;
        padding: 20px;
    }

    .aptitude-test-title {
        font-size: 2em;
    }

    .aptitude-test-description {
        font-size: 1em;
        padding: 0;
    }

    .aptitude-timer-bar {
        font-size: 1.1em;
        padding: 12px 15px;
    }

    .aptitude-section-title {
        font-size: 1.7em;
    }

    .aptitude-question-item {
        padding: 18px;
    }

    .aptitude-question-text {
        font-size: 1.05em;
    }

    .aptitude-radio-label {
        padding: 10px 12px;
    }

    .aptitude-radio-button {
        font-size: 0.95em;
    }

    .aptitude-pagination-controls {
        flex-direction: column;
        gap: 15px;
    }

    .aptitude-pagination-button {
        width: 100%;
        max-width: 250px;
        font-size: 0.95em;
        padding: 12px 20px;
    }

    .aptitude-pagination-dots {
        margin: 0;
        width: 100%;
        justify-content: center;
    }

    .aptitude-submit-button {
        font-size: 1em;
        padding: 12px 25px;
    }

    .aptitude-results-title {
        font-size: 1.8em;
    }

    #aptitude-results-content h4 {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    .aptitude-test-container {
        margin: 15px 10px;
        padding: 15px;
    }

    .aptitude-test-title {
        font-size: 1.8em;
    }

    .aptitude-test-description {
        font-size: 0.95em;
    }

    .aptitude-timer-bar {
        font-size: 1em;
        padding: 10px 12px;
    }

    .aptitude-section-title {
        font-size: 1.5em;
    }

    .aptitude-question-item {
        padding: 15px;
    }

    .aptitude-pagination-button {
        max-width: 100%;
    }
}</style>
<!-- end Simple Custom CSS and JS -->
