/**
 * Spend or Stash Calculator - Main Stylesheet
 * Version: 2.5.0
 */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.sos-calculator {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Oxygen', 'Ubuntu', sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #f8fafc;
}

/* Header Section */
.sos-header {
    text-align: center;
    margin-bottom: 60px;
}

.sos-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.2;
}

.sos-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 20px;
}

.spendsplash {
    color: #f97316;
}

.sos-contact {
    margin-top: 20px;
    font-size: 0.95rem;
    color: #64748b;
}

.sos-contact a {
    color: #f97316;
    text-decoration: none;
    font-weight: 600;
}

.sos-contact a:hover {
    text-decoration: underline;
}

/* Main Content Wrapper */
.sos-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 968px) {
    .sos-content-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Left & Right Sections */
.sos-left-section,
.sos-right-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Form Styles */
.sos-form h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 30px;
}

.sos-input-group {
    margin-bottom: 25px;
}

.sos-input-group label {
    display: block;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.sos-helper {
    font-weight: 400;
    color: #94a3b8;
    font-size: 0.85rem;
}

.sos-input-group input[type="text"],
.sos-input-group input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.sos-input-group input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.sos-price-input {
    position: relative;
}

.sos-dollar {
    position: absolute;
    left: 3px !important;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 600;
}

.sos-price-input input {
    padding-left: 36px;
}

/* Payment Type */
.sos-payment-type label {
   display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
}

.sos-radio-group {
    display: flex;
    gap: 12px;
}

.sos-radio-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.sos-radio-btn:hover {
    border-color: #f97316;
    color: #f97316;
}

.sos-radio-btn.active {
   background: #fe5000;
    border-color: #fe5000;
    color: white;
	border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    padding: 12px 20px;
}

.sos-radio-btn {
	border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    padding: 12px 20px;
}
/* Return Rate Slider */
.sos-return-slider {
    margin-bottom: 25px;
}

.sos-return-slider label {
    display: block;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

#sosReturnDisplay {
    color: #f97316;
    font-size: 1.1rem;
}

#sosReturnSlider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, 
        #f97316 0%, 
        #f97316 var(--slider-percent, 46%), 
        #e2e8f0 var(--slider-percent, 46%), 
        #e2e8f0 100%);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 8px;
}

#sosReturnSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f97316;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#sosReturnSlider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f97316;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sos-return-marks {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

.sos-preset-buttons {
    display: flex;
    gap: 8px;
}

.sos-preset-btn {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.sos-preset-btn:hover {
    border-color: #f97316;
    color: #f97316;
}

.sos-preset-btn.active {
    background: #f97316;
    color: white;
    border-color: #f97316;
}

/* Buttons */
.sos-button-group {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.sos-btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sos-btn-primary {
    background: #f97316;
    color: white;
}

.sos-btn-primary:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.sos-btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

.sos-btn-secondary:hover {
    background: #cbd5e1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Results Section */
.sos-results h2 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sos-icon {
    font-size: 2rem;
}

.sos-results-title {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* View Toggle */
.sos-view-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
}

.sos-view-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.sos-view-btn:hover {
    color: #f97316;
}

.sos-view-btn.active {
    background: white;
    color: #f97316;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Bubbles View */
.sos-bubbles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* .sos-bubble {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #fff5eb 0%, #fed7aa 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    transition: transform 0.3s; */
}

.sos-bubble:hover {
    transform: scale(1.05);
}

.sos-bubble-amount {
    font-size: clamp(12px, 2vw, 18px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
    line-height: 1.1;
    word-break: break-word;
}

.sos-bubble-label {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
}

/* Table View */
.sos-table table {
    width: 100%;
    border-collapse: collapse;
}

.sos-table th,
.sos-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.sos-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
}

.sos-table td {
    color: #1e293b;
    font-size: 0.95rem;
}

/* Chart View */
.sos-chart {
    padding: 20px 0;
}

/* Products Section - Imported from product-display.php */
<?php echo SOS_Product_Display::get_products_css(); ?>

/* Rich Habits Banner */
.sos-rich-habits-banner {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    padding: 50px 40px;
    margin: 60px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sos-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

@media (max-width: 768px) {
    .sos-banner-content {
        flex-direction: column;
        text-align: center;
    }
}

.sos-banner-text h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.sos-banner-text p {
    color: #cbd5e1;
    font-size: 1.2rem;
    line-height: 1.6;
}

.sos-banner-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .sos-banner-buttons {
        width: 100%;
        flex-direction: column;
    }
}

.sos-btn-join,
.sos-btn-trial {
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
    white-space: nowrap;
    display: inline-block;
}

.sos-btn-join {
    background: #f97316;
    color: white;
}

.sos-btn-join:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.sos-btn-trial {
    background: #fbbf24;
    color: #1e293b;
}

.sos-btn-trial:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
}

/* Why Choose Us */
.sos-why-choose {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    margin-bottom: 60px;
}

.sos-why-choose h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 15px;
}

.sos-why-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.sos-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.sos-feature {
    text-align: center;
    padding: 30px 20px;
}

.sos-feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.sos-feature h3 {
    color: #1e293b;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.sos-feature p {
    color: #64748b;
    line-height: 1.6;
}

.sos-rating {
    margin-top: 20px;
}

.sos-stars {
    font-size: 1.5rem;
    margin-right: 10px;
}

.sos-rating-text {
    color: #64748b;
    font-size: 0.95rem;
}

/* Examples Section */
.sos-examples-section {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    margin-bottom: 60px;
}

.sos-examples-section h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 15px;
}

.sos-examples-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.sos-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.sos-example-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

.sos-example-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.sos-example-chart {
    height: 150px;
    margin-bottom: 20px;
}

.sos-example-title {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.sos-example-amount {
    color: #f97316;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.sos-example-time {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.sos-example-btn {
    width: 100%;
    padding: 12px;
    background: white;
    border: 2px solid #f97316;
    color: #f97316;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.sos-example-btn:hover {
    background: #f97316;
    color: white;
}

/* CTA Section */
.sos-cta-section {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 16px;
    color: white;
}

.sos-cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.sos-cta-btn {
    padding: 18px 48px;
    background: white;
    color: #f97316;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.sos-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sos-cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sos-title {
        font-size: 2rem;
    }

    .sos-subtitle {
        font-size: 1rem;
    }

    .sos-bubbles {
        grid-template-columns: 1fr;
    }

    .sos-banner-text h2 {
        font-size: 1.8rem;
    }

    .sos-button-group {
        flex-direction: column;
    }

    .sos-examples-grid,
    .sos-products-grid {
        grid-template-columns: 1fr;
    }

    .sos-left-section,
    .sos-right-section {
        padding: 30px 20px;
    }
}



/* Add this to your CSS file to hide the right section when there are no results */

/* Hide the entire right section until calculations are shown */
.sos-right-section {
    display: none;
}

/* Show the right section only when calculator has results */
.sos-calculator.has-results .sos-right-section {
    display: block;
	
}

/* Make the left section full width when no results */
.sos-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    transition: grid-template-columns 0.3s ease;
}

/* When no results, make left section take full width */
.sos-calculator:not(.has-results) .sos-content-wrapper {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure right section appears smoothly when results show */
.sos-calculator.has-results .sos-content-wrapper {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
}

@media (max-width: 968px) {
    .sos-content-wrapper,
    .sos-calculator:not(.has-results) .sos-content-wrapper,
    .sos-calculator.has-results .sos-content-wrapper {
        grid-template-columns: 1fr;
    }
}




.sos-left-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

input#sosItemName, input#sosPrice {
    width: 100%;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: #1e293b;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s;
}
button.sos-radio-btn {
    flex: 1;
    padding: 12px 20px;
    background: white;
    border: 2px solid #cbd5e1;
    border-radius: 25px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
button.sos-radio-btn:hover, button.sos-preset-btn:hover, button.sos-view-btn:hover {
    background: transparent;
    color: #fe5000;
}
button.sos-preset-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 50px !important;
    max-width: 52px !important;
    height: 42px;
}

button.sos-btn-primary#sosCalculate {
    flex: 1;
    background: #fe5000;
    color: white;
    box-shadow: 0 4px 12px rgba(254, 80, 0, 0.3);
    border: navajowhite;
    padding: 16px 30px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 75% ;
    max-width: 75% ;
}
button.sos-btn-secondary#sosReset {
    background: white;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    width: 25%;
    max-width: 25%;
}
button.sos-btn-secondary#sosReset:hover {
    color: #fe5000;
}
.sos-payment-type {
    margin: 25px 0;
}
button.sos-view-btn {
    padding: 10px 20px;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100px;
    max-width: 100px;
}
button.sos-view-btn.active {
    background: #f97316;
    border-color: #f97316;
    color: white;
}

div#sosBubbles {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 15px;
    flex-wrap: wrap;
}
.sos-bubble{
    background: linear-gradient(135deg, #f97316 0%, #f97310 100%);
    border-radius: 50%;
    font-weight: 700;
    color: white;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
    position: relative;
    text-align: center;
    padding: 13px;
	align-content: center
}
.sos-bubble.smallest {
    width: 110px;
    height: 110px;
    min-width: 110px;
    min-height: 110px;
}
.sos-bubble-label {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}
.sos-bubble.small {
    width: 130px;
    height: 130px;
    min-width: 130px;
    min-height: 130px;
}
.sos-bubble.medium {
    width: 155px;
    height: 155px;
    min-width: 155px;
    min-height: 155px;
}
.sos-bubble.large {
    width: 180px;
    height: 180px;
    min-width: 180px;
    min-height: 180px;
}
.sos-calculator.has-results {
    background: linear-gradient(180deg, #f0f4f8 0%, #e8eef5 100%);
    border-radius: 20px;
}

@media (max-width: 768px) {
button.sos-btn-primary#sosCalculate {
    width: 100% !important;
    max-width: 100% !important;
}
	.sos-calculator {
    padding: 0px !important;
}
	button.sos-btn-secondary#sosReset {
    width: 45% !important;
    max-width: 45% !important;
}
.sos-bubble.smallest {
    width: 78px !important;
    height: 78px !important;
    min-width: 78px !important;
    min-height: 78px !important;
}
	div#sosBubbles {
    gap: 10px !important;
}
.sos-bubble.small {
    width: 85px !important;
    height: 85px !important;
    min-width: 85px !important;
    min-height: 85px !important;
}
.sos-bubble.medium {
    width: 95px !important;
    height: 95px !important;
    min-width: 95px !important;
    min-height: 95px !important;
}
.sos-bubble.large {
    width: 105px !important;
    height: 105px !important;
    min-width: 105px !important;
    min-height: 105px !important;
}
.sos-bubble-amount {
    font-size: 11px !important;
    line-height: 1.1 !important;
}
.sos-bubble-label {
    font-size: 9px !important;
}
	.sos-bubble-label {
    font-size: 10px !important;
}
	.sos-left-section, .sos-right-section {
        padding: 30px 10px !important;
    }
}