/* Assessment Popup Styles */
.assessment-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.assessment-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease-out;
    backdrop-filter: blur(3px);
}

.assessment-popup-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 750px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    display: flex;
}

.assessment-popup-image {
    width: 32%;
    background: linear-gradient(135deg, #2E5CFF, #5D45F9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.assessment-popup-text {
    width: 68%;
    padding: 28px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.assessment-popup-text h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #4a55e7;
    margin-bottom: 8px;
    font-weight: 800;
    background: rgba(74, 85, 231, 0.1);
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    align-self: flex-start;
}

.assessment-popup-text h4 {
    font-size: 24px;
    color: #101828;
    margin-bottom: 10px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.assessment-popup-text p {
    color: #475467;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.assessment-popup-options {
    display: flex;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    background-color: #f9fafb;
}

.popup-option {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    user-select: none;
    border: none;
    background: none;
    position: relative;
    outline: none;
    height: 42px;
}

.popup-option:hover {
    background-color: #f1f5f9;
}

.popup-option:focus-visible {
    box-shadow: inset 0 0 0 2px #0056b3;
    z-index: 1;
}

.popup-option i {
    font-size: 18px;
    margin-bottom: 0;
    color: #6b7280;
    transition: color 0.3s;
}

.popup-option span {
    font-size: 15px;
    font-weight: 500;
}

.popup-option.active {
    background-color: #0056b3;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.popup-option.active i {
    color: white;
}

.popup-option:first-child {
    border-right: 1px solid #d0d5dd;
}

.popup-option.active:first-child {
    border-right-color: #0056b3;
}

.popup-content-wrapper {
    transition: opacity 0.3s, transform 0.3s;
    animation: fadeSlideUp 0.4s ease-out;
}

.testimonial {
    margin-top: 14px;
    padding: 12px;
    background-color: #f8fafc;
    border-left: 3px solid #0056b3;
    font-style: italic;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.testimonial .quote {
    color: #4b5563;
    font-size: 13px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.testimonial .author {
    color: #6b7280;
    font-size: 12px;
    text-align: right;
    margin-bottom: 0;
}

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

#assessment-popup-form .form-group,
.popup-content-wrapper .form-group {
    margin-bottom: 12px;
}

#assessment-popup-form input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    height: 42px;
}

#assessment-popup-form input[type="email"]:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
    outline: none;
}

#assessment-popup-form button,
.popup-content-wrapper button {
    width: 100%;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    height: 42px;
}

#assessment-popup-form button:hover,
.popup-content-wrapper button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.15);
}

#assessment-popup-form button:active,
.popup-content-wrapper button:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 86, 179, 0.2);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn-primary .loading-indicator {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s ease infinite;
    margin-left: 10px;
}

.btn-primary.loading {
    pointer-events: none;
}

.btn-primary.loading .loading-indicator {
    display: inline-block;
}

.privacy-note {
    text-align: center;
    color: #667085;
    margin-top: 12px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

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

/* Fixed assessment CTA button */
.floating-assessment-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 99;
}

.floating-assessment-btn i {
    font-size: 18px;
}

.floating-assessment-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.25);
    background-color: #0062cc;
}

/* Tablet */
@media (max-width: 992px) {
    .assessment-popup-container {
        max-width: 700px;
    }

    .assessment-popup-text h4 {
        font-size: 24px;
    }
    
    .floating-assessment-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .assessment-popup-content {
        flex-direction: column;
    }

    .assessment-popup-image, .assessment-popup-text {
        width: 100%;
    }

    .assessment-popup-image {
        padding: 20px;
        min-height: 120px;
        max-height: 140px;
    }

    .assessment-popup-text {
        padding: 24px 20px;
    }

    .assessment-popup-text h4 {
        font-size: 20px;
    }
    
    .floating-assessment-btn {
        bottom: 20px;
        right: 20px;
        padding: 8px 16px;
    }
    
    .floating-assessment-btn span {
        display: none;
    }
    
    .floating-assessment-btn i {
        margin-right: 0;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .assessment-popup-image {
        padding: 20px;
        min-height: 120px;
    }

    .assessment-popup-text {
        padding: 25px 20px;
    }

    .assessment-popup-text h3 {
        font-size: 14px;
    }

    .assessment-popup-text h4 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .assessment-popup-text p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .popup-option i {
        font-size: 18px;
    }

    .popup-option span {
        font-size: 14px;
    }

    #assessment-popup-form input[type="email"] {
        padding: 12px;
    }

    #assessment-popup-form button,
    .popup-content-wrapper button {
        padding: 12px;
        font-size: 15px;
    }
}