/* Base Calculator Styles - Minimal to inherit from Webflow */

/* Standalone mode - dark theme like expanso.io */
body {
    background: #0b0b12;
    color: #e7e7ff;
    margin: 0;
    padding: 0;
    font-family: 'Figtree', system-ui, -apple-system, sans-serif;
    min-height: 0 !important;
    height: auto !important;
}

/* Reset for calculator container */
.calculator-wrapper {
    box-sizing: border-box;
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.calculator-wrapper * {
    box-sizing: inherit;
}

/* When embedded in iframe, remove standalone styling */
body.embedded {
    background: transparent;
}

body.embedded .calculator-wrapper {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* Mobile wrapper adjustments */
@media (max-width: 767px) {
    body:not(.webflow-body) .calculator-wrapper {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    body:not(.webflow-body) .calculator-wrapper {
        padding: 0.75rem;
    }
}

/* Typography defaults that can be overridden by Webflow */
.calculator-title {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.calculator-description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Grid system */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 991px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}

/* Card components */
.input-card,
.results-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Mobile card adjustments */
@media (max-width: 767px) {
    .input-card,
    .results-card {
        padding: 1rem;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .input-card,
    .results-card {
        padding: 0.8rem;
        border-radius: 12px;
    }
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    font-family: 'Inter', 'Figtree', system-ui, -apple-system, sans-serif;
    color: #fff;
}

/* Input components */
.input-field-wrapper {
    margin-bottom: 1.2rem;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.input-label {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Chart container */
.chart-container {
    position: relative;
    height: 560px;
    width: 100%;
    margin: 1rem 0;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.7;
}

/* Metrics display */
.metrics-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.metric-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.metric-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.metric-value {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* Benefits section */
.benefits-section {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefits-title {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.benefits-list {
    list-style: none;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
    padding: 0;
}

.benefits-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.25rem;
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}