/**
 * Deactivation Feedback Modal Styles
 */

.authyo-feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.authyo-feedback-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

.authyo-feedback-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 100001;
    animation: authyo-feedback-fade-in 0.3s ease-out;
}

@keyframes authyo-feedback-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.authyo-feedback-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    border-radius: 8px 8px 0 0;
}

.authyo-feedback-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #23282d;
}

.authyo-feedback-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
    transition: color 0.2s;
    line-height: 1;
}

.authyo-feedback-modal-close:hover {
    color: #000;
}

.authyo-feedback-modal-close .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.authyo-feedback-modal-body {
    padding: 24px;
}

.authyo-feedback-question {
    font-size: 16px;
    line-height: 1.6;
    color: #23282d;
    margin: 0 0 20px 0;
    font-weight: 500;
}

.authyo-feedback-options {
    margin: 0 0 20px 0;
}

.authyo-feedback-option {
    display: block;
    padding: 12px 15px;
    margin: 0 0 10px 0;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.authyo-feedback-option:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.authyo-feedback-option input[type="radio"] {
    margin: 0 10px 0 0;
    cursor: pointer;
}

.authyo-feedback-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: #2271b1;
}

.authyo-feedback-option input[type="radio"]:checked ~ span {
    font-weight: 600;
    color: #2271b1;
}

/* Modern browsers with :has() support */
@supports selector(:has(*)) {
    .authyo-feedback-option:has(input[type="radio"]:checked) {
        border-color: #2271b1;
        background: #f0f6fc;
    }
}

/* Fallback for browsers without :has() support */
.authyo-feedback-option-checked {
    border-color: #2271b1;
    background: #f0f6fc;
}

.authyo-feedback-other-container {
    margin: 15px 0 20px 0;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
}

.authyo-feedback-other-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
}

.authyo-feedback-other-container textarea:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.authyo-feedback-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.authyo-feedback-actions .button {
    min-width: 120px;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.authyo-feedback-actions .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.authyo-feedback-skip {
    background: #f0f0f1;
    color: #2c3338;
    border: 1px solid #dcdcde;
}

.authyo-feedback-skip:hover:not(:disabled) {
    background: #dcdcde;
    border-color: #c3c4c7;
}

.authyo-feedback-submit {
    background: #2271b1;
    color: #fff;
    border: 1px solid #2271b1;
}

.authyo-feedback-submit:hover:not(:disabled) {
    background: #135e96;
    border-color: #135e96;
}

.authyo-feedback-thank-you {
    text-align: center;
    padding: 40px 20px;
}

.authyo-feedback-thank-you p {
    font-size: 18px;
    color: #2271b1;
    font-weight: 600;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 782px) {
    .authyo-feedback-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .authyo-feedback-modal-header {
        padding: 15px 20px;
    }
    
    .authyo-feedback-modal-body {
        padding: 20px;
    }
    
    .authyo-feedback-actions {
        flex-direction: column;
    }
    
    .authyo-feedback-actions .button {
        width: 100%;
    }
}

