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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.calculator-container {
    max-width: 540px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.calculator-header {
    background: #2c3e50;
    color: #fff;
    padding: 28px 24px;
    text-align: center;
}

.calculator-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.calculator-header p {
    font-size: 0.95rem;
    opacity: 0.85;
}

.quote-form {
    padding: 24px;
}

.form-section {
    margin-bottom: 22px;
}

.form-section > label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #444;
}

.form-section select,
.form-section input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s;
}

.form-section select:focus,
.form-section input[type="number"]:focus {
    outline: none;
    border-color: #2c3e50;
}

.input-hint {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.radio-option:hover {
    border-color: #2c3e50;
}

.radio-option input[type="radio"] {
    margin-top: 3px;
}

.radio-option input[type="radio"]:checked + .radio-label strong {
    color: #2c3e50;
}

.radio-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.radio-label strong {
    font-size: 0.95rem;
}

.radio-label small {
    font-size: 0.8rem;
    color: #666;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

.checkbox-option:hover {
    background-color: #f9f9f9;
}

.checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.calculate-btn {
    width: 100%;
    padding: 14px;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.calculate-btn:hover {
    background: #1a252f;
}

.quote-result {
    padding: 24px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.quote-result.hidden {
    display: none;
}

.quote-result h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: #2c3e50;
}

.quote-breakdown {
    background: #fff;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

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

.discount-row {
    color: #27ae60;
}

.discount-row.hidden {
    display: none;
}

.quote-total {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    background: #2c3e50;
    color: #fff;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
}

.quote-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

.recalculate-btn {
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #2c3e50;
    border: 2px solid #2c3e50;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 16px;
    transition: background-color 0.2s, color 0.2s;
}

.recalculate-btn:hover {
    background: #2c3e50;
    color: #fff;
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .calculator-header {
        padding: 20px 16px;
    }
    
    .calculator-header h1 {
        font-size: 1.3rem;
    }
    
    .quote-form {
        padding: 16px;
    }
    
    .quote-result {
        padding: 16px;
    }
}