.forced-choice-test-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Montserrat', Roboto, sans-serif;
    padding: 1.5rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.fct-instructions {
    margin-bottom: 2rem;
    padding: 1.25rem;
    background-color: #f9fafb;
    border-left: 4px solid #6366f1;
    border-radius: 0.5rem;
    line-height: 1.6;
}

.fct-group {
    display: none;
    margin-bottom: 2rem;
    animation: fadeIn 0.3s ease-in;
}

.fct-group td{
    border:1px solid #f6f8fb !important;
    background: #fff !important;
}
.fct-group:first-of-type {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fct-group:first-child {
    display: block;
}

.fct-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fct-table th{
    border:1px solid #f6f8fb !important;
}


.fct-table th, .fct-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.fct-table tr:last-child td {
    border-bottom: none;
}

.fct-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.fct-table tr {
    background-color: #fff;
    transition: background-color 0.2s;
}

.fct-table tr:hover {
    /*background-color: #f9fafb;*/
}

.fct-ratings {
    display: flex;
    justify-content: space-between;
}

.fct-ratings{
    border: none !important;
}

.fct-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0.25rem;
    position: relative;
}

.fct-rating input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.fct-rating input[type="radio"] + span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background-color: #fff;
    color: #6b7280;
    font-weight: 600;
    transition: all 0.2s;
}

.fct-rating input[type="radio"]:checked + span {
    border-color: #6366f1;
    background-color: #6366f1;
    color: white;
}

.fct-rating:hover input[type="radio"]:not(:checked) + span {
    border-color: #6366f1;
    background-color: #eef2ff;
}

.fct-next-btn, .fct-submit-btn, .fct-restart-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #6366f1 !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    transition: all 0.2s !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
    max-width: 300px !important;
}

.fct-download-pdf-btn {
    background-color: #10b981 !important; /* Green color for download button */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    transition: all 0.2s !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
    max-width: 300px !important;
}

.fct-download-pdf-btn:hover {
    background-color: #059669 !important;
}

.fct-download-pdf-btn:active {
    background-color: #047857 !important;
}


.fct-next-btn:hover, .fct-submit-btn:hover, .fct-restart-btn:hover {
    background-color: #4f46e5 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-1px) !important;
}

.fct-next-btn:active, .fct-submit-btn:active, .fct-restart-btn:active {
    background-color: #4338ca !important;
    transform: translateY(1px) !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.fct-results {
    text-align: center;
    padding: 1rem;
}

.fct-chart-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fct-color-descriptions {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    text-align: left;
}

@media (min-width: 640px) {
    .fct-color-descriptions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fct-next-btn, .fct-submit-btn, .fct-restart-btn {
        width: auto;
    }
}

.fct-color-item {
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.fct-color-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.fct-red {
    background-color: rgba(248, 113, 113, 0.1);
    border-left: 4px solid rgb(248, 113, 113);
}

.fct-yellow {
    background-color: rgba(250, 204, 21, 0.1);
    border-left: 4px solid rgb(250, 204, 21);
}

.fct-green {
    background-color: rgba(34, 197, 94, 0.1);
    border-left: 4px solid rgb(34, 197, 94);
}

.fct-blue {
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 4px solid rgb(59, 130, 246);
}

.fct-score {
    font-weight: 600;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background-color: #f9fafb;
    border-radius: 0.375rem;
    display: inline-block;
}

.fct-error {
    color: rgb(239, 68, 68);
    margin: 0.75rem 0;
    padding: 0.75rem;
    background-color: rgba(254, 226, 226, 0.5);
    border-radius: 0.375rem;
}

.fct-validation-error {
    background-color: rgba(254, 226, 226, 0.5);
}

/* Progress indicator */
.fct-progress {
    width: 100%;
    height: 0.5rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.fct-progress-bar {
    height: 100%;
    background-color: #6366f1;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* Group header with progress text */
.fct-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.fct-group-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.fct-progress-text {
    font-size: 0.875rem;
    color: #6b7280;
}

@media (max-width: 640px) {
    .forced-choice-test-container {
        padding: 1rem;
        border-radius: 0.5rem;
    }
    
    .fct-table th, .fct-table td {
        padding: 0.75rem;
    }
    
    .fct-rating input[type="radio"] + span {
        height: 2.75rem;
        width: 2.75rem;
        font-size: 16px !important;
    }
}

/* Add these styles at the end of your CSS file */
@media (max-width: 767px) {
    .fct-table {
        display: block;
        border: none;
        box-shadow: none;
    }

    .fct-table thead {
        display: none; /* Hide the table headers on mobile */
    }
    
    .fct-table tbody {
        display: block;
    }
    
    .fct-table tr {
        display: flex;
        flex-direction: column;
        margin-bottom: 1.5rem;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .fct-table td {
        display: block;
        border: none !important;
        padding: 0.5rem 0;
        text-align: center;
    }

    .fct-table td:first-child {
        order: 2; /* Move ratings below the question text */
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        /*border-top: 1px solid #e5e7eb;*/
    }
    
    .fct-table td:nth-child(2) {
        order: 1; /* Question text comes first */
        font-weight: 500;
        text-align: center;
        padding-bottom: 0.75rem;
    }
    
    .fct-ratings {
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .fct-rating input[type="radio"] + span {
        height: 3rem;
        width: 3rem;
        font-size: 1rem;
    }
}

/* Update existing mobile styles to be more consistent */
@media (max-width: 640px) {
    .fct-rating input[type="radio"] + span {
        height: 3rem;
        width: 3rem;
        font-size: 1rem !important;
    }
    
    .fct-color-descriptions {
        grid-template-columns: 1fr;
    }
}

.fct-buttons-container {
    display: flex;
    align-items: center;
    justify-content:center;
    gap: 1rem !important;
    margin: 1.5rem 0 0.5rem !important;
}

.fct-back-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f3f4f6 !important;
    color: #4b5563 !important;
    border: 1px solid #d1d5db !important;
    padding: 10px 20px !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    transition: all 0.2s !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.fct-back-btn:hover {
    background-color: #e5e7eb !important;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px) !important;
}

.fct-back-btn:active {
    background-color: #d1d5db !important;
    transform: translateY(1px) !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}