/*
Copyright (c) 2025 Henrik Hedberg. All rights reserved.
This stylesheet contains proprietary design elements and calculations for Finnish equipment financing.
Unauthorized copying or distribution is prohibited.
*/

body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #f9f9f9;
    color: #333;
}

h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #005eb8;
}

h2 {
    color: #005eb8;
    border-bottom: 2px solid #005eb8;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

.subtitle {
    font-size: 0.8em;
    font-weight: normal;
    color: #666;
    margin-left: 1rem;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.comparison-selector {
    background-color: #e3f2fd;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #005eb8;
}

.comparison-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.comparison-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 60px;
    white-space: nowrap;
}

.comparison-option:hover {
    border-color: #005eb8;
    background-color: #f8f9fa;
}

.comparison-option.selected {
    border-color: #005eb8;
    background-color: #e3f2fd;
}

.comparison-option input[type="radio"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.dynamic-sections {
    display: none;
}

.dynamic-sections.active {
    display: block;
}

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

.form-row.compact {
    display: flex;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    margin-bottom: 1rem;
}

input[type="text"], input[type="number"], select {
    padding: 0.75rem;
    font-size: 1rem;
    margin-top: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.price-input {
    max-width: 200px;
}

.vat-option-group {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.radio-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    gap: 0.5rem;
}

.radio-label input[type="radio"] {
    margin: 0;
    width: auto;
}

.enhanced-depreciation-group {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
    padding: 1rem;
    background-color: #e8f5e8;
    border-radius: 4px;
    border: 1px solid #4caf50;
}

.calculate-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background-color: #005eb8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
}

.calculate-btn:hover {
    background-color: #004a94;
}

.results {
    margin-top: 2rem;
    display: none;
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.result-section {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.result-section h3 {
    margin-top: 0;
    color: #005eb8;
}

.result-line {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
    padding: 0.25rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95em;
    line-height: 1.3;
}

.result-label {
    font-weight: normal;
    color: #555;
}

.result-value {
    font-weight: bold;
    color: #000;
}

.highlight {
    background-color: #e3f2fd;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 1.1rem;
}

.highlight .result-value {
    font-size: 1.2rem;
}

.info-text {
    background-color: #e8f4f8;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #0066cc;
    margin-top: 1rem;
}

.enhanced-info-text {
    background-color: #e8f5e8;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #2e7d32;
    margin-top: 1rem;
    border: 1px solid #4caf50;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 4px;
}

.summary-row .result-label {
    text-align: left;
}

.summary-row .result-value {
    text-align: right;
}

@media (max-width: 700px) {
    .comparison-container {
        grid-template-columns: 1fr;
    }
    
    .comparison-options {
        grid-template-columns: 1fr;
    }
}