/**
 * Professional Enhancements - Roseo Form
 * Modern, polished styles for a professional look
 * All values use CSS variables for admin customization
 * 
 * @package Roseo_Form
 * @version 1.0.0
 */

/* ============================================
   GLOBAL ENHANCEMENTS
   ============================================ */

#roseo-form-wrapper {
    /* Smooth font rendering */
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    
    /* Global transition defaults using admin variables */
    --transition-default: var(--mfm-transition-duration, 200ms) var(--mfm-transition-easing, ease);
}

#roseo-form-wrapper * {
    box-sizing: border-box !important;
}

/* ============================================
   CARD ENHANCEMENTS - Premium Feel
   ============================================ */

/* Base card with subtle gradient background */
#roseo-form-wrapper .roseo-selection-card {
    background: linear-gradient(
        180deg, 
        var(--mfm-step-card-bg, #ffffff) 0%, 
        rgba(248, 250, 252, 0.8) 100%
    ) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: all var(--transition-default) !important;
}

/* Card hover - Elegant lift with glow */
#roseo-form-wrapper .roseo-selection-card:hover {
    background: linear-gradient(
        180deg, 
        #ffffff 0%, 
        rgba(240, 253, 244, 0.9) 100%
    ) !important;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 0 0 4px rgba(var(--mfm-secondary-rgb, 0, 146, 57), 0.1) !important;
}

/* Card selected - Premium selected state */
#roseo-form-wrapper .roseo-selection-card.selected {
    background: linear-gradient(
        135deg, 
        rgba(240, 253, 244, 1) 0%, 
        rgba(220, 252, 231, 1) 100%
    ) !important;
    box-shadow: 
        0 10px 25px -5px rgba(0, 146, 57, 0.15),
        0 8px 10px -6px rgba(0, 146, 57, 0.1),
        0 0 0 4px rgba(0, 146, 57, 0.15),
        inset 0 0 0 1px rgba(0, 146, 57, 0.1) !important;
}

/* Card focus state for accessibility */
#roseo-form-wrapper .roseo-selection-card:focus,
#roseo-form-wrapper .roseo-selection-card:focus-within {
    outline: none !important;
    box-shadow: 
        0 0 0 3px rgba(var(--mfm-secondary-rgb, 0, 146, 57), 0.4),
        var(--step-card-hover-shadow) !important;
}

/* ============================================
   ICON ENHANCEMENTS
   ============================================ */

/* Icon container with refined gradient */
#roseo-form-wrapper .roseo-selection-card .card-icon {
    background: linear-gradient(
        145deg, 
        var(--mfm-secondary, #009239) 0%, 
        var(--mfm-primary, #015328) 100%
    ) !important;
    box-shadow: 
        0 4px 14px -2px rgba(0, 146, 57, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
}

/* Icon hover - Subtle scale and brightness */
#roseo-form-wrapper .roseo-selection-card:hover .card-icon {
    transform: scale(1.08) !important;
    box-shadow: 
        0 6px 20px -4px rgba(0, 146, 57, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
}

/* Selected icon - Brighter and more prominent */
#roseo-form-wrapper .roseo-selection-card.selected .card-icon {
    background: linear-gradient(
        145deg, 
        #10b981 0%, 
        var(--mfm-secondary, #009239) 100%
    ) !important;
    box-shadow: 
        0 8px 24px -4px rgba(16, 185, 129, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
    animation: iconPulse 0.6s ease-out !important;
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1.05); }
}

/* ============================================
   BUTTON ENHANCEMENTS
   ============================================ */

/* Primary button (Next/Continue) */
#roseo-form-wrapper .roseo-btn-next,
#roseo-form-wrapper .roseo-btn-primary {
    background: linear-gradient(
        145deg, 
        var(--mfm-secondary, #009239) 0%, 
        var(--mfm-primary, #015328) 100%
    ) !important;
    box-shadow: 
        0 4px 14px -2px rgba(0, 146, 57, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    transition: all var(--transition-default, 0.25s cubic-bezier(0.4, 0, 0.2, 1)) !important;
}

#roseo-form-wrapper .roseo-btn-next:hover,
#roseo-form-wrapper .roseo-btn-primary:hover {
    background: linear-gradient(
        145deg, 
        #00a541 0%, 
        var(--mfm-secondary, #009239) 100%
    ) !important;
    box-shadow: 
        0 6px 20px -4px rgba(0, 146, 57, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}

#roseo-form-wrapper .roseo-btn-next:active,
#roseo-form-wrapper .roseo-btn-primary:active {
    transform: translateY(0) !important;
    box-shadow: 
        0 2px 8px -2px rgba(0, 146, 57, 0.4),
        inset 0 1px 1px rgba(0, 0, 0, 0.1) !important;
}

/* Secondary button (Back) */
#roseo-form-wrapper .roseo-btn-prev,
#roseo-form-wrapper .roseo-btn-secondary {
    background: linear-gradient(
        145deg, 
        #ffffff 0%, 
        #f8f9fa 100%
    ) !important;
    box-shadow: 
        0 2px 8px -2px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
    transition: all var(--transition-default, 0.25s cubic-bezier(0.4, 0, 0.2, 1)) !important;
}

#roseo-form-wrapper .roseo-btn-prev:hover,
#roseo-form-wrapper .roseo-btn-secondary:hover {
    background: linear-gradient(
        145deg, 
        #ffffff 0%, 
        #f0fdf4 100%
    ) !important;
    border-color: var(--mfm-secondary, #009239) !important;
    color: var(--mfm-secondary, #009239) !important;
    box-shadow: 
        0 4px 12px -2px rgba(0, 146, 57, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-1px) !important;
}

/* ============================================
   HEADER CARD ENHANCEMENTS
   ============================================ */

/* Step cards in header */
#roseo-form-wrapper .roseo-card-step {
    background: linear-gradient(
        180deg, 
        #ffffff 0%, 
        #f8fafc 100%
    ) !important;
    transition: all var(--transition-default, 0.3s cubic-bezier(0.4, 0, 0.2, 1)) !important;
}

/* Active step card */
#roseo-form-wrapper .roseo-card-step.active {
    background: linear-gradient(
        135deg, 
        rgba(240, 253, 244, 1) 0%, 
        rgba(255, 255, 255, 1) 100%
    ) !important;
    box-shadow: 
        0 8px 24px -4px rgba(0, 146, 57, 0.25),
        0 4px 8px -2px rgba(0, 146, 57, 0.1),
        inset 0 0 0 1px rgba(0, 146, 57, 0.1) !important;
}

/* Completed step card */
#roseo-form-wrapper .roseo-card-step.completed {
    background: linear-gradient(
        180deg, 
        rgba(220, 252, 231, 0.5) 0%, 
        rgba(240, 253, 244, 0.3) 100%
    ) !important;
}

/* ============================================
   PROGRESS BAR ENHANCEMENTS
   ============================================ */

#roseo-form-wrapper .roseo-progress-bar {
    background: linear-gradient(
        90deg, 
        #e5e7eb 0%, 
        #f3f4f6 100%
    ) !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

#roseo-form-wrapper .roseo-progress-fill {
    background: linear-gradient(
        90deg, 
        var(--mfm-secondary, #009239) 0%, 
        #10b981 50%,
        var(--mfm-secondary, #009239) 100%
    ) !important;
    background-size: 200% 100% !important;
    animation: progressShine 2s ease-in-out infinite !important;
    box-shadow: 
        0 0 10px rgba(0, 146, 57, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
}

@keyframes progressShine {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ============================================
   INPUT FIELD ENHANCEMENTS
   ============================================ */

#roseo-form-wrapper input[type="text"],
#roseo-form-wrapper input[type="email"],
#roseo-form-wrapper input[type="tel"],
#roseo-form-wrapper input[type="number"],
#roseo-form-wrapper textarea,
#roseo-form-wrapper select {
    background: linear-gradient(
        180deg, 
        var(--mfm-input-bg, #ffffff) 0%, 
        #fafafa 100%
    ) !important;
    border: 2px solid var(--mfm-input-border, var(--mfm-border, #e5e7eb)) !important;
    border-radius: var(--mfm-input-radius, var(--mfm-radius-sm, 8px)) !important;
    transition: all var(--transition-default, 0.2s ease) !important;
    font-family: var(--mfm-font, inherit) !important;
}

#roseo-form-wrapper input[type="text"]:focus,
#roseo-form-wrapper input[type="email"]:focus,
#roseo-form-wrapper input[type="tel"]:focus,
#roseo-form-wrapper input[type="number"]:focus,
#roseo-form-wrapper textarea:focus,
#roseo-form-wrapper select:focus {
    border-color: var(--mfm-input-border-focus, var(--mfm-secondary, #009239)) !important;
    box-shadow: 
        0 0 0 4px rgba(0, 146, 57, 0.1),
        0 2px 8px -2px rgba(0, 146, 57, 0.15) !important;
    outline: none !important;
    background: var(--mfm-input-bg, #ffffff) !important;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

#roseo-form-wrapper .roseo-toast {
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(248, 250, 252, 0.95) 100%
    ) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 
        0 20px 60px -10px rgba(0, 0, 0, 0.2),
        0 10px 30px -5px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
}

/* ============================================
   MODAL ENHANCEMENTS
   ============================================ */

#roseo-form-wrapper .roseo-modal-overlay,
#roseo-form-wrapper .roseo-validation-overlay {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    background: rgba(0, 0, 0, 0.4) !important;
}

#roseo-form-wrapper .roseo-modal-content,
#roseo-form-wrapper .roseo-validation-modal {
    background: linear-gradient(
        180deg, 
        #ffffff 0%, 
        #fafafa 100%
    ) !important;
    box-shadow: 
        0 25px 80px -20px rgba(0, 0, 0, 0.25),
        0 10px 40px -10px rgba(0, 0, 0, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
}

/* ============================================
   FOOTER NAVIGATION ENHANCEMENTS
   ============================================ */

#roseo-form-wrapper .roseo-footer-navigation {
    background: linear-gradient(
        180deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(240, 253, 244, 0.9) 100%
    ) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

/* ============================================
   LOADING STATE ENHANCEMENTS
   ============================================ */

#roseo-form-wrapper .loading-spinner,
#roseo-form-wrapper .roseo-spinner {
    border: 3px solid rgba(0, 146, 57, 0.1) !important;
    border-top-color: var(--mfm-secondary, #009239) !important;
    animation: spin 0.8s linear infinite !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */

@media (max-width: 768px) {
    #roseo-form-wrapper .roseo-selection-card {
        padding: 20px 16px !important;
        min-height: 140px !important;
    }
    
    #roseo-form-wrapper .roseo-selection-card .card-icon {
        width: 56px !important;
        height: 56px !important;
        margin-bottom: 14px !important;
    }
    
    #roseo-form-wrapper .roseo-selection-card .card-icon i {
        font-size: 22px !important;
    }
    
    #roseo-form-wrapper .roseo-btn {
        padding: 14px 24px !important;
        font-size: 14px !important;
    }
}

/* ============================================
   ANIMATIONS (Conditional based on admin settings)
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation duration using admin variables */
#roseo-form-wrapper .roseo-step.active {
    animation: fadeIn var(--mfm-transition-duration, 350ms) var(--mfm-transition-easing, ease-out) !important;
}

#roseo-form-wrapper .roseo-selection-card {
    animation: slideUp calc(var(--mfm-transition-duration, 300ms) * 1.3) var(--mfm-transition-easing, ease-out) !important;
}

/* Stagger animation for cards using admin delay */
#roseo-form-wrapper .roseo-card-grid .roseo-selection-card:nth-child(1) { animation-delay: calc(var(--mfm-animation-delay, 50ms) * 1) !important; }
#roseo-form-wrapper .roseo-card-grid .roseo-selection-card:nth-child(2) { animation-delay: calc(var(--mfm-animation-delay, 50ms) * 2) !important; }
#roseo-form-wrapper .roseo-card-grid .roseo-selection-card:nth-child(3) { animation-delay: calc(var(--mfm-animation-delay, 50ms) * 3) !important; }
#roseo-form-wrapper .roseo-card-grid .roseo-selection-card:nth-child(4) { animation-delay: calc(var(--mfm-animation-delay, 50ms) * 4) !important; }
#roseo-form-wrapper .roseo-card-grid .roseo-selection-card:nth-child(5) { animation-delay: calc(var(--mfm-animation-delay, 50ms) * 5) !important; }
#roseo-form-wrapper .roseo-card-grid .roseo-selection-card:nth-child(6) { animation-delay: calc(var(--mfm-animation-delay, 50ms) * 6) !important; }
#roseo-form-wrapper .roseo-card-grid .roseo-selection-card:nth-child(7) { animation-delay: calc(var(--mfm-animation-delay, 50ms) * 7) !important; }

/* Disable all animations when --mfm-animation-enabled is 0 */
@media (prefers-reduced-motion: reduce) {
    #roseo-form-wrapper *,
    #roseo-form-wrapper *::before,
    #roseo-form-wrapper *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
    /* Can be enabled later for dark mode support */
}

/* ============================================
   HOME SCREEN PROFESSIONAL ENHANCEMENTS
   ============================================ */

/* Animated background gradient */
.roseo-home-screen {
    background-size: 200% 200% !important;
    animation: gradientShift 15s ease infinite !important;
}

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

/* Floating particles effect (pseudo-elements) */
.roseo-home-screen::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 60%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.roseo-home-screen .home-hero {
    position: relative !important;
    z-index: 2 !important;
}

/* Enhanced language selector */
.mfm-language-selector {
    position: relative !important;
    z-index: 10 !important;
}

.mfm-lang-btn {
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.mfm-lang-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.mfm-lang-btn.active {
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
}

/* Enhanced hero icon */
.home-hero-icon {
    position: relative !important;
}

.home-hero-icon::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 150% !important;
    height: 150% !important;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%) !important;
    animation: iconGlow 3s ease-in-out infinite !important;
    pointer-events: none !important;
}

@keyframes iconGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Enhanced title with gradient text effect */
.home-title {
    background: linear-gradient(
        180deg, 
        #ffffff 0%, 
        rgba(255, 255, 255, 0.9) 100%
    ) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Enhanced buttons */
.roseo-btn-start,
.roseo-btn-continue {
    position: relative !important;
    overflow: hidden !important;
}

.roseo-btn-start::before,
.roseo-btn-continue::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent
    ) !important;
    transition: left 0.6s ease !important;
}

.roseo-btn-start:hover::before,
.roseo-btn-continue:hover::before {
    left: 100% !important;
}

.roseo-btn-start {
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
}

.roseo-btn-continue {
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
}

/* Progress info glass effect */
.progress-info {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   TAB COMPONENT ENHANCEMENTS
   ============================================ */

#roseo-form-wrapper .roseo-tab,
#roseo-form-wrapper .mfm-tab,
#roseo-form-wrapper [class*="tab-btn"] {
    position: relative !important;
    overflow: hidden !important;
    transition: all var(--transition-default, 0.3s ease) !important;
    border-radius: var(--mfm-tab-radius, 12px) !important;
    padding: var(--mfm-tab-padding, 16px) !important;
}

#roseo-form-wrapper .roseo-tab.active,
#roseo-form-wrapper .mfm-tab.active,
#roseo-form-wrapper [class*="tab-btn"].active {
    background: linear-gradient(
        135deg, 
        var(--mfm-tab-active-bg, rgba(240, 253, 244, 1)) 0%, 
        rgba(220, 252, 231, 0.8) 100%
    ) !important;
    border-color: var(--mfm-tab-active-border, #009239) !important;
    box-shadow: 
        0 4px 12px rgba(0, 146, 57, 0.15),
        inset 0 0 0 1px rgba(0, 146, 57, 0.1) !important;
}

#roseo-form-wrapper .roseo-tab.completed,
#roseo-form-wrapper .mfm-tab.completed {
    background: var(--mfm-tab-completed-bg, #dcfce7) !important;
}

#roseo-form-wrapper .roseo-tab.completed::after,
#roseo-form-wrapper .mfm-tab.completed::after {
    content: '✓' !important;
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 20px !important;
    height: 20px !important;
    background: var(--mfm-secondary, #009239) !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: bold !important;
}

/* ============================================
   MAP COMPONENT ENHANCEMENTS
   ============================================ */

#roseo-form-wrapper .roseo-map-container,
#roseo-form-wrapper [id*="map-container"] {
    border-radius: var(--mfm-map-radius, var(--mfm-radius, 12px)) !important;
    overflow: hidden !important;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    min-height: var(--mfm-map-height, 400px) !important;
}

/* Map controls */
#roseo-form-wrapper .map-controls,
#roseo-form-wrapper .roseo-map-controls {
    background: linear-gradient(
        180deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(248, 250, 252, 0.95) 100%
    ) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: var(--mfm-radius-sm, 8px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   SLIDER COMPONENT ENHANCEMENTS
   ============================================ */

#roseo-form-wrapper input[type="range"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    height: var(--mfm-slider-track-height, 8px) !important;
    border-radius: 4px !important;
    background: linear-gradient(
        90deg, 
        var(--mfm-slider-track-fill, var(--mfm-secondary, #009239)) 0%, 
        var(--mfm-slider-track-bg, var(--mfm-border, #e5e7eb)) 0%
    ) !important;
    outline: none !important;
}

#roseo-form-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: var(--mfm-slider-thumb-size, 24px) !important;
    height: var(--mfm-slider-thumb-size, 24px) !important;
    border-radius: 50% !important;
    background: linear-gradient(
        145deg, 
        var(--mfm-slider-thumb-bg, var(--mfm-secondary, #009239)) 0%, 
        var(--mfm-primary, #015328) 100%
    ) !important;
    border: 3px solid var(--mfm-slider-thumb-border, #ffffff) !important;
    cursor: pointer !important;
    box-shadow: 
        0 2px 8px rgba(0, 146, 57, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
    transition: all var(--transition-default, 0.2s ease) !important;
}

#roseo-form-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1) !important;
    box-shadow: 
        0 4px 12px rgba(0, 146, 57, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
}

/* ============================================
   FILE UPLOAD ENHANCEMENTS
   ============================================ */

#roseo-form-wrapper .file-upload-area,
#roseo-form-wrapper .roseo-upload-zone,
#roseo-form-wrapper [class*="dropzone"] {
    border: 2px dashed var(--mfm-border, #e5e7eb) !important;
    border-radius: var(--mfm-radius, 12px) !important;
    background: linear-gradient(
        180deg, 
        rgba(248, 250, 252, 0.8) 0%, 
        rgba(240, 253, 244, 0.5) 100%
    ) !important;
    transition: all var(--transition-default, 0.3s ease) !important;
}

#roseo-form-wrapper .file-upload-area:hover,
#roseo-form-wrapper .roseo-upload-zone:hover,
#roseo-form-wrapper [class*="dropzone"]:hover {
    border-color: var(--mfm-secondary, #009239) !important;
    background: linear-gradient(
        180deg, 
        rgba(240, 253, 244, 1) 0%, 
        rgba(220, 252, 231, 0.8) 100%
    ) !important;
}

#roseo-form-wrapper .file-upload-area.dragover,
#roseo-form-wrapper .roseo-upload-zone.dragover {
    border-color: var(--mfm-secondary, #009239) !important;
    border-style: solid !important;
    background: rgba(220, 252, 231, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(0, 146, 57, 0.1) !important;
}

/* ============================================
   BADGE AND CHIP ENHANCEMENTS
   ============================================ */

#roseo-form-wrapper .badge,
#roseo-form-wrapper .chip,
#roseo-form-wrapper .tag {
    background: linear-gradient(
        145deg, 
        var(--mfm-accent, #B3C8BB) 0%, 
        rgba(179, 200, 187, 0.8) 100%
    ) !important;
    color: var(--mfm-primary, #015328) !important;
    padding: 4px 12px !important;
    border-radius: var(--mfm-badge-radius, 20px) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

#roseo-form-wrapper .badge.success,
#roseo-form-wrapper .chip.success {
    background: linear-gradient(
        145deg, 
        var(--mfm-badge-completed-bg, #dcfce7) 0%, 
        #bbf7d0 100%
    ) !important;
    color: var(--mfm-badge-completed-text, #166534) !important;
}

#roseo-form-wrapper .badge.pending,
#roseo-form-wrapper .chip.pending {
    background: linear-gradient(
        145deg, 
        var(--mfm-badge-pending-bg, #fef3c7) 0%, 
        #fde68a 100%
    ) !important;
    color: var(--mfm-badge-pending-text, #92400e) !important;
}

#roseo-form-wrapper .badge.error,
#roseo-form-wrapper .chip.error {
    background: linear-gradient(
        145deg, 
        var(--mfm-badge-error-bg, #fee2e2) 0%, 
        #fecaca 100%
    ) !important;
    color: var(--mfm-badge-error-text, #dc2626) !important;
}

/* ============================================
   SMOOTH SCROLL FOR FORM CONTAINER
   ============================================ */

#roseo-form-wrapper #roseo-step-container {
    scroll-behavior: smooth !important;
}

#roseo-form-wrapper #roseo-step-container::-webkit-scrollbar {
    width: 8px !important;
}

#roseo-form-wrapper #roseo-step-container::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 4px !important;
}

#roseo-form-wrapper #roseo-step-container::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg, 
        var(--mfm-accent, #B3C8BB) 0%, 
        var(--mfm-border, #e5e7eb) 100%
    ) !important;
    border-radius: 4px !important;
}

#roseo-form-wrapper #roseo-step-container::-webkit-scrollbar-thumb:hover {
    background: var(--mfm-secondary, #009239) !important;
}

/* ============================================
   DISABLE ANIMATIONS (when admin setting is off)
   ============================================ */

/* Class added by JS when animation_enabled = false */
html.mfm-no-animations #roseo-form-wrapper,
html.mfm-no-animations #roseo-form-wrapper * {
    animation: none !important;
    animation-duration: 0ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0ms !important;
}

/* Also respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    html:not(.mfm-force-animations) #roseo-form-wrapper,
    html:not(.mfm-force-animations) #roseo-form-wrapper * {
        animation: none !important;
        animation-duration: 0ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }
}
