.floating-survey-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #23489E;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.45);
    transition: all 0.3s ease;
    animation: pulse-survey 2s infinite;
}

.floating-survey-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
    animation: none;
}

.floating-survey-btn i {
    font-size: 18px;
}

@keyframes pulse-survey {
    0% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.45);
    }

    50% {
        box-shadow: 0 8px 35px rgba(102, 126, 234, 0.7);
    }

    100% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.45);
    }
}

.survey-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.survey-overlay.active {
    display: flex;
    opacity: 1;
}

.survey-modal-box {
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.survey-overlay.active .survey-modal-box {
    transform: translateY(0);
}

.survey-modal-header {
    background: #23489E;
    padding: 24px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.survey-modal-header h5 {
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    margin: 0;
}

.survey-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

.survey-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.survey-modal-body {
    padding: 30px;
}

.survey-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 0;
}

.survey-modal-box .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.survey-modal-box .form-control,
.survey-modal-box .form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.survey-modal-box .form-control:focus,
.survey-modal-box .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input:checked~label {
    color: #ffc107;
    transform: scale(1.1);
}

.survey-modal-box .btn-submit-survey {
    background: #23489E;
    border: none;
    border-radius: 12px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
    width: 100%;
}

.survey-modal-box .btn-submit-survey:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.survey-modal-footer {
    padding: 0 30px 30px;
}

.survey-success {
    text-align: center;
    padding: 40px 20px;
}

.survey-success i {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
}

.survey-success h4 {
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.survey-success p {
    color: #666;
    font-size: 15px;
}

@media (max-width: 576px) {
    .floating-survey-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 18px;
        font-size: 13px;
    }

    .floating-survey-btn span {
        display: none;
    }

    .floating-survey-btn {
        border-radius: 50%;
        padding: 16px;
    }
}