/* ==========================================
   Revenue Calculator Section - NEW VERSION
   ========================================== */

.calculator-section-new {
    padding: 40px 20px 40px;
    background: var(--bg-section);
    overflow-x: hidden;
}

.calculator-wrapper-new {
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Outer rounded container – like the reference screenshot */
.calc-outer-box {
    background: linear-gradient(135deg, #f5f0ec 0%, #f0eefc 30%, #edf3fc 60%, #faf0ee 100%);
    border-radius: 24px;
    padding: 18px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(15, 26, 43, 0.05);
}

.calculator-content-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.calculator-card-new {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 26, 43, 0.08);
}

.calculator-left-card-new {
    padding: 18px 18px;
}

.calculator-right-card-new {
    padding: 0;
    overflow: hidden;
}

/* Slider Styling */
.calculator-slider-row-new {
    display: flex;
    align-items: center;
    gap: 12px;
    touch-action: pan-y;
}

.calculator-slider-row-new input[type="range"] {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #2f56c9 0%, #2f56c9 15%, #e5e7eb 15%, #e5e7eb 100%);
    outline: none;
    -webkit-appearance: none;
    touch-action: manipulation;
}

.calculator-slider-row-new input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2f56c9;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(47, 86, 201, 0.3);
}

.calculator-slider-row-new input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2f56c9;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(47, 86, 201, 0.3);
}

.calculator-value-box {
    min-width: 60px;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f1a2b;
}

.calculator-cta-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 86, 201, 0.4);
}

/* Responsive */
@media (max-width: 968px) {
    .calc-outer-box {
        padding: 18px 14px;
        border-radius: 18px;
    }

    .calculator-section-new {
        padding: 28px 18px 40px;
    }

    .calculator-content-new {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .calculator-left-card-new,
    .calculator-right-card-new {
        padding: 16px 14px;
    }

    /* Shrink results card on mobile */
    .calculator-right-card-new {
        min-height: auto !important;
    }

    /* Blue box - per week */
    .calculator-right-card-new > div:first-child {
        padding: 14px 14px 16px !important;
    }

    /* "Extra Money" heading */
    .calculator-right-card-new > div:first-child > div:first-of-type {
        font-size: 0.9rem !important;
        margin-bottom: 10px !important;
    }

    /* Big dollar amount (per week) */
    #dailyLossNew {
        font-size: 2rem !important;
        margin-bottom: 4px !important;
    }

    /* "Per Week" label */
    .calculator-right-card-new > div:first-child > div:last-child {
        font-size: 0.75rem !important;
    }

    /* White section - month/year */
    .calculator-right-card-new > div:nth-child(2) {
        padding: 10px 14px !important;
    }

    /* Month and year rows */
    .calculator-right-card-new > div:nth-child(2) > div > div {
        padding: 8px 0 !important;
    }

    /* Month/Year dollar amounts */
    #monthlyLossNew,
    #yearlyLossNew {
        font-size: 1.15rem !important;
    }

    /* Month/Year labels */
    .calculator-right-card-new > div:nth-child(2) > div > div > div > div {
        font-size: 0.75rem !important;
    }

    /* CTA button */
    .calculator-cta-btn {
        padding: 12px 28px !important;
        font-size: 0.875rem !important;
    }

    /* Reduce CTA margin */
    .calculator-right-card-new > div:nth-child(2) > div:last-child {
        margin-top: 10px !important;
    }
}

/* ==========================================
   Revenue Calculator Section - OLD VERSION
   ========================================== */

.calculator-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #4A5FBD 0%, #5B6EC8 100%);
    position: relative;
}

.calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* ==========================================
   Left Panel - Input Card
   ========================================== */

.calculator-input-card {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.calculator-heading {
    font-size: clamp(1.75rem, 2vw, 2.25rem);
    font-weight: 700;
    color: #1a2b49;
    margin-bottom: 12px;
    line-height: 1.2;
}

.calculator-subtext {
    font-size: 1rem;
    color: #5a6c7d;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* ==========================================
   Slider Inputs
   ========================================== */

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
}

.calculator-input-group {
    display: flex;
    flex-direction: column;
}

.calculator-label {
    font-size: 1rem;
    font-weight: 600;
    color: #1a2b49;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calculator-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #4169E1;
}

/* Custom Slider Styling */
.calculator-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: #e9ecef;
    outline: none;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.calculator-slider:hover {
    background: #dee2e6;
}

/* Webkit (Chrome, Safari, Edge) */
.calculator-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4169E1 0%, #2947A9 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(65, 105, 225, 0.3);
    transition: all 0.2s ease;
}

.calculator-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.4);
}

/* Firefox */
.calculator-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4169E1 0%, #2947A9 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(65, 105, 225, 0.3);
    transition: all 0.2s ease;
}

.calculator-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.4);
}

/* ==========================================
   Calculate Button - HIDDEN (Removed per user request)
   ========================================== */

.calculator-button {
    display: none;
}

.calculator-tagline {
    display: none;
}

/* ==========================================
   Right Panel - Results Card (Two-Tone Design)
   ========================================== */

.calculator-results-card {
    background: linear-gradient(180deg, #5568DE 0%, #4A5FBD 55%, #ffffff 55%, #ffffff 100%);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

/* Light burst effect in upper section */
.calculator-results-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.12) 35%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

/* Background Image - Phone with Flying Money */
.calculator-results-image {
    position: absolute;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    width: 280px;
    height: auto;
    opacity: 1;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.calculator-results-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.calculator-results-heading {
    font-size: clamp(1.5rem, 1.8vw, 2rem);
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    color: white;
    position: relative;
    z-index: 3;
    padding: 40px 40px 0 40px;
}

/* ==========================================
   Results Display
   ========================================== */

.calculator-results-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.calculator-result-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 40px;
    margin-bottom: 28px;
}

/* First item (Per Day) - Blue section with white text */
.calculator-result-item:first-child {
    color: white;
    padding-bottom: 40px;
}

.calculator-result-item:first-child .calculator-result-label {
    color: rgba(255, 255, 255, 0.85);
}

.calculator-result-item:first-child .calculator-result-value {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Second and third items (Per Month, Per Year) - White section with dark text */
.calculator-result-item:nth-child(2),
.calculator-result-item:nth-child(3) {
    color: #1a2b49;
    padding-top: 10px;
}

.calculator-result-item:nth-child(2) {
    padding-top: 30px;
}

.calculator-result-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 3;
}

.calculator-result-value {
    font-size: clamp(2rem, 2.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1;
    position: relative;
    z-index: 3;
}

/* Dark gray text for items in white section */
.calculator-result-item:nth-child(2) .calculator-result-label,
.calculator-result-item:nth-child(3) .calculator-result-label {
    color: #5a6c7d;
}

.calculator-result-item:nth-child(2) .calculator-result-value,
.calculator-result-item:nth-child(3) .calculator-result-value {
    color: #1a2b49;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media screen and (max-width: 968px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .calculator-input-card,
    .calculator-results-card {
        min-height: auto;
    }
    
    .calculator-input-card {
        padding: 40px 30px;
    }
    
    .calculator-results-card {
        min-height: 450px;
    }
    
    .calculator-heading {
        font-size: 1.75rem;
    }
    
    .calculator-results-heading {
        font-size: 1.5rem;
        padding: 30px 30px 0 30px;
        margin-bottom: 20px;
    }
    
    .calculator-result-item {
        padding: 0 30px;
        margin-bottom: 24px;
    }
    
    .calculator-result-item:nth-child(2) {
        padding-top: 20px;
    }
    
    .calculator-results-image {
        width: 220px;
        bottom: 15px;
    }
}

@media screen and (max-width: 640px) {
    .calc-outer-box {
        padding: 14px 10px;
        border-radius: 16px;
    }

    .calculator-section-new {
        padding: 22px 12px 34px;
    }

    .calculator-section {
        padding: 60px 0;
    }
    
    .calculator-input-card {
        padding: 32px 24px;
    }
    
    .calculator-results-card {
        min-height: 400px;
        padding: 0;
    }
    
    .calculator-heading {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .calculator-subtext {
        font-size: 0.9375rem;
        margin-bottom: 32px;
    }
    
    .calculator-inputs {
        gap: 28px;
        margin-bottom: 32px;
    }
    
    .calculator-label {
        font-size: 0.9375rem;
    }
    
    .calculator-value {
        font-size: 1rem;
    }
    
    .calculator-button {
        font-size: 1rem;
        padding: 16px 32px;
    }
    
    .calculator-results-heading {
        font-size: 1.375rem;
        margin-bottom: 16px;
        padding: 24px 24px 0 24px;
    }
    
    .calculator-results-list {
        gap: 0;
    }
    
    .calculator-result-item {
        padding: 0 24px;
        margin-bottom: 20px;
    }
    
    .calculator-result-item:first-child {
        padding-bottom: 24px;
    }
    
    .calculator-result-item:nth-child(2) {
        padding-top: 16px;
    }
    
    .calculator-result-label {
        font-size: 0.8125rem;
    }
    
    .calculator-result-value {
        font-size: 1.75rem;
    }
    
    .calculator-results-image {
        width: 180px;
        bottom: 10px;
    }
}
