body, div, input, li, p, span, td, textarea {
    font-family: arial, helvetica, sans-serif;
    font-size: 16px;
}

.calculator-container {
    background-color: white;
    width: 90%;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 0 5px #ccc;
}

.calculator-container h3 {
    color: #084288;
    font-size: 14px;
    margin: 15px 0 10px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.input-container label {
    width: 55%;
    text-align: right;
    margin-right: 5%;
    font-size: 14px;
}

.input-container input, .input-container select {
    width: 30%;
    padding: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    border: 1px solid #cfd1d8;
    border-radius: 3px;
    outline: none;
}

.input-container input::placeholder {
    font-size: 0.8em;
    color: #999;
}

#button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#button-container button {
    padding: 10px 20px;
    border: 0;
    color: #fff;
    font-size: 16px;
    background: #084288;
    border-radius: 3px;
    margin: 0 10px;
    cursor: pointer;
}

#button-container button:hover {
    background-color: #434c6d;
}

#result {
    text-align: left;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    display: none;
}

#result.show {
    display: block;
}

#result h3 {
    color: #084288;
    margin-top: 0;
    font-size: 16px;
    margin-bottom: 15px;
}

#result .recommended-price {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #084288, #17a2b8);
    color: white;
    border-radius: 10px;
    margin-bottom: 20px;
}

#result .recommended-price .label {
    font-size: 14px;
    opacity: 0.9;
}

#result .recommended-price .price {
    font-size: 42px;
    font-weight: bold;
    margin: 10px 0;
}

#result .recommended-price .subtext {
    font-size: 13px;
    opacity: 0.8;
}

#result .strategy-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

#result .strategy-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border-top: 3px solid #ccc;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#result .strategy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#result .strategy-card.cost-plus {
    border-top-color: #28a745;
}

#result .strategy-card.value-based {
    border-top-color: #6f42c1;
}

#result .strategy-card.competitive {
    border-top-color: #fd7e14;
}

#result .strategy-card.recommended {
    box-shadow: 0 0 0 2px #084288;
}

#result .strategy-card .strategy-name {
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#result .strategy-card .strategy-price {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

#result .strategy-card .strategy-margin {
    font-size: 12px;
    color: #28a745;
    margin-top: 5px;
}

#result .price-range-visual {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#result .price-range-visual .title {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
}

#result .range-bar {
    position: relative;
    height: 40px;
    background: linear-gradient(to right, #dc3545, #ffc107, #28a745);
    border-radius: 20px;
    margin: 20px 0;
}

#result .range-marker {
    position: absolute;
    top: -8px;
    transform: translateX(-50%);
    text-align: center;
}

#result .range-marker .marker-dot {
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid #084288;
    border-radius: 50%;
    margin: 0 auto;
}

#result .range-marker .marker-label {
    font-size: 10px;
    color: #666;
    margin-top: 45px;
    white-space: nowrap;
}

#result .range-marker .marker-price {
    font-size: 11px;
    font-weight: bold;
    color: #333;
}

#result .range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
}

#result .elasticity-section {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

#result .elasticity-title {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
}

#result .scenario-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    font-size: 12px;
}

#result .scenario-grid .header {
    font-weight: bold;
    color: #666;
    padding: 5px;
    background: #f0f0f0;
    border-radius: 3px;
    text-align: center;
}

#result .scenario-grid .cell {
    padding: 8px 5px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

#result .scenario-grid .cell.highlight {
    background: #e8f5e9;
    font-weight: bold;
}

#result .scenario-grid .profit {
    color: #28a745;
}

#result .scenario-grid .loss {
    color: #dc3545;
}

#result .psychology-tips {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

#result .psychology-tips .tip-title {
    font-weight: bold;
    color: #856404;
    margin-bottom: 10px;
}

#result .psychology-tips ul {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #856404;
}

#result .psychology-tips li {
    margin-bottom: 5px;
}

.help-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    cursor: help;
    color: #084288;
    font-size: 14px;
    position: relative;
}

.help-icon:hover .disclaimer {
    display: block;
}

.disclaimer {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 15px;
    width: 300px;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    top: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 13px;
}

.disclaimer p {
    margin: 5px 0;
}

@media (max-width: 600px) {
    #result .strategy-cards {
        grid-template-columns: 1fr;
    }

    #result .scenario-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #result .scenario-grid .header:nth-child(n+3),
    #result .scenario-grid .cell:nth-child(4n+3),
    #result .scenario-grid .cell:nth-child(4n+4) {
        display: none;
    }
}
