@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.survey-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.survey-container:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.survey-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.survey-body {
    padding: 30px;
}

.rating-option {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.rating-option:hover {
    transform: perspective(500px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.rating-option input[type="radio"] {
    display: none;
}

.rating-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.05);
}

.rating-icon {
    font-size: 2rem;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.rating-option:hover .rating-icon {
    transform: scale(1.1);
}

.rating-label {
    font-weight: 500;
    font-size: 1.1rem;
    flex-grow: 1;
}

.very-satisfied {
    color: #2ecc71;
}

.satisfied {
    color: #3498db;
}

.less-satisfied {
    color: #f39c12;
}

.not-satisfied {
    color: #e74c3c;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
}

/* Gauge Meter Style */
.gauge-container {
    width: 200px;
    height: 100px;
    margin: 0 auto 30px;
    position: relative;
}

.gauge-body {
    width: 100%;
    height: 0;
    padding-bottom: 50%;
    background: #e0e0e0;
    border-top-left-radius: 100% 200%;
    border-top-right-radius: 100% 200%;
    overflow: hidden;
    position: relative;
}

.gauge-fill {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #3498db, #2ecc71);
    transform-origin: center top;
    transition: transform 1s ease-out;
}

.gauge-cover {
    width: 75%;
    height: 150%;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.gauge-text {
    position: absolute;
    top: 25px;
    /* atau nilai lain yang sesuai dengan kebutuhan Anda */
}

.gauge-range {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    color: #666;
    font-size: 0.8rem;
}

/* Ripple Effect */
.ripple-effect {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 1s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(10);
        opacity: 0;
    }
}

/* Dark Mode Styles */
body.dark-mode {
    background: #121212;
    color: #f5f5f5;
}

body.dark-mode .survey-container {
    background: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .rating-option {
    background: #2d2d2d;
    border-color: #444;
}

body.dark-mode .gauge-cover {
    background: #2d2d2d;
    color: #f5f5f5;
}

body.dark-mode textarea {
    background: #2d2d2d;
    color: #f5f5f5;
    border-color: #444;
}

/* Thank You Section */
.thank-you {
    display: none;
    text-align: center;
    padding: 40px;
}

.thank-you i {
    font-size: 5rem;
    margin-bottom: 20px;
}

.reward-badge {
    background: linear-gradient(135deg, #ffd700, #ffcc00);
    color: #8a6d3b;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.reward-badge i {
    font-size: 1.5rem;
    margin-right: 10px;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.progress-steps .step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    z-index: 2;
}

.progress-steps .step.active {
    background: var(--primary-color);
    color: white;
}

.progress-steps .progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e9ecef;
    z-index: 1;
    transform: translateY(-50%);
}

.progress-steps .progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.5s ease;
}

.countdown-timer {
    background: rgba(0, 0, 0, 0.05);
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
}

.countdown-timer p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #666;
}

.countdown-timer span {
    font-weight: bold;
    color: var(--primary-color);
}

/* Tombol submit ketika disabled */
#submitButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}