* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    padding: 20px;
    min-height: 100vh;
}

.fee-calculator-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fee-calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.fee-calculator-title {
    font-size: 1.5em;
    margin: 0;
    color: #333;
}

.fee-calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.fee-calculator-field {
    display: flex;
    flex-direction: column;
}

.fee-calculator-label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.fee-calculator-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.fee-calculator-button {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin-bottom: 20px;
    transition: background-color 0.2s;
}

.fee-calculator-button:hover {
    background: #45a049;
}

.fee-calculator-result {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.fee-calculator-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.fee-calculator-row:last-child {
    border-bottom: none;
    font-weight: bold;
}

.fee-calculator-steps {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 20px;
}

.fee-calculator-step {
    margin: 15px 0;
}

.fee-calculator-formula {
    font-family: monospace;
    background: #f1f1f1;
    padding: 12px;
    margin: 8px 0;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

#installContainer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: none;
    text-align: center;
    z-index: 1000;
    max-width: 90%;
    width: auto;
}

#installButton {
    background: white;
    color: #4CAF50;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    margin-top: 8px;
    cursor: pointer;
    font-weight: bold;
}

.close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
}

@media (min-width: 768px) {
    .fee-calculator-container {
        width: 90%;
        max-width: 1200px;
    }
}

@media (min-width: 1200px) {
    .fee-calculator-container {
        width: 80%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .fee-calculator-container {
        padding: 15px;
    }

    .fee-calculator-grid {
        grid-template-columns: 1fr;
    }
}