/*
========================================
 PaylessWatts Solar Form (React)
 Electric Bill Step Styles
========================================
*/

/**
 * PaylessWatts React Form - Electric Bill Step Styles
 * 
 * Styles for the electric cost step with winter and summer bill sliders
 */

/* Slider Containers */
.winter-bill-enhanced-container,
.summer-bill-enhanced-container {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

/* Create a wrapper to center both dials */
.winter-bill-enhanced-container,
.summer-bill-enhanced-container {
    margin-bottom: 4rem !important; /* Space for labels */
}

.winter-bill-enhanced-container:hover,
.summer-bill-enhanced-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.winter-bill-enhanced-container {
    border-left: 4px solid #4a7aff;
}

.summer-bill-enhanced-container {
    border-left: 4px solid #ff9f43;
}

/* Slider Icons */
.winter-bill-snowflake-icon,
.summer-bill-sun-icon {
    font-size: 2rem;
    margin-right: 1.5rem;
}

.winter-bill-snowflake-icon {
    color: #4a7aff;
}

.summer-bill-sun-icon {
    color: #ff9f43;
}

/* Ensure icons are visible and properly styled */

/* Slider Container */
.slider-container {
    flex-grow: 1;
}

.slider-container label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #333;
}

/* Slider container is now positioned absolutely in the center */

.slider-value {
    font-weight: 700;
    color: #1a3c6e;
}

/* Slider value is now styled as the center display */

/* Range Slider Styling */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
}

/* Range slider is now invisible but functional overlay */

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #4A7AFF;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: background 0.2s;
}

.range-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #4A7AFF;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    border: none;
    transition: background 0.2s;
}

.range-slider::-webkit-slider-thumb:hover {
    background: #3456cc;
}

.range-slider::-moz-range-thumb:hover {
    background: #3456cc;
}

/* Average Bill Display */
.average-bill {
    background-color: #f0f7ff;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.average-bill p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.average-bill h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #4A7AFF;
    margin: 0;
}

.average-bill-feedback-message {
    font-size: 0.9rem;
    color: #4A7AFF;
    font-style: italic;
}

/* Animation for feedback message */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.average-bill-feedback-message {
    animation: fadeInUp 0.4s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .winter-bill-enhanced-container,
    .summer-bill-enhanced-container {
        flex-direction: column;
        padding: 1.25rem;
    }
    
    .winter-bill-snowflake-icon,
    .summer-bill-sun-icon {
        font-size: 1.75rem;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .average-bill h3 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
  .slider-container label {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .slider-value {
    margin-top: var(--spacing-xs);
    align-self: flex-end;
  }
}

/* ===== CUSTOM DIAL SYSTEM FOR WINTER/SUMMER BILLS ===== */
/* DISABLED - Using new React-based dial system instead */

/* Main container for both bill inputs */
.winter-bill-enhanced-container.DISABLED,
.summer-bill-enhanced-container.DISABLED {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 2rem auto;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none !important;
    padding: 0 !important;
}

/* Create the parent container to hold both dials side by side */
.winter-bill-enhanced-container.DISABLED {
    display: inline-block !important;
    margin-right: 3rem;
}

.summer-bill-enhanced-container.DISABLED {
    display: inline-block !important;
}

/* Hover effects for the dial containers */
.winter-bill-enhanced-container.DISABLED:hover,
.summer-bill-enhanced-container.DISABLED:hover {
    transform: scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.15),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4);
}

/* Winter dial - blue glow */
.winter-bill-enhanced-container.DISABLED {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(74, 154, 255, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.winter-bill-enhanced-container.DISABLED:hover {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(74, 154, 255, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.15),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4);
}

/* Summer dial - orange glow */
.summer-bill-enhanced-container.DISABLED {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 159, 67, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.summer-bill-enhanced-container.DISABLED:hover {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 159, 67, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.15),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4);
}

/* Progress ring around the dial */
.winter-bill-enhanced-container.DISABLED::before,
.summer-bill-enhanced-container.DISABLED::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

/* Winter progress ring - blue */
.winter-bill-enhanced-container.DISABLED::before {
    background: conic-gradient(
        from 135deg,
        #4a9eff 0deg,
        #2d7dd2 calc(var(--winter-progress, 25) * 2.7deg),
        transparent calc(var(--winter-progress, 25) * 2.7deg)
    );
}

/* Summer progress ring - orange */
.summer-bill-enhanced-container.DISABLED::before {
    background: conic-gradient(
        from 135deg,
        #ff9f43 0deg,
        #e67e22 calc(var(--summer-progress, 25) * 2.7deg),
        transparent calc(var(--summer-progress, 25) * 2.7deg)
    );
}

/* DISABLED - Transform the FontAwesome icons into center displays */
.winter-bill-snowflake-icon.DISABLED,
.summer-bill-sun-icon.DISABLED {
    font-size: 3rem !important;
    margin: 0 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 3;
    position: relative;
    margin-bottom: 1rem !important;
}

/* Winter icon - blue glow */
.winter-bill-snowflake-icon.DISABLED {
    color: #4a9eff !important;
    filter: drop-shadow(0 0 10px rgba(74, 154, 255, 0.6));
}

/* Summer icon - orange glow */
.summer-bill-sun-icon.DISABLED {
    color: #ff9f43 !important;
    filter: drop-shadow(0 0 10px rgba(255, 159, 67, 0.6));
}

/* DISABLED - OLD DIAL SYSTEM - REPLACED BY REACT DIAL SYSTEM
   The following styles are disabled to prevent conflicts with the new React-based dial system
   that uses .dual-dial-container and .dial-wrapper classes instead.
*/

/*
Transform the slider value display into the center value
.slider-value {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    z-index: 3 !important;
    position: relative !important;
    margin: 0 !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
}*/

/*
Add "monthly" text below the value
.slider-value::after {
    content: 'monthly';
    display: block;
    font-size: 0.9rem;
    color: #a0a0b0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
    text-shadow: none;
}

Add labels below the dials
.winter-bill-enhanced-container::after {
    content: 'Winter Bill Avg.';
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.25rem;
    font-weight: 700;
    color: #4a9eff;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    text-align: center;
    white-space: nowrap;
    z-index: 2;
}

.summer-bill-enhanced-container::after {
    content: 'Summer Bill Avg.';
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ff9f43;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    text-align: center;
    white-space: nowrap;
    z-index: 2;
}

Hide the original slider containers and labels
.slider-container {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 3 !important;
    width: auto !important;
    flex-grow: unset !important;
}

.slider-container label {
    display: none !important;
}

Hide the actual range input but keep it functional
.range-slider {
    opacity: 0 !important;
    position: absolute !important;
    width: 250px !important;
    height: 250px !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 4 !important;
    cursor: pointer !important;
    border-radius: 50% !important;
}
*/

/*
Responsive Design for Dial System - DISABLED
@media (max-width: 768px) {
    .winter-bill-enhanced-container,
    .summer-bill-enhanced-container {
        width: 200px;
        height: 200px;
        margin: 1.5rem auto;
        display: block !important;
        margin-right: auto !important;
    }
    
    .winter-bill-enhanced-container::before,
    .summer-bill-enhanced-container::before {
        width: 180px;
        height: 180px;
        top: 10px;
        left: 10px;
    }
    
    .winter-bill-snowflake-icon,
    .summer-bill-sun-icon {
        font-size: 2.5rem !important;
    }
    
    .slider-value {
        font-size: 2rem !important;
    }
    
    .range-slider {
        width: 200px !important;
        height: 200px !important;
    }
    
    .winter-bill-enhanced-container::after,
    .summer-bill-enhanced-container::after {
        bottom: -2.5rem;
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .winter-bill-enhanced-container,
    .summer-bill-enhanced-container {
        width: 180px;
        height: 180px;
        margin: 1rem auto;
    }
    
    .winter-bill-enhanced-container::before,
    .summer-bill-enhanced-container::before {
        width: 160px;
        height: 160px;
        top: 10px;
        left: 10px;
    }
    
    .winter-bill-snowflake-icon,
    .summer-bill-sun-icon {
        font-size: 2rem !important;
    }
    
    .slider-value {
        font-size: 1.75rem !important;
    }
    
    .range-slider {
        width: 180px !important;
        height: 180px !important;
    }
    
    .winter-bill-enhanced-container::after,
    .summer-bill-enhanced-container::after {
        bottom: -2rem;
        font-size: 1rem;
    }
}
*/

/* ===== DUAL DIAL CONTAINER - BASIC STRUCTURE ===== */

/* Basic dual dial container layout */
.dual-dial-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    margin: 2rem 0 !important;
    position: relative !important;
    flex-wrap: nowrap !important;
    min-height: 200px !important;
    width: 100% !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Basic dial wrapper structure */
.dial-wrapper {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex: 0 0 auto !important;
    min-width: 140px !important;
    max-width: 160px !important;
}

/* Basic dial container */
.dial-container {
    position: relative !important;
    width: 140px !important;
    height: 140px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 3px solid #4A7AFF !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 1 !important;
}

/* Hover effects for dial container */
.dial-container:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 6px 16px rgba(74, 122, 255, 0.3) !important;
    border-color: #6c5ce7 !important;
}

/* Active state for dial container */
.dial-container:active {
    transform: scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(74, 122, 255, 0.4) !important;
}

/* Basic dial progress ring */
.dial-progress {
    position: absolute !important;
    top: -3px !important;
    left: -3px !important;
    width: 146px !important;
    height: 146px !important;
    border-radius: 50% !important;
    background: conic-gradient(
        from 135deg,
        #4A7AFF 0deg,
        #6c5ce7 calc(var(--dial-progress, 25) * 2.7deg),
        transparent calc(var(--dial-progress, 25) * 2.7deg)
    ) !important;
    z-index: 2 !important;
    pointer-events: none !important;
    transition: all 0.3s ease !important;
}

/* Basic dial center */
.dial-center {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 2px solid #4A7AFF !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

/* Basic dial icon */
.dial-icon {
    font-size: 20px !important;
    line-height: 1 !important;
}

/* Basic dial value */
.dial-value {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #4A7AFF !important;
    line-height: 1 !important;
}

/* Basic dial label */
.dial-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-align: center !important;
    margin-top: 0.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Basic average price display */
.average-price-display {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #4A7AFF, #6c5ce7) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 1rem 0.75rem !important;
    min-width: 120px !important;
    max-width: 140px !important;
    box-shadow: 0 4px 12px rgba(74, 122, 255, 0.3) !important;
    margin: 0 0.5rem !important;
    z-index: 1 !important;
}

/* Basic average price */
.average-price {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    margin-bottom: 0.25rem !important;
}

/* Basic average label */
.average-label {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    opacity: 0.9 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Basic average feedback */
.average-feedback {
    font-size: 0.625rem !important;
    font-weight: 500 !important;
    opacity: 0.8 !important;
    text-align: center !important;
    margin-top: 0.5rem !important;
    font-style: italic !important;
}

/* Hide range inputs by default but keep them functional */
.dual-dial-container input[type="range"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 140px !important;
    height: 140px !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 100 !important;
    border-radius: 50% !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    pointer-events: auto !important;
}

/* Responsive design for basic dual dials */
@media (max-width: 768px) {
    .dual-dial-container {
        gap: 0.75rem !important;
        min-height: 160px !important;
        max-width: 500px !important;
    }
    
    .dial-wrapper {
        min-width: 120px !important;
        max-width: 140px !important;
    }
    
    .dial-container {
        width: 120px !important;
        height: 120px !important;
    }
    
    .dial-progress {
        width: 126px !important;
        height: 126px !important;
    }
    
    .dial-center {
        width: 60px !important;
        height: 60px !important;
    }
    
    .dial-icon {
        font-size: 18px !important;
    }
    
    .dial-value {
        font-size: 11px !important;
    }
    
    .average-price-display {
        min-width: 100px !important;
        max-width: 120px !important;
        padding: 0.75rem 0.5rem !important;
    }
    
    .average-price {
        font-size: 1.25rem !important;
    }
    
    .dual-dial-container input[type="range"] {
        width: 120px !important;
        height: 120px !important;
    }
}

@media (max-width: 480px) {
    .dual-dial-container {
        gap: 0.5rem !important;
        min-height: 140px !important;
        max-width: 400px !important;
    }
    
    .dial-wrapper {
        min-width: 100px !important;
        max-width: 120px !important;
    }
    
    .dial-container {
        width: 100px !important;
        height: 100px !important;
    }
    
    .dial-progress {
        width: 106px !important;
        height: 106px !important;
    }
    
    .dial-center {
        width: 50px !important;
        height: 50px !important;
    }
    
    .dial-icon {
        font-size: 16px !important;
    }
    
    .dial-value {
        font-size: 10px !important;
    }
    
    .average-price-display {
        min-width: 80px !important;
        max-width: 100px !important;
        padding: 0.5rem 0.25rem !important;
    }
    
    .average-price {
        font-size: 1rem !important;
    }
    
    .average-label {
        font-size: 0.625rem !important;
    }
    
    .average-feedback {
        font-size: 0.5rem !important;
    }
    
    .dual-dial-container input[type="range"] {
        width: 100px !important;
        height: 100px !important;
    }
}

/* ===== CUSTOM DIAL SYSTEM FOR WINTER/SUMMER BILLS ===== */