.arbeidstid-kalkulator * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.arbeidstid-kalkulator {
    font-family: 'Arial', sans-serif;
    background: #ffffff;
    color: #000000;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.arbeidstid-kalkulator .form-section {
    background: #ffffff;
    padding: 30px 0;
}

.arbeidstid-kalkulator .form-group {
    margin-bottom: 25px;
}

.arbeidstid-kalkulator label {
    display: block;
    margin-bottom: 8px;
    color: #000000;
    font-weight: 500;
    font-size: 1.05em;
    line-height: 1.4;
}

.arbeidstid-kalkulator .slider-container {
    position: relative;
    margin-bottom: 10px;
}

.arbeidstid-kalkulator .slider-value {
    position: absolute;
    right: 0;
    top: -35px;
    background: #c8a868;
    color: #ffffff;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 0.9em;
    z-index: 10;
}

.arbeidstid-kalkulator input[type="range"] {
    width: 100%;
    height: 8px;
    background: #c8a868;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    border: none;
}

.arbeidstid-kalkulator input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #000000;
    cursor: pointer;
    border-radius: 0;
}

.arbeidstid-kalkulator input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #000000;
    cursor: pointer;
    border: none;
    border-radius: 0;
}

.arbeidstid-kalkulator input[type="range"]::-webkit-slider-track {
    width: 100%;
    height: 8px;
    background: #c8a868;
    border-radius: 0;
}

.arbeidstid-kalkulator input[type="range"]::-moz-range-track {
    width: 100%;
    height: 8px;
    background: #c8a868;
    border: none;
    border-radius: 0;
}

.arbeidstid-kalkulator .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.arbeidstid-kalkulator .results {
    background: #000000;
    color: #c8a868;
    padding: 30px;
    margin-top: 30px;
}

.arbeidstid-kalkulator .results h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.3em;
    color: #c8a868;
    font-weight: 400;
    line-height: 1.4;
}

.arbeidstid-kalkulator .result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #c8a868;
    flex-wrap: wrap;
}

.arbeidstid-kalkulator .result-item:last-child {
    border-bottom: 2px solid #c8a868;
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 15px;
    padding-top: 20px;
    color: #c8a868;
}

.arbeidstid-kalkulator .result-label {
    font-weight: 400;
    color: #c8a868 !important;
    flex: 1;
    min-width: 200px;
}

.arbeidstid-kalkulator .result-value {
    font-weight: 600;
    font-size: 1.05em;
    color: #c8a868 !important;
    text-align: right;
}

.arbeidstid-kalkulator .result-item:last-child .result-value {
    color: #c8a868;
}

/* Tablet styles */
@media (max-width: 768px) {
    .arbeidstid-kalkulator .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .arbeidstid-kalkulator .form-section {
        padding: 20px 0;
    }

    .arbeidstid-kalkulator .results {
        padding: 25px 20px;
    }

    .arbeidstid-kalkulator .results h3 {
        font-size: 1.2em;
        margin-bottom: 20px;
    }

    .arbeidstid-kalkulator label {
        font-size: 1em;
    }

    .arbeidstid-kalkulator .slider-value {
        font-size: 0.85em;
        padding: 5px 10px;
        top: -32px;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .arbeidstid-kalkulator {
        padding: 15px;
    }

    .arbeidstid-kalkulator .form-section {
        padding: 15px 0;
    }

    .arbeidstid-kalkulator .form-group {
        margin-bottom: 20px;
    }

    .arbeidstid-kalkulator .results {
        padding: 20px 15px;
        margin-top: 20px;
    }

    .arbeidstid-kalkulator .results h3 {
        font-size: 1.1em;
        margin-bottom: 18px;
    }

    .arbeidstid-kalkulator .result-item {
        margin-bottom: 15px;
        padding: 10px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .arbeidstid-kalkulator .result-value {
        text-align: left;
        font-size: 1.1em;
    }

    .arbeidstid-kalkulator .result-item:last-child {
        font-size: 1.15em;
        margin-top: 12px;
        padding-top: 15px;
    }

    .arbeidstid-kalkulator .result-label {
        min-width: auto;
        font-size: 0.95em;
    }

    .arbeidstid-kalkulator label {
        font-size: 0.95em;
    }

    .arbeidstid-kalkulator .slider-value {
        position: static;
        display: inline-block;
        margin-bottom: 8px;
        font-size: 0.8em;
        padding: 4px 8px;
    }

    .arbeidstid-kalkulator input[type="range"]::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }

    .arbeidstid-kalkulator input[type="range"]::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }

    .arbeidstid-kalkulator input[type="range"] {
        height: 10px;
    }
}

/* Extra small mobile devices */
@media (max-width: 320px) {
    .arbeidstid-kalkulator {
        padding: 10px;
    }

    .arbeidstid-kalkulator .results {
        padding: 15px 10px;
    }

    .arbeidstid-kalkulator .grid {
        gap: 15px;
    }
}
