.stickr-roi-calculator {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #26225E;
}

.calculator-header {
    text-align: center;
    margin-bottom: 3rem;
}

.calculator-header h2 {
    color: #26225E;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.calculator-header p {
    color: #26225E;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Input Section Styles */
.input-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(95, 48, 140, 0.1);
    border: 1px solid rgba(95, 48, 140, 0.1);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    color: #26225E;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(95, 48, 140, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    color: #26225E;
    transition: all 0.2s ease;
    background: white;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #5F308C;
    box-shadow: 0 0 0 3px rgba(95, 48, 140, 0.1);
}

.input-control {
    display: flex;
    gap: 1rem;
}

.input-control input {
    flex: 1;
}

.input-buttons {
    display: flex;
    gap: 0.5rem;
}

.input-buttons button {
    width: 36px;
    height: 36px;
    border: none;
    background: #5F308C;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.input-buttons button:hover {
    background: #4a2570;
    transform: translateY(-1px);
}

/* Billing Toggle Styles */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    background: #f7edde;
    border-radius: 8px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0d5eb;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #5F308C;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.discount-badge {
    background: #ff498f;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Results Section Styles */
.results-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease forwards;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(95, 48, 140, 0.1);
    border: 1px solid rgba(95, 48, 140, 0.1);
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(95, 48, 140, 0.15);
}

.result-card.primary {
    background: #5F308C;
    color: white;
}

.result-card.primary h3 {
    color: white;
}

.result-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #26225E;
}

.result-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: #5F308C;
}

.result-card.primary .value {
    color: white;
}

/* CTA Section Styles */
.cta-section {
    text-align: center;
    margin-top: 3rem;
}

.cta-button {
    background: #5F308C;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background: #4a2570;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(95, 48, 140, 0.2);
}

.cta-note {
    margin-top: 1rem;
    color: #26225E;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .stickr-roi-calculator {
        padding: 1rem;
    }

    .calculator-header h2 {
        font-size: 2rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .billing-toggle {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
}

/* Loading State */
.loading {
    position: relative;
    opacity: 0.7;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* Hover Effects */
.input-group input:hover,
.input-group select:hover {
    border-color: #5F308C;
}

/* Focus Styles */
.input-group input:focus,
.input-group select:focus,
.cta-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(95, 48, 140, 0.2);
}

.assumptions-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(95, 48, 140, 0.1);
    border: 1px solid rgba(95, 48, 140, 0.1);
}

.assumptions-section h3 {
    color: #26225E;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}
.assumptions-section h4 {
text-align: center;
}

.assumptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.assumption-card {
    background: #f7edde;
    border-radius: 8px;
    padding: 1.5rem;
}

.assumption-card h4 {
    color: #5F308C;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.assumption-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.assumption-card li {
    color: #26225E;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(95, 48, 140, 0.1);
}

.assumption-card li:last-child {
    border-bottom: none;
}


/* Mobile Optimization Styles */

/* Base Mobile Adjustments (Small phones) */
@media screen and (max-width: 380px) {
    .stickr-roi-calculator {
        padding: 1rem 0.5rem;
    }

    .calculator-header h2 {
        font-size: 1.75rem;
        line-height: 1.2;
        padding: 0 0.5rem;
    }

    .calculator-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .input-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .input-group {
        margin-bottom: 1rem;
    }

    .input-group label {
        font-size: 0.9rem;
    }

    .input-control {
        flex-direction: column;
        gap: 0.5rem;
    }

    .input-buttons {
        display: flex;
        justify-content: center;
    }

    .input-buttons button {
        width: 48px;
        height: 48px;
    }
}

/* Medium Mobile Devices (320px - 480px) */
@media screen and (min-width: 381px) and (max-width: 480px) {
    .stickr-roi-calculator {
        padding: 1rem;
    }

    .calculator-header h2 {
        font-size: 2rem;
    }

    .result-card .value {
        font-size: 1.5rem;
    }
}

/* Large Mobile Devices (481px - 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .result-card.primary {
        grid-column: span 2;
    }
}

/* Tablet Devices (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .result-card.primary {
        grid-column: span 3;
    }
}

/* Universal Mobile Optimizations */
@media screen and (max-width: 768px) {
    /* Input Section Adjustments */
    .input-group input,
    .input-group select {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 0.875rem;
        -webkit-appearance: none; /* Removes default styling on iOS */
        appearance: none;
    }

    /* Billing Toggle Adjustments */
    .billing-toggle {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.75rem;
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .discount-badge {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }

    /* Results Section Adjustments */
    .result-card {
        padding: 1rem;
    }

    .result-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .result-card .value {
        font-size: 1.75rem;
    }

    /* CTA Section Adjustments */
    .cta-section {
        margin-top: 2rem;
        padding: 0 1rem;
    }

    .cta-button {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    .cta-note {
        font-size: 0.9rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    /* Enhance touch targets */
    .input-buttons button {
        min-width: 44px;
        min-height: 44px;
    }

    .cta-button {
        min-height: 48px;
    }

    /* Remove hover effects on touch devices */
    .result-card:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(95, 48, 140, 0.1);
    }

    .input-buttons button:hover {
        transform: none;
    }

    .cta-button:hover {
        transform: none;
    }

    /* Add active states for touch feedback */
    .result-card:active {
        transform: scale(0.98);
    }

    .input-buttons button:active,
    .cta-button:active {
        transform: scale(0.95);
        background: #4a2570;
    }
}

/* Orientation Specific Styles */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .stickr-roi-calculator {
        max-height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .results-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .calculator-header {
        margin-bottom: 1.5rem;
    }
}

/* Progressive Enhancement for Modern Devices */
@supports (display: grid) and (grid-template-columns: subgrid) {
    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Foldable Device Support */
@media (max-width: 280px) {
    .stickr-roi-calculator {
        padding: 0.5rem;
    }

    .calculator-header h2 {
        font-size: 1.5rem;
    }

    .input-group input,
    .input-group select {
        font-size: 14px;
        padding: 0.75rem;
    }
}

/* High DPI Screen Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .result-card,
    .input-section {
        border-width: 0.5px;
    }
}

/* Safe Area Insets for Notched Devices */
@supports (padding: max(0px)) {
    .stickr-roi-calculator {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    .results-section,
    .result-card,
    .cta-button,
    .input-buttons button {
        animation: none;
        transition: none;
    }

    .result-card:hover,
    .result-card:active {
        transform: none;
    }
}

@media screen and (max-width: 768px) {
    .assumptions-section {
        padding: 1rem;
    }

    .assumptions-section h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .assumptions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .assumption-card {
        padding: 1rem;
    }

    .assumption-card h4 {
        font-size: 1rem;
    }

    .assumption-card li {
        font-size: 0.85rem;
    }
}