.alltrust-calculator-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: #1e293b;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.atc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .atc-grid {
        grid-template-columns: 2fr 3fr;
    }
}

.atc-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.atc-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: #475569;
}

.atc-form-group {
    margin-bottom: 1.5rem;
}

.atc-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.5rem;
}

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

.atc-value-display {
    font-weight: 600;
    color: #2563eb;
}

.atc-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #3b82f6, #2563eb);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.atc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.atc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.atc-results-section {
    position: relative;
    transition: filter 0.3s ease;
}

.atc-results-section.atc-blurred {
    filter: blur(4px);
    pointer-events: none;
}

.atc-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.atc-result-item {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.atc-result-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: block;
}

.atc-result-value {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.atc-result-value.future-value {
    color: #10b981;
}

.atc-result-value.contributions {
    color: #8b5cf6;
}

.atc-result-value.interest {
    color: #3b82f6;
}

.atc-chart-container {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

#atc-chart {
    width: 100%;
    height: 400px;
    display: block;
}

.atc-chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.atc-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.atc-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.atc-legend-color.principal {
    background: #3b82f6;
}

.atc-legend-color.contributions {
    background: #8b5cf6;
}

.atc-legend-color.interest {
    background: #10b981;
}

.atc-email-gate {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 1rem;
    z-index: 10;
    text-align: center;
}

.atc-email-gate-content {
    max-width: 500px;
}

.atc-email-gate-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: #3b82f6;
}

.atc-email-gate h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.atc-email-gate p {
    color: #64748b;
    margin: 0 0 1.5rem 0;
}

.atc-email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.atc-email-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.atc-email-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.atc-consent-wrapper {
    display: flex;
    align-items: start;
    text-align: left;
    gap: 0.75rem;
}

.atc-consent-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.atc-consent-label {
    font-size: 0.875rem;
    color: #64748b;
    flex: 1;
    cursor: pointer;
}

.atc-submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #2563eb;
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 1rem;
}

.atc-submit-btn:hover:not(:disabled) {
    background: #1d4ed8;
}

.atc-submit-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.atc-submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}
