body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f6f8;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 800px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

input[type="text"]:focus, input[type="number"]:focus {
    border-color: #007bff;
    outline: none;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #a0cfff;
    cursor: not-allowed;
}

#loading {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: #555;
}

#error-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
    border-radius: 4px;
}

#results-container {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.hidden {
    display: none;
}

.result-section {
    margin-bottom: 25px;
}

.result-section h2 {
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #0056b3;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item strong {
    color: #333;
}

.result-item span {
    color: #555;
    word-break: break-all;
    text-align: right;
}

.estimation-result {
    background-color: #e7f3ff;
    border: 1px solid #b3d7ff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.estimation-result p {
    margin: 0;
    font-size: 1.1em;
}

.estimation-result .cost {
    font-size: 1.5em;
    font-weight: bold;
    color: #004a99;
    margin-top: 10px;
}

.disclaimer {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    margin-top: 15px;
    padding: 10px;
    background: #fafafa;
    border-radius: 4px;
}

.tooltip-trigger {
    display: inline-block;
    margin-left: 5px;
    width: 16px;
    height: 16px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    cursor: help;
    position: relative;
    font-size: 12px;
}

.tooltip-trigger:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    z-index: 10;
    width: 250px;
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
}

.explanation {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 5px;
}

.explanation h3 {
    color: #333;
    margin-top: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.explanation ul, .explanation ol {
    padding-left: 20px;
}

.explanation li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.explanation code {
    background-color: #eef;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
}
