/* Calculator Box Section */
.calculator-box-section {
    /* Width and spacing handled by width-consistency-fix.css */
    /* max-width, margin, and padding removed to prevent conflicts */
}

.calculator-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px; /* Match section-card border radius */
    padding: 28px 48px; /* Reduced vertical padding by 30% (40px -> 28px) */
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08); /* Match section-card shadow */
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px; /* Increased gap to match increased padding */
    align-items: center;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .calculator-box {
    background: rgba(15, 15, 26, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .calculator-box-title {
    color: var(--color-text-primary);
}

[data-theme="dark"] .calculator-box-description {
    color: var(--color-text-secondary);
}

.calculator-box::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(102, 102, 255, 0.05) 0%, rgba(69, 65, 241, 0.05) 100%);
    border-radius: 50%;
    z-index: 0;
}

.calculator-box-content {
    position: relative;
    z-index: 1;
}

.calculator-box-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calculator-box-title {
    font-size: var(--font-heading-1);
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 12px; /* Increased from 3px */
    line-height: var(--line-height-heading);
    letter-spacing: var(--letter-spacing-tight);
}

.calculator-box-title .text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calculator-box-description {
    font-size: var(--font-body-base);
    color: var(--color-text-secondary);
    margin-bottom: 24px; /* Increased from 6px */
    line-height: var(--line-height-relaxed);
}

.calculator-box-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px; /* Increased padding for better proportion */
    background: linear-gradient(135deg, #6666FF 0%, #4541F1 100%);
    color: white;
    border: none;
    border-radius: 16px; /* Slightly larger radius */
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 102, 255, 0.3);
}

.calculator-box-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 102, 255, 0.4);
}

.calculator-svg {
    width: 100%;
    max-width: 240px;
    height: auto;
}

/* Dark mode SVG styling */
[data-theme="dark"] .calculator-svg rect[fill="white"] {
    fill: rgba(30, 30, 45, 0.8);
}

[data-theme="dark"] .calculator-svg rect[stroke="url(#gradient)"] {
    stroke: url(#gradient);
}

[data-theme="dark"] .calculator-svg text[fill="white"] {
    fill: white;
}

[data-theme="dark"] .calculator-svg circle[opacity],
[data-theme="dark"] .calculator-svg rect[opacity] {
    opacity: 0.15;
}

/* Decorative circles in dark mode */
[data-theme="dark"] .calculator-svg circle[cx="350"],
[data-theme="dark"] .calculator-svg circle[cx="50"] {
    opacity: 0.03;
}

/* Responsive Design */
@media (max-width: 968px) {
    /* Width and margin handled by width-consistency-fix.css */
    /* .calculator-box-section styles removed to prevent conflicts */
    
    .calculator-box {
        grid-template-columns: 1fr;
        gap: 32px; /* Adjusted gap for single column */
        padding: 28px 32px; /* Reduced vertical padding by 30% (40px -> 28px) */
    }

    .calculator-box-title {
        margin-bottom: 10px;
    }

    .calculator-box-description {
        margin-bottom: 20px;
    }

    .calculator-box-visual {
        display: none;
    }

    .calculator-box-button {
        width: 100%;
        justify-content: center;
        padding: 12px 28px;
    }
}

@media (max-width: 768px) {
    /* Width and margin handled by width-consistency-fix.css */
    /* .calculator-box-section styles removed to prevent conflicts */
    
    .calculator-box {
        padding: 28px 24px; /* Reduced vertical padding by 30% (40px -> 28px) */
        border-radius: var(--radius-xl);
    }
}

@media (max-width: 640px) {
    /* Width and margin handled by width-consistency-fix.css */
    /* .calculator-box-section styles removed to prevent conflicts */
    
    .calculator-box {
        padding: 22px 16px; /* Reduced vertical padding by 30% (32px -> 22px) */
        border-radius: var(--radius-lg);
    }

    .calculator-box-description {
        margin-bottom: 16px;
    }
}
