/* --- CALCULATOR SECTION (COMPACT STYLE) --- */
.calculator-section {
    padding-bottom: 0;
}

.calc-wrapper {
    /* MATCHING FORM STYLE BUT SUBTLE */
    background: rgba(15, 23, 42, 0.6);
    /* Slightly more transparent */
    /* border: 2px solid var(--border-gold);  Replaced by gradient mask below */
    border: none;
    /* Subtle border removed */
    border-radius: 16px;
    padding: 20px 25px;
    /* Reduced padding */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    max-width: 700px;
    /* Limit width to keep it compact */
    margin: 0 auto;
    /* Center it */
}

.calc-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Subtle inner glow */
.calc-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3), transparent);
}

/* Section Header override for Calculator */
.calc-section .section-header {
    margin-bottom: 20px;
}

.calc-section .section-header h2 {
    font-size: 1.5rem;
    /* Smaller title */
}

/* Info Box */
.calc-info-box {
    background: rgba(56, 189, 248, 0.05);
    border-left: 2px solid var(--primary);
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 0.75rem;
    color: #cbd5e1;
    border-radius: 0 4px 4px 0;
}

/* Slider Section */
.slider-container {
    margin-bottom: 20px;
    padding: 0 5px;
}

.range-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #94a3b8;
}

.range-value {
    color: var(--primary);
    font-size: 1.1rem;
    /* Smaller */
    font-weight: 700;
    background: rgba(56, 189, 248, 0.08);
    /* Fainter bg */
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-gold-subtle);
}

/* --- SLIDER STYLING --- */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

/* Track */
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    /* Thinner track */
    cursor: pointer;
    background: #1e293b;
    border-radius: 2px;
}

/* Thumb */
input[type=range]::-webkit-slider-thumb {
    height: 18px;
    /* Smaller thumb */
    width: 18px;
    border-radius: 50%;
    background: #fff;
    cursor: grab;
    -webkit-appearance: none;
    margin-top: -7px;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
    transition: transform 0.1s;
    border: 2px solid var(--primary);
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* --- RESULTS GRID --- */
.calc-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    /* Tighter gap */
    margin-bottom: 15px;
}

.result-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle */
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

.res-label {
    font-size: 0.65rem;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.res-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: #e2e8f0;
    font-weight: 600;
}

/* --- TOTAL CARD (Compact) --- */
.result-card.highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 78, 59, 0.3));
    border: 1px solid rgba(16, 185, 129, 0.5);
    /* Less bright */
    padding: 15px;
    /* Much smaller padding */
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

.result-card.highlight .res-label {
    color: var(--success);
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 5px;
}

.result-card.highlight .res-value {
    font-size: 1.8rem;
    /* Smaller total */
    color: #fff;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    letter-spacing: -0.5px;
}

.calc-disclaimer {
    text-align: center;
    font-size: 0.6rem;
    color: #475569;
    margin-top: 15px;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
}