/* Calculator Container Styles */
.calculator-container {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    animation: slideIn 0.5s ease-out;
}

.calculator-title {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 24px;
}

.subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 14px;
}

/* Form Input Styles */
.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 16px;
    transition: all 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Button Styles */
button {
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

button:active {
    transform: translateY(0);
}

/* Results Section */
.results {
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease-out;
}

.results.show {
    opacity: 1;
    max-height: 1000px;
}

.breakdown {
    margin-bottom: 20px;
}

.breakdown-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 16px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid var(--primary-color);
}

.result-label {
    color: var(--text-light);
    font-size: 15px;
}

.result-value {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

.result-value.positive {
    color: var(--success-color);
    font-size: 20px;
}

.result-value.negative {
    color: var(--danger-color);
}

/* Info Box */
.info-box {
    background: var(--info-bg);
    padding: 15px;
    border-radius: var(--border-radius-md);
    margin-top: 20px;
    font-size: 13px;
    color: var(--info-text);
    line-height: 1.6;
}

/* Sidebar Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ad-placeholder {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    text-align: center;
}

.affiliate-box {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
}

.affiliate-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.affiliate-link {
    display: block;
    padding: 12px 20px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    text-align: center;
    margin-bottom: 10px;
    transition: transform 0.2s;
    font-weight: 600;
    font-size: 14px;
}

.affiliate-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.cta-box {
    background: var(--gradient-success);
    color: white;
    padding: 25px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.cta-box h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.cta-box p {
    margin-bottom: 15px;
    opacity: 0.95;
    font-size: 14px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #059669;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: scale(1.05);
}

/* Responsive Adjustments for Calculators */
@media (max-width: 768px) {
    .calculator-container {
        padding: 25px;
    }

    .calculator-title {
        font-size: 20px;
    }
}
