/* CV Quiz Plugin Styles */

body {
    background-color: #000;
    color: #fff;
}

.cv-quiz-container {
    margin: 0 auto;
    padding: 0px 0px 20px 0px;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Prevent flex items from overflowing */
}

.cv-quiz-wrapper {
    box-shadow: none;
    overflow: visible;
    border: none;
    text-align: center;
    flex-shrink: 0; /* Prevent wrapper from shrinking */
    min-height: 0; /* Prevent flex items from overflowing */
}

.cv-quiz-upload-form
{
    min-width: 45%;
}

.cv-quiz-wrapper h2 {
    margin: 0 0 20px 0;
    color: #F6BD2E;
    font-size: 2rem;
    font-weight: normal;
}

.cv-quiz-wrapper h3 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 100%;
    font-weight: normal;
}

/* Upload Form Styles */
.cv-quiz-upload-form {
    padding: 0px 30px 30px 30px;
    margin: 0 auto;
    max-width: fit-content;
}

.upload-header {
    text-align: center;
    margin-bottom: 25px;
}

.upload-header h2 {
    color: #F6BD2E;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.upload-header p {
    color: #fff;
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
}

.nf-mp-header {
    font-size: 100%;
}

.upload-requirements {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.upload-requirements h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.upload-requirements ul {
    margin: 0;
    padding-left: 20px;
}

.upload-requirements li {
    color: #555;
    margin-bottom: 8px;
    line-height: 1.4;
}

.upload-field {
    margin-bottom: 25px;
    position: relative;
    min-height: 120px; /* Prevent layout shift during upload */
    flex-shrink: 0; /* Prevent flex items from shrinking */
}

.upload-field input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
    top: 0;
    left: 0;
}

.upload-field label {
    display: block;
    border: 2px dashed #f6bd2e;
    border-radius: 6px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
    z-index: 1;
}

.upload-field:hover label {
    border-color: #957832;
    background: #f0f8ff;
}

.file-info {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-size: 14px;
    color: #495057;
    pointer-events: none;
    user-select: none;
    min-height: 40px; /* Prevent layout shift when file info changes */
    height: 40px; /* Fixed height to prevent any layout shifts */
    flex-shrink: 0; /* Prevent flex items from shrinking */
    visibility: visible; /* Always visible */
}

.upload-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
    color: #666;
}

.upload-text {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.upload-hint {
    display: block;
    font-size: 14px;
    color: #666;
}

.allowed-types
{
    color: #666;
}


.file-info {
    margin-top: 15px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.file-name {
    font-weight: 500;
    color: #2d3748;
}

.file-size {
    font-size: 14px;
    color: #718096;
    margin-left: 10px;
}


.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4299e1, #63b3ed);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #718096;
}

/* Buttons */
.upload-actions {
    text-align: center;
    margin: 25px 0;
    min-height: 60px; /* Prevent layout shift during button state changes */
    height: 60px; /* Fixed height to prevent any layout shifts */
    flex-shrink: 0; /* Prevent flex items from shrinking */
    display: flex;
    align-items: center;
    justify-content: center;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid #F6BD2E;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: #F6BD2E;
    color: #000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.button:hover {
    border: 2px solid #fff !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.button:disabled {
    background: #ccc;
    border-color: #ccc;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

.button-primary {
    background: #F6BD2E;
    color: #000;
    border-color: #F6BD2E;
}

.button-primary:hover,
.button-primary:focus {
    background: #F6BD2E;
    color: #000;
    border: 2px solid #fff !important;
}

#submit-contact:hover
{
    background: #F6BD2E!important;
    color: #000!important;
}

.button-primary:disabled {
    background: #ccc;
    border-color: #ccc;
    color: #666;
    cursor: progress;
    box-shadow: none;
}

.button-secondary {
    background: transparent;
    color: #F6BD2E;
    border-color: #F6BD2E;
    box-shadow: none;
}

.button-secondary:hover,
.button-secondary:focus {
    background: #F6BD2E;
    color: #000;
    border: 2px solid #fff !important;
}

.button-spinner {
    margin-left: 8px;
}

/* Submit Button Specific Styles */
#cv-upload-submit {
    background: #F6BD2E;
    color: #333;
    border: 2px solid #F6BD2E;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 18px;
    line-height: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    height: 4rem;
}

#cv-upload-submit:hover {
    border: 2px solid #fff!important;
}

#cv-upload-submit:disabled {
    background: #ccc;
    border-color: #ccc;
    color: #666;
    cursor: progress;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

#cv-upload-submit .button-text {
    position: relative;
    z-index: 2;
    color: #000;
}

.error span.button-text {
    color: #fff!important;
}

#cv-upload-submit:disabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgb(252, 202, 76)
    );
    animation: shimmer 2s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.failure-actions .button.error
{
    font-weight: 700;
    border-radius: 8px;
    padding: 12px 24px;
    height: 4rem;
    font-size: 18px;
}

#cv-upload-submit .button-spinner {
    margin-left: 8px;
    color: #000;
}

#cv-upload-submit.error, #restart-quiz {
    background: #dc2f21;
    color: white;
    border: 2px solid #dc2f21;
}

#cv-upload-submit.error:hover, #restart-quiz:hover {
    border: 2px solid #fff !important;
    border-color: #fff;
}

.upload-message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.upload-message.error {
    background: #fed7d7;
    color: #dc2f21;
    border: 1px solid #feb2b2;
}

/* Upload Info */
.upload-info {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.upload-info h4 {
    color: #2d3748;
    font-size: 16px;
    margin-bottom: 15px;
}

.upload-info ol {
    margin: 0;
    padding-left: 20px;
}

.upload-info li {
    color: #4a5568;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Success State */
.cv-quiz-success {
    padding: 40px;
    text-align: center;
}

.success-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
}

.cv-quiz-success p {
    font-size: 18px;
    color: #38a169;
    margin: 20px 0;
}

.cv-details {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    text-align: left;
}

.cv-details h3 {
    color: #22543d;
    margin-bottom: 15px;
}

.cv-info-table {
    width: 100%;
    border-collapse: collapse;
}

.cv-info-table th,
.cv-info-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.cv-info-table th {
    font-weight: 600;
    color: #2d3748;
    width: 30%;
}

.cv-info-table td {
    color: #4a5568;
}

/* Pending State */
.cv-quiz-pending {
    padding: 40px;
    text-align: center;
}

.pending-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
}

.cv-quiz-pending p {
    font-size: 18px;
    color: #d69e2e;
    margin: 20px 0;
}

/* Quiz Form Styles */
.quiz-header {
    border-bottom: none;
    color: #fff;
    padding: 25px 30px;
    text-align: center;
}

.quiz-user-info {
    margin-top: 15px;
    font-size: 14px;
}

.user-greeting {
    margin-right: 20px;
}

.cv-status {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.quiz-questions {
    padding: 0px 30px;
}

.quiz-question {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 0;
}

.quiz-question.error {
    border-color: #dc2f21;
    background: #f8d7da;
}

.quiz-question h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.question-options {
    margin-top: 15px;
}

/* Radio Buttons */
.option-radio {
    display: inline-block;
    margin: 0 10px;
    width: 100%;
}

.option-radio input[type="radio"] {
    display: none;
}

.option-radio label {
    display: block;
    padding: 15px 30px;
    border: 1px solid #F6BD2E;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: transparent;
    color: #F6BD2E;
}

.option-radio input[type="radio"]:checked + label {
    background: #F6BD2E;
    color: #000;
}

/* Checkboxes */
.option-checkbox {
    display: block;
    position: relative;
    padding: 8px 0 8px 25px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.option-checkbox input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 8px;
    margin: 0;
}

/* Select Dropdown */
.question-options select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: white;
}

.question-options select:focus {
    outline: none;
    border-color: #007bff;
}

/* Textarea */
.question-options textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: white;
    resize: vertical;
    min-height: 80px;
}

.question-options textarea:focus {
    outline: none;
    border-color: #007bff;
}

/* Quiz Actions */
.quiz-actions {
    padding: 30px 40px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.quiz-actions .button {
    margin: 0 10px;
}

/* Quiz Progress */

.progress-container {
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4299e1, #63b3ed);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #718096;
}

/* Quiz Messages */
.quiz-message {
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    font-weight: 500;
}

.quiz-message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.quiz-message.error {
    background: #fed7d7;
    color: #dc2f21;
    border: 1px solid #feb2b2;
}

/* Quiz Completion */
.quiz-completion {
    padding: 60px 40px;
    text-align: center;
}

.quiz-completion h2 {
    color: #38a169;
    font-size: 32px;
    margin-bottom: 20px;
}

.quiz-completion p {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cv-quiz-container {
        padding: 10px;
    }

    .cv-quiz-wrapper {
        border-radius: 8px;
    }

    .cv-quiz-upload-form
    {
        min-width: 100%;
    }

    .cv-quiz-upload-form,
    .cv-quiz-success,
    .cv-quiz-pending,
    .quiz-questions,
    .quiz-header {
        padding: 20px;
    }

    .upload-field label {
        padding: 30px 15px;
    }

    .upload-icon {
        font-size: 36px;
    }

    .upload-text {
        font-size: 16px;
    }

    .quiz-actions {
        padding: 20px;
    }

    .quiz-actions .button {
        display: block;
        width: 100%;
        margin: 10px 0;
    }

    .cv-info-table th,
    .cv-info-table td {
        padding: 6px 8px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .cv-quiz-upload-form,
    .cv-quiz-success,
    .cv-quiz-pending,
    .quiz-questions,
    .quiz-header {
        padding: 0px 15px;
    }

    .cv-quiz-wrapper h2 {
        font-size: 2rem;
    }

    .cv-quiz-wrapper h3 {
        font-size: 18px;
    }

    .upload-field label {
        padding: 20px 10px;
    }

    .upload-icon {
        font-size: 28px;
    }

    .upload-text {
        font-size: 14px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Accessibility */
.screen-reader-text {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.option-radio:focus-within,
.option-checkbox:focus-within {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

/* Error Messages */
.cv-quiz-error {
    background: #f8d7da;
    color: #dc2f21;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    font-weight: 500;
}

/* Print Styles */
@media print {
    .cv-quiz-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .button,
    .upload-field,
    .quiz-actions {
        display: none;
    }

    .quiz-question {
        break-inside: avoid;
        border: 1px solid #ccc;
        margin-bottom: 20px;
    }
}

/* Multistep Quiz Styles - Version 2.0.0 */

/* Quiz Header */
.quiz-header {

    padding: 20px 0;
}

.quiz-header h2 {
    color: #F6BD2E;
    font-size: 28px;
    margin: 0 0 20px 0;
    text-align: center;
}

/* Quiz Progress */
.quiz-progress {
    margin: 0 auto;
    max-width: 600px;
}

.progress-container {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #F6BD2E, #f6bd2e);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
}

/* Quiz Questions Container */
.quiz-questions-container {
    min-height: 400px;
    position: relative;
}

.quiz-question {
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.quiz-question.active {
    display: block;
}

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

.question-header {
    margin-bottom: 25px;
    text-align: center;
}

.question-header h3 {
    color: #F6BD2E;
    font-size: 18px;
    margin: 0;
    font-weight: 500;
}

.question-content {
    margin-bottom: 30px;
}

.question-text {
    color: #fff;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 500;
}

/* Question Options */
.question-options {
    display: flex;
    flex-direction: row;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.option-radio {
    position: relative;
}

.option-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-radio label {
    display: block;
    padding: 18px 25px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    color: #ccc;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
}

.option-radio label:hover {
    border-color: #F6BD2E;
    background: #222;
    color: #fff;
}

.option-radio input[type="radio"]:checked + label {
    background: #F6BD2E;
    border-color: #F6BD2E;
    color: #000;
    font-weight: 600;
}

.option-radio input[type="radio"]:checked + label::before {
    content: '✓';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: bold;
}

/* Question Actions */
.question-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.question-actions .button {
    min-width: 140px;
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.question-actions .button-primary {
    background: #F6BD2E;
    color: #000;
    border: 2px solid #F6BD2E;
}

.question-actions .button-primary:hover:not(:disabled) {
    background: #f6bd2e;
    border-color: #f6bd2e;
    box-shadow: 0 4px 12px rgba(230, 184, 86, 0.3);
}

.question-actions .button-primary,
.question-actions .button-secondary {
    background: transparent;
    color: #F6BD2E;
    border: 2px solid #F6BD2E;
}

.question-actions .button-primary:hover,
.question-actions .button-secondary:hover {
    background: #F6BD2E;
    color: #000;
}

.question-actions .button:disabled {
    background: #333;
    border-color: #333;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Quiz Failure Message */
.quiz-failure-message {
    background: #1a0000;
    border: 1px solid #dc2f21;
    border-radius: 8px;
    padding: 40px;
    padding-top: 25px;
    text-align: center;
    color: #fff;
    margin: 0 auto;
    margin-top: -40px;
    max-width: fit-content;
    animation: fadeIn 0.3s ease-in-out;
}

.failure-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.quiz-failure-message h2 {
    color: #dc2f21;
    font-size: 24px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.quiz-failure-message p {
    color: #ccc;
    font-size: 16px;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.failure-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Contact Form */
.quiz-contact-form {

    padding: 40px;
    animation: fadeIn 0.3s ease-in-out;
}

.contact-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-form-header h2 {
    color: #F6BD2E;
    font-size: 28px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.contact-form-subtitle {
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-row {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    color: #F6BD2E;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 15px 18px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: all 0.2s ease;
    text-align: center;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus {
    outline: none;
    border-color: #F6BD2E;
    background: #222;
    box-shadow: 0 0 0 3px rgba(230, 184, 86, 0.1);
}

.form-group small {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.form-actions .button {
    min-width: 140px;
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-width: 33%;
}

.form-actions .button-primary,
.form-actions .button-primary:focus {
    background: #F6BD2E;
    color: #000;
    border: 2px solid #F6BD2E;
}

.form-actions .button-primary:hover:not(:disabled) {
    background: #f6bd2e;
    border-color: #f6bd2e;
    box-shadow: 0 4px 12px rgba(230, 184, 86, 0.3);
}

.form-actions .button-secondary {
    background: transparent;
    color: #F6BD2E;
    border: 2px solid #F6BD2E;
}

.form-actions .button-secondary:hover,
.form-actions .button-secondary:focus {
    background: #F6BD2E;
    color: #000;
}

/* Success Message */
.quiz-success-message {
    background: #001a00;
    border: 1px solid #008000;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #fff;
    animation: fadeIn 0.3s ease-in-out;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.quiz-success-message h2 {
    color: #4caf50;
    font-size: 24px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.quiz-success-message p {
    color: #ccc;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-header h2 {
        font-size: 24px;
    }
    
    .quiz-question,
    .quiz-contact-form,
    .quiz-failure-message,
    .quiz-success-message {
        padding: 25px;
        margin: 0 15px 20px 15px;
    }
    
    .question-text {
        font-size: 16px;
    }
    
    .option-radio label {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .question-actions,
    .form-actions {
        flex-direction: column;
    }
    
    .question-actions .button,
    .form-actions .button {
        width: 100%;
    }
    
    .contact-form-subtitle {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .quiz-header {
        padding: 15px 0;
    }
    
    .quiz-question,
    .quiz-contact-form,
    .quiz-failure-message,
    .quiz-success-message {
        padding: 20px;
        margin: 0 10px 15px 10px;
    }
    
    .question-header h3,
    .contact-form-header h2 {
        font-size: 16px;
    }
    
    .question-text {
        font-size: 15px;
    }

    .option-radio
    {
        margin: 0;
    }

    .question-options
    {
        flex-direction: column;
    }
    
    .option-radio label {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .question-actions .button,
    .form-actions .button {
        height: 44px;
        font-size: 15px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Accessibility */
.quiz-question:focus-within,
.option-radio:focus-within {
    outline: 2px solid #F6BD2E;
    outline-offset: 2px;
}

/* Error States */
.quiz-question.error {
    border-color: #dc2f21;
    background: #2a0000;
}

.form-group.error input {
    border-color: #dc2f21;
    background: #2a0000;
}

.form-group.error small {
    color: #dc2f21;
}
/* ===== Overrides for quiz buttons, alignment and focus ===== */


/* When only one action button is present, align it to the right */
.question-actions.single-action {
    justify-content: flex-end !important;
}

/* Remove unwanted outline/yellow border on quiz-question container focus */
.quiz-question:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

/* Keep accessible focus on individual option elements */
.option-radio:focus-within {
    outline: 2px solid #4299e1 !important;
    outline-offset: 2px !important;
}

/* ===== Inline Styles Moved to External CSS ===== */

/* Progress bar initial state */
.progress-fill.initial {
    width: 0%;
}

/* Hidden elements */
.quiz-failure-message,
.quiz-contact-form,
.quiz-success-message,
.upload-progress {
    display: none;
}

/* Previous button visibility */
.prev-question {
    display: none;
}

.prev-question.active {
    display: inline-block;
}

/* Admin interface styles */
.cv-quiz-admin-form-inline {
    display: inline-block;
    margin-right: 5px;
}

.cv-quiz-admin-margin-top-10 {
    margin-top: 10px;
}

.cv-quiz-admin-margin-top-40 {
    margin-top: 40px;
}

.cv-quiz-status-approved {
    color: green;
}

.cv-quiz-status-pending {
    color: orange;
}

/* Upload progress bar removed - styles no longer needed */

/* Error container styles */
.cv-quiz-error-container {
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.cv-quiz-error-container h2 {
    color: #333;
    margin-bottom: 15px;
}

.cv-quiz-error-container p {
    color: #666;
    font-size: 16px;
}

/* ===== Overrides for quiz buttons, alignment and focus ===== */

/* When only one action button is present, align it to the right */
.question-actions.single-action {
    justify-content: flex-end !important;
}

/* Remove unwanted outline/yellow border on quiz-question container focus */
.quiz-question:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

/* Keep accessible focus on individual option elements */
.option-radio:focus-within {
    outline: 2px solid #4299e1 !important;
    outline-offset: 2px !important;
}
