/**
 * Assessment Wizard Pro - Frontend Styles
 */

/* Container */
.awp-assessment-wizard {
    max-width: 900px;
    margin: 0 auto;
    font-family: "Readex Pro", Sans-serif;
    display: flex;
    flex-wrap: wrap;
}

/* Loading State */
.awp-loading {
    text-align: center;
    padding: 60px 20px;
    width: 100%;
}

.awp-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid #f0f0f0;
    border-radius: 50%;
    border-top-color: #FF6600;
    animation: awp-spin 1s ease-in-out infinite;
}

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

/* Progress Bar */
.awp-progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.awp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgb(255 102 0 / 70%) 0%, #FF6600 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 123, 186, 0.3);
}

.awp-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-weight: 600;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Step Navigation */
.awp-step-navigation {
    margin-bottom: 30px;
    width: 33.33%;
    padding-right: 30px;
    padding-top: 30px;
}

.awp-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.awp-step-indicator {
    width: 100%;
    font-size: 15px;
    color: #9c9c9c;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
    display: flex;
    gap: 12px;
    padding-bottom: 25px;
    position: relative;
}

.awp-step-indicator > span {
    padding-top: 3px;
    flex: 1;
}

.awp-step-indicator::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 14px;
    width: 2px;
    height: calc(100% - 35px);
    background-color: #e5e5e5;
}

.awp-step-indicator:last-child::after {
    display: none;
}

.awp-step-indicator.completed::after {
    background-color: #46b450;
}

.awp-step-indicator::before {
    content: attr(data-step);
    display: inline-flex;
    width: 31px;
    height: 31px;
    background-color: #e5e5e5;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    color: #9c9c9c;
    border-radius: 30px;
}

.awp-step-indicator.active {
    /* background-color: #007cba;
    border-color: #007cba;
    color: white;
    font-weight: 600; */
    color: #000000;
}

.awp-step-indicator.active::before {
    background-color: #FF6600;
    color: #fff;
}

.awp-step-indicator.completed {
    /* background-color: #46b450;
    border-color: #46b450;
    color: white; */
    color: #000;
}

.awp-step-indicator.completed::before {
    background-color: #46b450;
    color: #fff;
}

/* Form Styles */
.awp-assessment-form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 66.66%;
    font-family: "Readex Pro", Sans-serif;
}

.awp-step {
    animation: awp-fadeIn 0.3s ease;
}

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

.awp-step h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.awp-step > p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Form Groups */
.awp-form-group {
    margin-bottom: 20px;
}

.awp-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.awp-form-group input[type="text"],
.awp-form-group input[type="email"],
.awp-form-group input[type="tel"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.awp-form-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 123, 186, 0.1);
}

.awp-form-row {
    display: flex;
    gap: 20px;
}

.awp-form-col {
    flex: 1;
}

/* Questions */
.awp-question {
    margin-bottom: 35px;
    /* padding: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #007cba; */
}

.awp-question-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.awp-answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.awp-answer-label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.awp-answer-label:hover {
    border-color: #15346D;
    background-color: #f8fbfd;
}

.awp-answer-label input[type="radio"],
.awp-answer-label input[type="checkbox"] {
    margin-right: 12px;
    flex-shrink: 0;
}

.awp-answer-text {
    flex: 1;
    color: #333;
    font-size: 16px;
}

.awp-answer-score {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #FF6600;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.awp-answer-label:has(input:checked) {
    background-color: #15346d1a;
    border-color: #15346D;
}

/* Navigation Buttons */
.awp-navigation {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

button.awp-btn,
#awp-download-pdf {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

button.awp-btn-primary,
button.awp-btn-primary:focus,
#awp-download-pdf, #awp-download-pdf:focus {
    background-color: #FF6600;
    color: white;
}

button.awp-btn-primary:hover,
#awp-download-pdf:hover {
    background-color: #15346D;
    /* transform: translateY(-1px); */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
}

button.awp-btn-secondary {
    background-color: #6c757d;
    color: white;
}

button.awp-btn-secondary:hover {
    background-color: #5a6268;
}

button.awp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Message */
.awp-success-message {
    text-align: center;
    padding: 60px 20px;
    width: 100%;
    font-family: "Readex Pro", Sans-serif;
}

.awp-success-icon {
    width: 80px;
    height: 80px;
    background-color: #46b450;
    color: white;
    font-size: 48px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: awp-scaleIn 0.3s ease;
}

@keyframes awp-scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.awp-success-message h2 {
    color: #333;
    margin-bottom: 10px;
}

.awp-success-message p {
    color: #666;
    margin-bottom: 30px;
    font-size: 18px;
}

/* Error Messages */
.awp-error-message {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff5f5;
    border: 1px solid #ffdddd;
    border-radius: 8px;
    width: 100%;
}

.awp-error-icon {
    font-size: 48px;
    color: #dc3232;
    margin-bottom: 20px;
}

.awp-step-error {
    background-color: #ffebe8;
    border: 1px solid #dc3232;
    color: #dc3232;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: awp-shake 0.3s ease;
}

@keyframes awp-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .awp-assessment-form {
        padding: 20px;
    }
    
    .awp-form-row {
        flex-direction: column;
    }
    
    .awp-navigation {
        flex-direction: column-reverse;
    }
    
    .awp-btn {
        width: 100%;
        text-align: center;
    }
    
    .awp-steps {
        flex-direction: column;
    }
    
    .awp-step-indicator {
        min-width: auto;
    }
    
    .awp-answer-score {
        position: static;
        transform: none;
        margin-left: 10px;
        display: inline-block;
    }
}