/* ===========================================
   CALCULATOR SECTION STYLES - SCOPED
   // credit-calculatot.css
=========================================== */

/* Main calculator section */
.calculator-section {
    background: #FFEBF1;
    padding: 70px 34px 40px;
    margin: 70px auto 0;
    border-radius: 20px;
    border-top: 4px solid #FF739D;
    max-width: 1344px;
}

.page-pricing .calculator-section .grid {
    grid-template-columns: 1fr;
    max-width: 1280px;
    background: #fff;
    margin: 0 auto;
    padding: 30px 50px;
   border-radius: 6px;
}

.calculator-section .calculator-container {
    width:100%;
    /* background: white;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); */
}

.calculator-section .calculator-header {
    text-align: center;
    margin-bottom: 40px;
}

.calculator-section .calculator-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #000;
}

.calculator-section .calculator-header p {
    font-size: 1.1rem;
}

.calculator-section .toggle-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

/* Calculator Toggle Buttons */
.calculator-section .calculator-toggle-container {
    display: flex;
    gap: 0;
    /* margin-bottom: 40px; */
    /* background: #f3f4f6; */
    border-radius: 50px;
    padding: 4px;
    width: fit-content;
    border: 2px solid;
}

.calculator-section .calculator-toggle-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-radius: 46px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: #000;
}

.calculator-section .calculator-toggle-btn.active {
    background: #ff5500;
    color: white;
}

/* Main Content Layout */
.calculator-section .calculator-main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* Range Slider Section */
.calculator-section .calculator-range-section {
    margin-bottom: 60px;
}

/* Credits Header Section (for Get Credit estimate mode) */
.calculator-section .calculator-credits-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.calculator-section .credits-header-content {
    display: flex;
    justify-content: space-between;
    margin-top:40px;
}

.calculator-section .credits-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: normal;
}

.calculator-section .total-credits-display {
    font-size: 3rem;
    font-weight: 700;
    color: #000;
}

.calculator-section .recommended-plan-info {
    padding: 15px 10px;
    border: 2px solid #ff5500;
    border-top: 5px solid #ff5500;
    border-radius: 6px;
    margin-bottom: 40px;
    min-width: 240px;
    min-height: 100px;
}

.calculator-section .plan-label {
    display: block;
    padding: 4px 10px;
    background: #FFEC3D;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 8px;
    width: fit-content;
}

.calculator-section .plan-name {
    font-size: 24px;
    font-weight: 700;
}

.calculator-section .plan-note{
    display: block;
    font-size: 12px;
    color: #A0A0A0;
}

/* Input Mode Styles - UPDATED */
.calculator-section .card-input-mode {
    margin-top: 16px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calculator-section .credit-input {
    /* REMOVE: width: 50%; */
    /* REPLACE WITH: Dynamic width */
    min-width: 60px;
    width: auto;
    max-width: 200px;
    
    padding: 12px 0px 25px;
    border: none;
    border-bottom: 1px solid #d0d0d0;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
    transition: border-color 0.3s ease, width 0.2s ease;
    box-shadow: unset;
}

.calculator-section .credit-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.calculator-section .card-input-mode img {
    /* MODIFY: Change positioning from absolute to relative */
    /* position: absolute;
    left: 35%;
    top: 3px; */
    
    position: relative;
    align-self: self-start;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* UPDATED: Hide icon when editing OR focused */
.calculator-section .card-input-mode .credit-input.editing + img,
.calculator-section .card-input-mode:focus-within img {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
}

.calculator-section .card-input-mode .credit-input + img{
    display: block;
}

/* ADD: Dynamic width classes */
.calculator-section .credit-input[data-length="1"] { width: 3ch; }
.calculator-section .credit-input[data-length="2"] { width: 4ch; }
.calculator-section .credit-input[data-length="3"] { width: 5ch; }
.calculator-section .credit-input[data-length="4"] { width: 6ch; }
.calculator-section .credit-input[data-length="5"] { width: 7ch; }
.calculator-section .credit-input[data-length="6"] { width: 8ch; }
.calculator-section .credit-input[data-length="7"] { width: 9ch; }
.calculator-section .credit-input[data-length="8"] { width: 10ch; }
.calculator-section .credit-input[data-length="9"] { width: 11ch; }
.calculator-section .credit-input[data-length="10"] { width: 12ch; }
.calculator-section .credit-input[data-length="11"] { width: 13ch; }
.calculator-section .credit-input[data-length="12"] { width: 14ch; }

/* Remove arrows */
.calculator-section .credit-input::-webkit-outer-spin-button,
.calculator-section .credit-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* .calculator-section .credit-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Make readonly by default, editable when clicked */
/*.calculator-section .credit-input {
    pointer-events: none;
} */
.calculator-section .credit-input.editing {
    pointer-events: all;
}
.calculator-section .card-input-mode img {
    cursor: pointer;
}

.calculator-section .input-calculation {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 0px;
}

.calculator-section .range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.calculator-section .range-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
}

.calculator-section .range-info {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Range Slider Container */
.calculator-section .calculator-range-container {
    position: relative;
    margin: 0px 0 20px;
}

.calculator-section .calculator-range-slider {
    width: 100%;
    height: 20px;
    border-radius: 22px;
    background: #F1F1F1;
    outline: none;
    -webkit-appearance: none;
    position: relative;
    z-index: 0;
}

.calculator-section .calculator-range-slider::-webkit-slider-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
}

.calculator-section .calculator-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff5500;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 3;
}

.calculator-section .calculator-range-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    border: none;
}

.calculator-section .calculator-range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff5500;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Range Progress Bar */
.calculator-section .range-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    background: #ff5500;
    border-radius: 22px;
    pointer-events: none;
    transition: width 0.2s ease;
    z-index: 1;
    /* Ensure it never exceeds container width */
    max-width: 100%;
    /* Prevent it from affecting parent layout */
    will-change: width;
}

/* Range Dots */
.calculator-section .range-dots {
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    pointer-events: none;
    z-index: 3;
}

.calculator-section .range-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff5500;
    transition: all 0.3s ease;
}

.calculator-section .range-dot:nth-child(even){
    opacity: 0.4;
}

.calculator-section .range-dot.current{
    opacity: 1 !important;
}

.calculator-section .range-dot.active {
    background: #ff5500;
    width: 6px;
    height: 6px;
    top: 2px;
}

.calculator-section .range-dot.current {
    background: #fff;
    width: 20px;
    height: 20px;
    box-shadow: 0px 0px 11.73px 0px #00000026;
    border: 5.86px solid #FFC37D;
    z-index: 5
}

.calculator-section .range-dot.current:nth-child(11),.calculator-section .range-dot.current:nth-child(12),.calculator-section .range-dot.current:nth-child(13){
   margin-left: 60px;
}

/* Range Labels */
.calculator-section .calculator-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #6b7280;

    /* display: block;
    position: relative;
    margin-top: 20px;
    height: 20px; */
}

.calculator-section .calculator-range-labels span {
    flex: 1;
    text-align: center;

    /* position: absolute;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: #6b7280;
    white-space: nowrap; */
}

.calculator-section .calculator-range-labels span:nth-child(even){
    visibility: hidden;
}

.calculator-section .calculator-range-labels span:first-child {
    text-align: left;
}

.calculator-section .calculator-range-labels span:last-child {
    text-align: right;
}


/* .calculator-section .calculator-range-labels span:nth-child(1) { left: 0%; }         
.calculator-section .calculator-range-labels span:nth-child(2) { left: 8.67%; }        
.calculator-section .calculator-range-labels span:nth-child(3) { left: 18%; }          
.calculator-section .calculator-range-labels span:nth-child(4) { left: 27.50%; }      
.calculator-section .calculator-range-labels span:nth-child(5) { left: 35.67%; }       
.calculator-section .calculator-range-labels span:nth-child(6) { left: 44%; }          
.calculator-section .calculator-range-labels span:nth-child(7) { left: 52.34%; }       
.calculator-section .calculator-range-labels span:nth-child(8) { left: 59.67%; }       
.calculator-section .calculator-range-labels span:nth-child(9) { left: 68%; }          
.calculator-section .calculator-range-labels span:nth-child(10) { left: 76.34%; }      
.calculator-section .calculator-range-labels span:nth-child(11) { left: 83.67%; }      
.calculator-section .calculator-range-labels span:nth-child(12) { left: 91.66%; }     
.calculator-section .calculator-range-labels span:nth-child(13) { left: 100%; }        */

/* Keep the existing hiding rule */
.calculator-section .calculator-range-labels span:nth-child(even) {
    visibility: hidden;
}

/* Ensure first and last labels don't overflow */
.calculator-section .calculator-range-labels span:first-child {
    transform: translateX(0);
}

/* Credit tooltip styles */
/* .calculator-section .credit-tooltip {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.calculator-section .credit-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #000;
}

.calculator-section .range-dot.current {
    position: relative;
} */

/* Credit Cards Grid */
.calculator-section .calculator-credits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.calculator-section .calculator-credit-card {
    border: 1px solid;
    border-top: 5px;
    border-radius: 5.86px;
    padding: 20px;
    border-style: solid;
    border-color: #BBDEFF;
    margin-bottom: 10px;
}

/* .calculator-section .card {
    border: 1px solid;
    border-top: 5px;
    border-radius: 5.86px;
    padding: 20px;
    border-style: solid;
    border-color: #BBDEFF;
} */

.calculator-section .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.calculator-section .card-icon {
    width: 24px;
    height: 24px;
    color: #6b7280;
}

.calculator-section .card-title {
    font-weight: 500;
    color: #000;
    font-size: 18px;
}

.calculator-section .card-value {
    font-size: 24px;
    font-weight: 700;
    color: #000;
}

/* ===========================================
   OR DIVIDERS FOR DISPLAY MODE
=========================================== */

/* Add OR dividers between cards when in display mode */

.calculator-section .calculator-credits-grid.display-mode-active{
    gap:40px;
}

.calculator-section .calculator-credits-grid.display-mode-active .credits-card {
    position: relative;
}

.calculator-section .calculator-credits-grid.display-mode-active .credits-card:not(:nth-child(3n))::after {
    content: "OR";
    position: absolute;
    right: -37px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 8px;
    color: #999999;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
    white-space: nowrap;
}

/* Hide OR dividers on last item in each row */
.calculator-section .calculator-credits-grid.display-mode-active .credits-card:nth-child(3)::after,
.calculator-section .calculator-credits-grid.display-mode-active .credits-card:nth-child(6)::after {
    display: none;
}

/* Responsive: Hide OR dividers on mobile */
@media (max-width: 768px) {
    .calculator-section .calculator-credits-grid.display-mode-active .credits-card::after {
        display: none;
    }
}

.calculator-section .card-calculation {
    font-size: 0.85rem;
    color: #6b7280;
}

.calculator-section .or-divider {
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 12px 0;
}

.calculator-section p.asterisk {
    font-size: 14px;
    margin-bottom: 0px;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #d0d0d0;
}

/* Cost Sidebar */
/* .calculator-section .calculator-cost-sidebar {
    background: #1f2937;
    border-radius: 16px;
    padding: 32px;
    color: white;
    height: fit-content;
    position: sticky;
    top: 20px;
} */

/* .calculator-section .cost-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
} */


.calculator-section .plan-info {
    font-size: 0.9rem;
    opacity: 0.8;
}

.calculator-section .recommended-plan {
    background: #fbbf24;
    color: #1f2937;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 8px;
}

.calculator-section .cost-toggle {
    display: flex;
    /* background: rgba(255,255,255,0.1); */
    border-radius: 24px;
    box-shadow: 2px 2px 3px 0px #B8B3B340 inset;
    padding: 4px;
}

.calculator-section .cost-toggle button {
    flex: 1;
    /* padding: 8px 16px; */
    /* border: none; */
    /* background: transparent;
    color: white; */
    border-radius: 17px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

/* When in "onetime-only" mode (credits 100-2500), disable monthly/yearly */
.calculator-section .cost-toggle[data-mode="onetime-only"] #monthlyToggle,
.calculator-section .cost-toggle[data-mode="onetime-only"] #annuallyToggle {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    color: #999 !important;
    background: transparent !important;
}

/* Force one-time to be active in onetime-only mode */
.calculator-section .cost-toggle[data-mode="onetime-only"] #onetimeToggle {
    background: #ff5500 !important;
    color: white !important;
    font-weight: 600;
}

/* Position indicator on one-time button when in onetime-only mode */
.calculator-section .cost-toggle[data-mode="onetime-only"] .toggle-indicator {
    transform: translateX(200%) !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .calculator-section .cost-toggle[data-mode="onetime-only"] #monthlyToggle,
    .calculator-section .cost-toggle[data-mode="onetime-only"] #annuallyToggle {
        opacity: 0.3;
    }
}

/* .calculator-section .cost-toggle button.active {
    background: rgba(255,255,255,0.2);
} */

.calculator-section .cost-detail {
    padding: 20px;
    position: relative;
    border: 1px solid;
    border-radius: 6px;
    box-shadow: 4px 4px 0px 0px #000000;
    min-height: 170px;
    margin-bottom: 40px;
}

.calculator-section .cost-detail img{
    position: absolute;
    right: 10px;
    bottom: 10px;
}

.calculator-section .cost-title {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 8px;
    line-height: 100%;
}

.calculator-section .cost-amount {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 100%;
}

.calculator-section .cost-details {
    font-size: 14px;
    color: #00000080;
    /* white-space: pre-line; */
}

.calculator-section .cost-details a#button, .calculator-section .cost-detail a#button {
    padding: 10px;
    height: auto;
    font-size: 12px;
}

.calculator-section .cost-detail a#button{
    margin-top: 10px;
}

.calculator-section .usage-details {
    background: #D8D8D81A;
    border-radius: 6px;
    padding: 20px;
}

.calculator-section .usage-title {
    font-size: 18px;
    padding-bottom: 5px;
    border-bottom: 1px solid #E0E0E0;
    margin-bottom: 16px;
}

.calculator-section .usage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
    padding: 8px 0px;
    font-size: 12px;
    color: #222222CC;
}

.calculator-section .usage-icon {
    width: 16px;
    height: 16px;
    opacity: 0.8;
    flex-shrink: 0;
}

/* Calculator Link Styles (for pricing columns) */
.calculator-link {
    display: block;
    text-align: center;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    margin-top: 12px;
}

.calculator-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-section {
        padding: 60px 15px;
    }
    
    .calculator-section .calculator-container {
        padding: 40px 20px;
    }
    
    .calculator-section .calculator-main-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .calculator-section .calculator-credits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calculator-section .calculator-header h2 {
        font-size: 2rem;
    }
    
    .calculator-section .calculator-range-container {
        margin: 30px 0;
    }
    
    .calculator-section .range-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 30px;
    }
    
    .calculator-section .cost-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .calculator-section {
        padding: 40px 10px;
    }
    
    .calculator-section .calculator-container {
        padding: 30px 15px;
        border-radius: 15px;
    }
    
    .calculator-section .calculator-credits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .calculator-section .calculator-toggle-container {
        flex-direction: column;
        width: 100%;
    }
    
    .calculator-section .calculator-toggle-btn {
        padding: 12px 20px;
    }
    
    .calculator-section .calculator-header h2 {
        font-size: 1.8rem;
    }
    
    .calculator-section .calculator-cost-sidebar {
        padding: 24px;
    }
    
    .calculator-section .cost-amount {
        font-size: 2.5rem;
    }
    
    .calculator-section .calculator-range-labels {
        font-size: 0.8rem;
    }
}

/* Dark mode support (optional) */
/* @media (prefers-color-scheme: dark) {
    .calculator-section .calculator-container {
        background: #1f2937;
        color: white;
    }
    
    .calculator-section .calculator-header h2 {
        color: white;
    }
    
    .calculator-section .calculator-credit-card {
        background: #374151;
        border-color: #4b5563;
    }
    
    .calculator-section .card-title {
        color: white;
    }
    
    .calculator-section .card-value {
        color: white;
    }
    
    .calculator-section .range-title {
        color: white;
    }
} */

/* High contrast mode support (accessibility) */
@media (prefers-contrast: high) {
    .calculator-section .calculator-range-slider::-webkit-slider-thumb {
        border: 4px solid black;
    }
    
    .calculator-section .range-dot.current {
        border: 4px solid black;
    }
    
    .calculator-section .calculator-credit-card {
        border: 2px solid #000;
    }
    
    .calculator-section .cost-toggle button.active {
        background: rgba(255,255,255,0.9);
        color: #000;
    }
}

/* Reduced motion support (accessibility) */
@media (prefers-reduced-motion: reduce) {
    .calculator-section .calculator-toggle-btn,
    .calculator-section .range-dot,
    .calculator-section .range-progress,
    .calculator-section .calculator-credit-card,
    .calculator-section .cost-toggle button {
        transition: none;
    }
    
    .calculator-section .calculator-range-slider::-webkit-slider-thumb {
        transition: none;
    }
}

/* Print styles */
@media print {
    .calculator-section {
        background: white;
        padding: 20px 0;
    }
    
    .calculator-section .calculator-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .calculator-section .calculator-cost-sidebar {
        background: white;
        color: black;
        border: 1px solid #000;
    }
    
    .calculator-section .calculator-toggle-container,
    .calculator-section .calculator-range-container {
        display: none;
    }
}

/* ===========================================
   ONE-TIME TOGGLE ADDITIONS - MINIMAL
   Add these styles to the END of your credit-calculator.css file
=========================================== */

/* ===========================================
   THREE-WAY TOGGLE SPECIFIC ENHANCEMENTS
=========================================== */

/* Enhanced cost toggle for three-way support */
.calculator-section .cost-toggle.three-way {
    min-width: 260px;
    position: relative;
    gap: 2px;
}

.calculator-section .cost-toggle.three-way button {
    padding: 8px 10px;
    /* font-size: 0.8rem;
    font-weight: 500;
    position: relative; */
    z-index: 2;
    /* white-space: nowrap; */
}

.calculator-section .cost-toggle.three-way button.active {
    font-weight: 600;
    color: #fff;
}

/* NEW: Animated sliding indicator */
.calculator-section .cost-toggle.three-way .toggle-indicator {
    position: absolute;
    top: 5px;
    left: 4px;
    width: calc(33.333% - 2px);
    height: calc(100% - 14%);
    background: #ff5500;
    border-radius: 24px;
    transition: transform 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

/* Indicator animation positions */


.calculator-section .cost-toggle.three-way #monthlyToggle.active ~ .toggle-indicator {
    transform: translateX(0%);
}

.calculator-section .cost-toggle.three-way #annuallyToggle.active ~ .toggle-indicator {
    transform: translateX(100%);
}

.calculator-section .cost-toggle.three-way #onetimeToggle.active ~ .toggle-indicator {
    transform: translateX(200%);
}

.calculator-section .cost-toggle.three-way span{
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translate(-50%);
    z-index: 9;
    background: #FFEC3D;
    font-size: 10px;
    padding: 3px 5px;
}

/* ===========================================
   ONE-TIME MESSAGE STYLES - NEW
=========================================== */

.calculator-section .onetime-message {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #fbbf24;
    display: none;
}

.calculator-section .onetime-message p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===========================================
   THREE-WAY RESPONSIVE UPDATES
=========================================== */

@media (max-width: 768px) {
    .calculator-section .cost-toggle.three-way {
        min-width: 240px;
    }
    
    .calculator-section .cost-toggle.three-way button {
        font-size: 0.75rem;
        padding: 6px 6px;
    }
}

@media (max-width: 480px) {
    /* Stack toggles vertically on very small screens */
    .calculator-section .cost-toggle.three-way {
        flex-direction: column;
        gap: 4px;
        padding: 6px;
        min-width: auto;
    }
    
    .calculator-section .cost-toggle.three-way button {
        width: 100%;
        padding: 10px;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    
    /* Hide indicator on mobile when stacked */
    .calculator-section .cost-toggle.three-way .toggle-indicator {
        display: none;
    }
}

/* ===========================================
   THREE-WAY HOVER EFFECTS
=========================================== */

.calculator-section .cost-toggle.three-way button:hover:not(.active) {
    transform: translateY(-1px);
}

.calculator-section .cost-toggle.three-way button:active {
    transform: translateY(0);
}

/* ===========================================
   DARK MODE UPDATES - ONE-TIME MESSAGE
=========================================== */

/* @media (prefers-color-scheme: dark) {
    .calculator-section .onetime-message {
        background: rgba(251, 191, 36, 0.15);
        border-color: rgba(251, 191, 36, 0.4);
        color: #fcd34d;
    }
} */

/* ===========================================
   HIGH CONTRAST MODE - THREE-WAY SPECIFIC
=========================================== */

@media (prefers-contrast: high) {
    .calculator-section .cost-toggle.three-way .toggle-indicator {
        background: rgba(255,255,255,0.9);
        border: 2px solid #fff;
    }
    
    .calculator-section .onetime-message {
        border: 2px solid #fbbf24;
        background: rgba(251, 191, 36, 0.2);
    }
}

/* ===========================================
   REDUCED MOTION - THREE-WAY SPECIFIC
=========================================== */

@media (prefers-reduced-motion: reduce) {
    .calculator-section .cost-toggle.three-way .toggle-indicator {
        transition: none;
    }
    
    .calculator-section .cost-toggle.three-way button:hover:not(.active) {
        transform: none;
    }
}

/* ===========================================
   PRINT STYLES - ONE-TIME MESSAGE
=========================================== */

@media print {
    .calculator-section .onetime-message {
        background: #f9f9f9;
        border: 1px solid #ccc;
        color: #333;
    }
}