.intro-energy-lister-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.forbrug-selector {
    display: -webkit-inline-box;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
}

.forbrug-selector label {
    font-weight: bold;
    margin-right: 10px;
}

.forbrug-selector select {
    padding: 8px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    min-width: 200px;
}

.intro-energy-plans h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Desktop grid layout */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    position: relative;
}

.plan-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: static;
    transform: none;
    width: auto;
    left: auto;
    top: auto;
    margin: 0;
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.plan-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.company-logo {
    max-width: 100px;
    max-height: 50px;
    margin-bottom: 10px;
    border-radius: 0px !important;
    object-fit: contain;
}

.plan-header h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
    text-align: center;
}

.plan-details {
    margin-bottom: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.detail-label {
    font-weight: bold;
    color: #555;
}

.detail-value {
    color: #333;
}

.price-highlight {
    text-align: center;
    margin: 10px 0;
}

.estimated-price {
    font-size: 20px;
    color: #007bff;
}

.monthly-cost {
    font-size: 16px;
    color: #666;
}

.plan-footer {
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1F5135;
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.cta-button:hover {
    background-color: #DCEDD7;
    color: #000 !important;
}

/* Navigation buttons - hidden by default */
.slider-prev, .slider-next {
    position: absolute;
    top: -60px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    z-index: 100;
    border-radius: 5px;
    transition: all 0.3s ease;
    user-select: none;
    display: none;
}

.slider-prev {
    left: 50%;
    transform: translateX(-60px);
}

.slider-next {
    right: 50%;
    transform: translateX(60px);
}

.slider-prev:hover, .slider-next:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.05);
}

.slider-prev:disabled, .slider-next:disabled,
.slider-prev.disabled, .slider-next.disabled {
    background-color: rgba(0, 0, 0, 0.3);
    cursor: not-allowed;
    opacity: 0.5;
}

.slider-prev:disabled:hover, .slider-next:disabled:hover,
.slider-prev.disabled:hover, .slider-next.disabled:hover {
    transform: translateY(-50%) scale(1);
    background-color: rgba(0, 0, 0, 0.3);
}

.intro-energy-lister-footnote {
    text-align: center;
    font-style: italic;
    padding-top: 20px;
    font-size: 14px;
    color: #666;
}

.uvildig-data {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

/* Tablet styles */
@media (max-width: 1024px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .plan-card {
        padding: 12px;
    }
}

/* Mobile styles - slider layout */
@media (max-width: 768px) {
    .intro-energy-lister-wrapper {
        padding: 15px;
    }
    
    .forbrug-selector {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .forbrug-selector label {
        margin-right: 0;
        margin-bottom: 5px;
        text-align: center;
    }
    
    .forbrug-selector select {
        width: 100%;
        max-width: none;
        margin-bottom: 0;
    }
    
    /* Mobile slider layout */
    .plans-grid {
        display: block;
        overflow: hidden;
        position: relative;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
        min-height: 400px;
    }
    
    .plan-card {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        opacity: 1;
        visibility: visible;
        min-height: 350px;
    }
    
    /* First card should be visible */
    .plan-card[data-index="0"] {
        transform: translateX(0%);
    }
    
    /* Show navigation buttons on mobile */
    .slider-prev, .slider-next {
        display: block !important;
        font-size: 24px;
        padding: 15px 10px;
        width: 50px;
        height: 60px;
    }
    
    .slider-prev {
        left: -25px;
        z-index: 101;
    }
    
    .slider-next {
        right: -25px;
        z-index: 101;
    }
    
    .intro-energy-plans h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .plan-header h4 {
        font-size: 16px;
    }
    
    .estimated-price {
        font-size: 18px;
    }
    
    .monthly-cost {
        font-size: 14px;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .intro-energy-lister-wrapper {
        padding: 10px;
    }
    
    .intro-energy-plans h3 {
        margin-bottom: 60px;
    }
    
    .plans-grid {
        padding: 0;
        min-height: 380px;
    }
    
    .plan-card {
        left: 0;
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }
    
    .slider-prev, .slider-next {
        font-size: 18px;
        padding: 6px 10px;
        top: -50px;
    }
    
    .slider-prev {
        left: 50%;
        transform: translateX(-55px);
    }
    
    .slider-next {
        right: 50%;
        transform: translateX(55px);
    }
    
    .company-logo {
        max-width: 80px;
        max-height: 40px;
    }
    
    .plan-header h4 {
        font-size: 14px;
    }
    
    .estimated-price {
        font-size: 16px;
    }
    
    .detail-row {
        margin-bottom: 3px;
    }
    
    .detail-label, .detail-value {
        font-size: 13px;
    }
    
    .cta-button {
        padding: 8px 16px;
        font-size: 14px;
    }
}