/**
 * WebAgent CMS - Umfrage Styles
 * Modernes, animiertes, spaßiges Design für Frontend-Umfragen
 */

/* ========================================
   Modal & Container
   ======================================== */
.wa-survey-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(26, 26, 46, 0.9) 100%);
    backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem;
}

.wa-survey-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Floating particles background */
.wa-survey-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 180, 216, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.wa-survey-modal {
    background: var(--survey-bg, #ffffff);
    color: var(--survey-text, #1a1a2e);
    border-radius: 28px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9) translateY(30px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 30px 100px rgba(0, 0, 0, 0.5),
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.wa-survey-overlay.active .wa-survey-modal {
    transform: scale(1) translateY(0);
}

/* Animation variants */
.wa-survey-modal.animation-slide {
    transform: translateY(100%);
}
.wa-survey-overlay.active .wa-survey-modal.animation-slide {
    transform: translateY(0);
}

.wa-survey-modal.animation-zoom {
    transform: scale(0);
}
.wa-survey-overlay.active .wa-survey-modal.animation-zoom {
    transform: scale(1);
}

.wa-survey-modal.animation-bounce {
    animation: surveyBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes surveyBounce {
    0% { transform: scale(0.3) translateY(100px); opacity: 0; }
    50% { transform: scale(1.05) translateY(-10px); }
    70% { transform: scale(0.95) translateY(5px); }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* ========================================
   Close Button
   ======================================== */
.wa-survey-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--survey-text, #1a1a2e);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.wa-survey-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

/* ========================================
   Header
   ======================================== */
.wa-survey-header {
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, rgba(0, 180, 216, 0.08) 0%, transparent 100%);
}

.wa-survey-header::before {
    content: '✨';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
    opacity: 0.6;
}

.wa-survey-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--survey-primary, #00B4D8), transparent);
    opacity: 0.3;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
    50% { transform: scale(1.2) rotate(15deg); opacity: 1; }
}

.wa-survey-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--survey-primary, #00B4D8) 0%, var(--survey-secondary, #0077B6) 50%, #8B5CF6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2.25rem;
    color: white;
    box-shadow: 
        0 15px 40px rgba(0, 180, 216, 0.4),
        0 0 60px rgba(0, 180, 216, 0.2);
    animation: iconFloat 3s ease-in-out infinite;
    position: relative;
}

.wa-survey-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--survey-primary, #00B4D8), #8B5CF6, var(--survey-primary, #00B4D8));
    z-index: -1;
    animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}

@keyframes iconGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.wa-survey-title {
    font-size: 1.625rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    background: linear-gradient(135deg, var(--survey-primary, #00B4D8) 0%, #0077B6 50%, #8B5CF6 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.wa-survey-description {
    font-size: 1rem;
    opacity: 0.7;
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   Progress Bar
   ======================================== */
.wa-survey-progress {
    height: 6px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.05));
    overflow: hidden;
    position: relative;
}

.wa-survey-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--survey-primary, #00B4D8), #8B5CF6, var(--survey-primary, #00B4D8));
    background-size: 200% 100%;
    animation: progressGradient 2s linear infinite;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 0 3px 3px 0;
}

@keyframes progressGradient {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.wa-survey-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: progressShine 1.2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========================================
   Content Area
   ======================================== */
.wa-survey-content {
    padding: 1.5rem 2rem;
    max-height: 50vh;
    overflow-y: auto;
}

.wa-survey-content::-webkit-scrollbar {
    width: 6px;
}
.wa-survey-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}
.wa-survey-content::-webkit-scrollbar-thumb {
    background: var(--survey-primary, #00B4D8);
    border-radius: 3px;
}

/* ========================================
   Question Styles
   ======================================== */
.wa-survey-question {
    animation: questionFadeIn 0.5s ease forwards;
}

@keyframes questionFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.wa-question-number {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--survey-primary, #00B4D8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.wa-question-text {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.wa-question-required {
    color: #EF4444;
    margin-left: 4px;
}

/* ========================================
   Emoji Rating
   ======================================== */
.wa-emoji-rating {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.wa-emoji-option {
    width: 72px;
    height: 72px;
    border: 3px solid transparent;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.06));
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    overflow: hidden;
}

.wa-emoji-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.2), rgba(139, 92, 246, 0.2));
    opacity: 0;
    transition: opacity 0.3s;
}

.wa-emoji-option:hover {
    transform: scale(1.2) translateY(-8px) rotate(5deg);
    background: rgba(0, 180, 216, 0.12);
    box-shadow: 0 15px 40px rgba(0, 180, 216, 0.25);
}

.wa-emoji-option:hover::before {
    opacity: 1;
}

.wa-emoji-option.selected {
    border-color: var(--survey-primary, #00B4D8);
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.2), rgba(139, 92, 246, 0.15));
    transform: scale(1.15);
    box-shadow: 
        0 10px 30px rgba(0, 180, 216, 0.4),
        0 0 40px rgba(0, 180, 216, 0.2);
    animation: emojiPop 0.5s ease;
}

@keyframes emojiPop {
    0% { transform: scale(1); }
    30% { transform: scale(1.3) rotate(-10deg); }
    60% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1.15) rotate(0deg); }
}

/* ========================================
   Star Rating
   ======================================== */
.wa-star-rating {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    font-size: 3rem;
    padding: 1rem 0;
}

.wa-star {
    color: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.wa-star:hover,
.wa-star.hovered {
    color: #FCD34D;
    transform: scale(1.25) rotate(-10deg);
    filter: drop-shadow(0 5px 15px rgba(252, 211, 77, 0.5));
}

.wa-star.selected {
    color: #FBBF24;
    filter: drop-shadow(0 5px 20px rgba(251, 191, 36, 0.6));
    animation: starPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes starPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.5) rotate(15deg); }
    60% { transform: scale(1.1) rotate(-5deg); }
    100% { transform: scale(1.2); }
}

/* ========================================
   NPS Scale
   ======================================== */
.wa-nps-scale {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}

.wa-nps-option {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(0, 0, 0, 0.12);
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(0,0,0,0.02));
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
}

.wa-nps-option:hover {
    border-color: var(--survey-primary, #00B4D8);
    background: rgba(0, 180, 216, 0.1);
    transform: scale(1.12) translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.2);
}

.wa-nps-option.selected {
    background: linear-gradient(135deg, var(--survey-primary, #00B4D8), var(--survey-secondary, #0077B6));
    color: white;
    border-color: transparent;
    transform: scale(1.15);
    box-shadow: 
        0 8px 25px rgba(0, 180, 216, 0.45),
        0 0 30px rgba(0, 180, 216, 0.2);
    animation: npsPop 0.4s ease;
}

@keyframes npsPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1.15); }
}

.wa-nps-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 0.5rem;
}

/* ========================================
   Choice Options (Single/Multiple)
   ======================================== */
.wa-choice-options {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.wa-choice-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.5rem;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(0,0,0,0.01));
    position: relative;
    overflow: hidden;
}

.wa-choice-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.wa-choice-option:hover {
    border-color: var(--survey-primary, #00B4D8);
    transform: translateX(8px) scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.12);
}

.wa-choice-option:hover::before {
    opacity: 1;
}

.wa-choice-option.selected {
    border-color: var(--survey-primary, #00B4D8);
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.12), rgba(139, 92, 246, 0.08));
    box-shadow: 
        0 6px 20px rgba(0, 180, 216, 0.2),
        inset 0 0 0 1px rgba(0, 180, 216, 0.1);
    animation: choicePop 0.4s ease;
}

@keyframes choicePop {
    0% { transform: scale(1); }
    30% { transform: scale(1.03) translateX(4px); }
    100% { transform: scale(1); }
}

.wa-choice-indicator {
    width: 26px;
    height: 26px;
    border: 2px solid rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.wa-choice-option.multi .wa-choice-indicator {
    border-radius: 6px;
}

.wa-choice-option.selected .wa-choice-indicator {
    border-color: var(--survey-primary, #00B4D8);
    background: var(--survey-primary, #00B4D8);
    color: white;
}

.wa-choice-indicator i {
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.wa-choice-option.selected .wa-choice-indicator i {
    opacity: 1;
    transform: scale(1);
}

.wa-choice-emoji {
    font-size: 1.5rem;
}

.wa-choice-text {
    flex: 1;
    font-weight: 500;
}

/* ========================================
   Dropdown
   ======================================== */
.wa-survey-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    font-size: 1rem;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300B4D8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
}

.wa-survey-select:focus {
    outline: none;
    border-color: var(--survey-primary, #00B4D8);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.15);
}

/* ========================================
   Text Inputs
   ======================================== */
.wa-survey-input,
.wa-survey-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    font-size: 1rem;
    background: transparent;
    color: inherit;
    transition: all 0.3s ease;
    font-family: inherit;
}

.wa-survey-input:focus,
.wa-survey-textarea:focus {
    outline: none;
    border-color: var(--survey-primary, #00B4D8);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.15);
}

.wa-survey-textarea {
    min-height: 120px;
    resize: vertical;
}

.wa-survey-input::placeholder,
.wa-survey-textarea::placeholder {
    opacity: 0.5;
}

/* ========================================
   Scale Slider
   ======================================== */
.wa-scale-container {
    padding: 1rem 0;
}

.wa-scale-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.1);
    appearance: none;
    outline: none;
}

.wa-scale-slider::-webkit-slider-thumb {
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--survey-primary, #00B4D8), var(--survey-secondary, #0077B6));
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
    transition: transform 0.2s ease;
}

.wa-scale-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.wa-scale-value {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--survey-primary, #00B4D8);
    margin-top: 1rem;
}

.wa-scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 0.5rem;
}

/* ========================================
   Yes/No Toggle
   ======================================== */
.wa-yesno-options {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    padding: 1rem 0;
}

.wa-yesno-option {
    flex: 1;
    max-width: 160px;
    padding: 1.5rem 2rem;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(145deg, rgba(255,255,255,0.8), rgba(0,0,0,0.02));
    position: relative;
    overflow: hidden;
}

.wa-yesno-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--survey-primary, #00B4D8), #8B5CF6);
    opacity: 0;
    transition: opacity 0.3s;
}

.wa-yesno-option:hover {
    border-color: var(--survey-primary, #00B4D8);
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 180, 216, 0.2);
}

.wa-yesno-option.selected {
    background: linear-gradient(135deg, var(--survey-primary, #00B4D8), #0077B6);
    color: white;
    border-color: transparent;
    box-shadow: 
        0 12px 35px rgba(0, 180, 216, 0.45),
        0 0 60px rgba(0, 180, 216, 0.15);
    animation: yesnoPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes yesnoPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.1) rotate(3deg); }
    100% { transform: scale(1); }
}

.wa-yesno-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    transition: transform 0.3s;
}

.wa-yesno-option:hover .wa-yesno-icon {
    transform: scale(1.2) rotate(10deg);
}

.wa-yesno-option.selected .wa-yesno-icon {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.wa-yesno-text {
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* ========================================
   Image Choice
   ======================================== */
.wa-image-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.wa-image-option {
    border: 3px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.05);
}

.wa-image-option:hover {
    transform: scale(1.05);
    border-color: rgba(0, 180, 216, 0.5);
}

.wa-image-option.selected {
    border-color: var(--survey-primary, #00B4D8);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.35);
}

.wa-image-option img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.wa-image-option-text {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========================================
   Contact Form (End)
   ======================================== */
.wa-survey-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wa-survey-contact-title {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.wa-survey-contact-subtitle {
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.wa-contact-field {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.wa-contact-field:focus-within {
    border-color: var(--survey-primary, #00B4D8);
}

.wa-contact-field i {
    color: var(--survey-primary, #00B4D8);
    width: 20px;
    text-align: center;
}

.wa-contact-field input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: inherit;
    outline: none;
}

/* ========================================
   Footer / Navigation
   ======================================== */
.wa-survey-footer {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.04));
}

.wa-survey-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
}

.wa-survey-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.wa-survey-btn:hover::before {
    opacity: 1;
}

.wa-survey-btn-prev {
    background: transparent;
    color: inherit;
    opacity: 0.7;
}

.wa-survey-btn-prev:hover {
    opacity: 1;
    transform: translateX(-5px);
}

.wa-survey-btn-next,
.wa-survey-btn-submit {
    background: linear-gradient(135deg, var(--survey-primary, #00B4D8) 0%, var(--survey-secondary, #0077B6) 50%, #8B5CF6 100%);
    background-size: 200% 200%;
    animation: btnGlow 3s ease infinite;
    color: white;
    box-shadow: 
        0 8px 25px rgba(0, 180, 216, 0.4),
        0 0 50px rgba(0, 180, 216, 0.1);
}

@keyframes btnGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.wa-survey-btn-next:hover,
.wa-survey-btn-submit:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 
        0 12px 35px rgba(0, 180, 216, 0.5),
        0 0 80px rgba(0, 180, 216, 0.2);
}

.wa-survey-btn-next:active,
.wa-survey-btn-submit:active {
    transform: translateY(-1px) scale(0.98);
}

.wa-survey-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.wa-survey-btn-skip {
    background: transparent;
    color: inherit;
    opacity: 0.5;
    font-size: 0.9rem;
}

.wa-survey-btn-skip:hover {
    opacity: 0.8;
}

/* Button styles variants */
.wa-survey-btn.style-rounded { border-radius: 25px; }
.wa-survey-btn.style-square { border-radius: 4px; }
.wa-survey-btn.style-pill { border-radius: 50px; }

/* ========================================
   Thank You Screen
   ======================================== */
.wa-survey-thankyou {
    padding: 3.5rem 2rem;
    text-align: center;
    animation: thankYouPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    position: relative;
    overflow: hidden;
}

/* Confetti effect */
.wa-survey-thankyou::before,
.wa-survey-thankyou::after {
    content: '🎉';
    position: absolute;
    font-size: 2rem;
    animation: confettiFall 2s ease-out forwards;
    opacity: 0;
}

.wa-survey-thankyou::before {
    left: 15%;
    top: -20px;
    animation-delay: 0.2s;
}

.wa-survey-thankyou::after {
    right: 15%;
    top: -20px;
    content: '🎊';
    animation-delay: 0.4s;
}

@keyframes confettiFall {
    0% { opacity: 0; transform: translateY(0) rotate(0deg) scale(0.5); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: translateY(150px) rotate(360deg) scale(1); }
}

@keyframes thankYouPop {
    from { opacity: 0; transform: scale(0.8) rotate(-5deg); }
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.wa-thankyou-icon {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #059669, #34D399);
    background-size: 200% 200%;
    animation: checkBounce 0.6s ease 0.3s both, gradientShift 3s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.75rem;
    font-size: 3.5rem;
    color: white;
    box-shadow: 
        0 15px 50px rgba(16, 185, 129, 0.5),
        0 0 80px rgba(16, 185, 129, 0.2);
    position: relative;
}

.wa-thankyou-icon::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #34D399, #10B981);
    z-index: -1;
    animation: iconGlow 1.5s ease-in-out infinite;
}

@keyframes checkBounce {
    0% { transform: scale(0) rotate(-180deg); }
    50% { transform: scale(1.2) rotate(15deg); }
    70% { transform: scale(0.9) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.wa-thankyou-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #10B981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleSlide 0.5s ease 0.5s both;
}

@keyframes titleSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wa-thankyou-message {
    font-size: 1.1rem;
    opacity: 0.75;
    line-height: 1.7;
    max-width: 320px;
    margin: 0 auto;
    animation: titleSlide 0.5s ease 0.7s both;
}

.wa-thankyou-close {
    margin-top: 2.5rem;
    animation: titleSlide 0.5s ease 0.9s both;
}

/* ========================================
   Dark Mode Support
   ======================================== */
.wa-survey-modal.dark {
    --survey-bg: #1a1a2e;
    --survey-text: #ffffff;
}

.wa-survey-modal.dark .wa-choice-option,
.wa-survey-modal.dark .wa-emoji-option,
.wa-survey-modal.dark .wa-yesno-option,
.wa-survey-modal.dark .wa-nps-option {
    border-color: rgba(255, 255, 255, 0.15);
}

.wa-survey-modal.dark .wa-survey-input,
.wa-survey-modal.dark .wa-survey-textarea,
.wa-survey-modal.dark .wa-survey-select,
.wa-survey-modal.dark .wa-contact-field {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.wa-survey-modal.dark .wa-survey-close {
    background: rgba(255, 255, 255, 0.1);
}

.wa-survey-modal.dark .wa-survey-footer {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.wa-survey-modal.dark .wa-survey-header::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.wa-survey-modal.dark .wa-star {
    color: rgba(255, 255, 255, 0.2);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 576px) {
    .wa-survey-modal {
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
        width: 100%;
        margin: 0;
    }
    
    .wa-survey-overlay {
        align-items: flex-end;
        padding: 0;
    }
    
    .wa-survey-header {
        padding: 1.25rem 1rem 0.75rem;
    }
    
    .wa-survey-header::before {
        display: none;
    }
    
    .wa-survey-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .wa-survey-content {
        padding: 0.75rem 1rem;
        max-height: calc(90vh - 200px);
        overflow-y: auto;
    }
    
    .wa-survey-footer {
        padding: 0.75rem 1rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .wa-survey-footer .wa-survey-btn {
        width: 100%;
        justify-content: center;
    }
    
    .wa-emoji-option {
        width: 44px;
        height: 44px;
        font-size: 1.35rem;
    }
    
    .wa-emoji-options {
        gap: 0.35rem;
    }
    
    .wa-nps-option {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .wa-nps-options {
        gap: 0.25rem;
    }
    
    .wa-survey-title {
        font-size: 1.15rem;
    }
    
    .wa-question-text {
        font-size: 0.95rem;
    }
    
    .wa-survey-close {
        width: 32px;
        height: 32px;
        top: 0.75rem;
        right: 0.75rem;
        font-size: 1rem;
    }
    
    .wa-choice-option {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .wa-rating-options {
        gap: 0.25rem;
    }
    
    .wa-rating-option {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .wa-text-input {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 100px;
    }
}

/* ========================================
   Popup variant (bottom corner)
   ======================================== */
.wa-survey-overlay.popup-mode {
    align-items: flex-end;
    justify-content: flex-end;
    background: transparent;
    pointer-events: none;
    padding: 1rem;
}

.wa-survey-overlay.popup-mode .wa-survey-modal {
    pointer-events: all;
    max-width: 380px;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.3),
        0 5px 20px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Inline variant (embedded)
   ======================================== */
.wa-survey-inline {
    margin: 2rem 0;
    background: var(--survey-bg, #ffffff);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.wa-survey-inline .wa-survey-close {
    display: none;
}

/* ========================================
   Welcome Screen
   ======================================== */
.wa-survey-welcome {
    text-align: center;
    padding: 2rem 1.5rem;
}

.wa-welcome-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: waveHand 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes waveHand {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(20deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(15deg); }
    80% { transform: rotate(-5deg); }
}

.wa-welcome-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--survey-primary, #00B4D8) 0%, var(--survey-secondary, #0077B6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wa-welcome-text {
    color: var(--survey-text, #1a1a2e);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.wa-welcome-meta {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--survey-primary, #00B4D8);
    opacity: 0.9;
}

.wa-welcome-meta i {
    margin-right: 0.25rem;
}

.wa-welcome-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 280px;
    margin: 0 auto;
}

.wa-welcome-btn-yes {
    background: linear-gradient(135deg, var(--survey-primary, #00B4D8) 0%, var(--survey-secondary, #0077B6) 100%);
    color: #fff !important;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.35);
}

.wa-welcome-btn-yes:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.45);
}

.wa-welcome-btn-yes i {
    margin-right: 0.5rem;
}

.wa-welcome-btn-no {
    background: transparent;
    color: var(--survey-text, #1a1a2e);
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.wa-welcome-btn-no:hover {
    opacity: 1;
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.03);
}

/* Dark mode adjustments */
.wa-survey-modal.dark .wa-welcome-btn-no {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.wa-survey-modal.dark .wa-welcome-btn-no:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 480px) {
    .wa-welcome-icon {
        font-size: 3rem;
    }
    
    .wa-welcome-title {
        font-size: 1.25rem;
    }
    
    .wa-welcome-text {
        font-size: 0.9rem;
    }
    
    .wa-welcome-buttons {
        max-width: 100%;
    }
}
