/* ==================== Notion-Style Calculator - Original Layout ==================== */

.calculator-section {
    background: #ffffff;
    padding: 0;
    position: relative;
}

.calculator-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.calculator-card {
    background: #ffffff;
    border: none;
    border-top: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
    border-radius: 0;
    padding: 40px 60px;
    box-shadow: none;
}

/* Header + Illustration - Horizontal Layout */
.calculator-card > .calculator-header,
.calculator-card > .calculator-illustration {
    display: inline-block;
    vertical-align: top;
}

.calculator-header {
    max-width: 55%;
    margin-bottom: 22px;
    text-align: left;
    padding-right: 40px;
}

.calculator-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 12px;
    line-height: 1.2;
    font-family: 'Sebenta', sans-serif;
}

.calculator-header p {
    font-size: 18px;
    color: #656464;
    margin-bottom: 16px;
    line-height: 1.5;
}

.calculator-link {
    color: #0066FF;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.calculator-link:hover {
    opacity: 0.7;
}

/* Illustration - Side by Side */
.calculator-illustration {
    max-width: 45%;
    margin-bottom: 32px;
    margin-top: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calculator-illustration img {
    width: 100%;
    height: auto;
    display: block;
}

/* Form */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
}

/* Tools Section - Very Compact Grid at Top */
.calculator-tools {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px 12px;
    padding: 0 0 20px 0;
    border-bottom: 1px solid #e6e6e6;
}

.tool-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: background-color 0.2s;
    position: relative;
}

.tool-checkbox:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.tool-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1.5px solid #c1c1c1;
    border-radius: 3px;
    cursor: pointer;
    appearance: none;
    background: white;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-top: 1px;
}

.tool-checkbox input[type="checkbox"]:checked {
    background-color: #0066FF;
    border-color: #0066FF;
}

.tool-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 11px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tool-label {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 13px;
    line-height: 1.3;
}

.tool-name {
    color: #111111;
    font-weight: 500;
}

.tool-price {
    color: #888888;
    font-size: 12px;
}

/* Results Section - Integrated at Bottom */
.calculator-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0 0 0;
    will-change: auto;
    transform: none;
}

.result-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-label {
    font-size: 13px;
    color: #656464;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-input {
    width: 100%;
    padding: 14px;
    font-size: 28px;
    font-weight: 700;
    color: #111111;
    border: 2px solid #e6e6e6;
    border-radius: 6px;
    background: #ffffff;
    transition: border-color 0.2s;
    font-family: inherit;
    height: 54px;
    box-sizing: border-box;
    will-change: auto;
}

.result-input:focus {
    outline: none;
    border-color: #0066FF;
}

.result-input[type="number"]::-webkit-inner-spin-button,
.result-input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    height: 40px;
}

.result-output {
    font-size: 28px;
    font-weight: 700;
    padding: 14px;
    background: #ffffff;
    border-radius: 6px;
    text-align: left;
    border: 2px solid #e6e6e6;
    font-family: inherit;
    display: flex;
    align-items: center;
    height: 54px;
    box-sizing: border-box;
    will-change: auto;
    transform: none;
}

.monthly-savings .result-output {
    color: #0066FF;
    background: #ffffff;
    border-color: #e6e6e6;
}

.annual-savings .result-output {
    color: #00C853;
    background: #ffffff;
    border-color: #e6e6e6;
}

/* Animation removed - no shaking */

/* Responsive Design */
@media (max-width: 1024px) {
    .calculator-tools {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .calculator-section {
        padding: 0;
    }
    
    .calculator-card {
        padding: 32px 20px;
    }
    
    .calculator-header {
        max-width: 100%;
        display: block;
        padding-right: 0;
        margin-bottom: 0;
    }
    
    .calculator-header h2 {
        font-size: 32px;
    }
    
    .calculator-header p {
        font-size: 16px;
    }
    
    .calculator-illustration {
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .calculator-illustration img {
        width: 100%;
    }
    
    .calculator-form {
        padding: 16px;
    }
    
    .calculator-tools {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px 10px;
        padding: 0 0 16px 0;
    }
    
    .calculator-results {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 0 0 0;
    }
    
    .result-input,
    .result-output {
        font-size: 22px;
        padding: 10px 12px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .calculator-section {
        padding: 0;
    }
    
    .calculator-card {
        padding: 24px 16px;
        border-radius: 0;
    }
    
    .calculator-header h2 {
        font-size: 26px;
    }
    
    .calculator-header p {
        font-size: 15px;
    }
    
    .calculator-form {
        padding: 12px;
    }
    
    .calculator-tools {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px 8px;
        padding: 0 0 12px 0;
    }
    
    .tool-checkbox {
        padding: 6px;
    }
    
    .tool-label {
        font-size: 12px;
    }
    
    .tool-price {
        font-size: 11px;
    }
    
    .calculator-results {
        padding: 12px 0 0 0;
        gap: 12px;
    }
    
    .result-input,
    .result-output {
        font-size: 20px;
        padding: 10px 12px;
        height: 42px;
    }
    
    .result-label {
        font-size: 11px;
    }
}

/* Print styles */
@media print {
    .calculator-section {
        box-shadow: none;
    }
    
    .calculator-card {
        border: 2px solid #000;
    }
}
