/* IDC Analytics - Survey Styles */

.idc-survey-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.idc-survey-modal {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.idc-survey-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
    transition: color 0.2s;
}

.idc-survey-close:hover {
    color: #333;
}

.idc-survey-modal h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
}

.idc-survey-question {
    margin-bottom: 25px;
}

.idc-survey-question label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #555;
}

.idc-survey-question input[type="text"],
.idc-survey-question textarea,
.idc-survey-question select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.idc-survey-question input:focus,
.idc-survey-question textarea:focus,
.idc-survey-question select:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Rating stars/numbers */
.idc-rating {
    display: flex;
    gap: 10px;
}

.idc-rating label {
    cursor: pointer;
    margin: 0;
}

.idc-rating input[type="radio"] {
    display: none;
}

.idc-rating span {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    font-weight: bold;
    transition: all 0.2s;
}

.idc-rating input[type="radio"]:checked + span {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.idc-rating label:hover span {
    border-color: #4CAF50;
}

/* Yes/No buttons */
.idc-yes-no {
    display: flex;
    gap: 15px;
}

.idc-yes-no label {
    flex: 1;
    cursor: pointer;
    margin: 0;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    transition: all 0.2s;
    font-weight: 500;
}

.idc-yes-no input[type="radio"] {
    display: none;
}

.idc-yes-no input[type="radio"]:checked + * {
    border-color: #4CAF50;
    background: #f1f8f4;
}

.idc-yes-no label:hover {
    border-color: #4CAF50;
}

/* Submit button */
.idc-survey-submit {
    width: 100%;
    padding: 12px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.idc-survey-submit:hover {
    background: #45a049;
}

.idc-survey-submit:active {
    transform: scale(0.98);
}

/* Responsive */
@media (max-width: 600px) {
    .idc-survey-modal {
        padding: 20px;
        width: 95%;
    }

    .idc-survey-modal h3 {
        font-size: 20px;
    }

    .idc-rating {
        justify-content: space-between;
    }

    .idc-rating span {
        width: 35px;
        height: 35px;
        line-height: 35px;
    }
}
