.container {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    background-color: #ffffff;
    box-shadow: 0 20px 25px -5px #daf5ff;
    border-radius: 0.75rem;
}

/* --- Header --- */
.header {
    background-color: #006492;
    color: #ffffff;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    padding: 1.5rem 1.5rem;
    /* Added bottom border for clean separation since step indicator is gone */
    border-bottom: 1px solid #e5e7eb;
}

.header h1 {
    font-size: 1.6rem;
    font-weight: 500;
}

/* --- Content Sections --- */
.section-content {
    padding: 1.5rem;
}

.hidden {
    display: none !important;
}

/* --- Input Styles (Form Elements) --- */
.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.input-field {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #f9fafb;
}

.input-field:focus {
    outline: none;
    border-color: #0e7490;
    box-shadow: 0 0 0 2px rgba(14, 116, 144, 0.2);
    background-color: #ffffff;
}

/* Slider Group */
.slider-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slider-input-group label {
    margin-bottom: 0;
}

#billerCountRange {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 1px !important;
    cursor: pointer;
    border-radius: 4px;
    background: #006492;
    outline: none;
}

.slider-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0e7490 !important;
    text-align: center;
}

/* --- Tabs (Used in Step 2) --- */
.tabs {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    font-size: 0.875rem;
    row-gap: 15px;
    border: none;
}

.tab-button {
    padding: 0.75rem 1rem;
    border: none;
    background-color:
        #00649282;
    cursor: pointer;
    color: #ffff;
    flex-grow: 1;
    text-align: center;
    outline: none;
    border-radius: 5px;
}

.tab-button.active {
    color: #ffff;
    background-color:
        #006492;
}

.tab-button:hover:not(.active) {
    color: #ffff;
    background-color:
        #00649282;
}

/* --- Outsource Tab Layout (Desktop/Vertical Separator) --- */
.outsource-separator {
    display: none;
    align-items: center;
    font-weight: 600;
    color: #9ca3af;
    font-style: italic;
}

.outsource-separator div {
    flex-grow: 1;
    height: 1px;
    background-color: #e5e7eb;
    margin: 0 1rem;
}

.outsource-mobile-separator {
    text-align: center;
    font-weight: 600;
    color: #9ca3af;
    font-style: italic;
    padding: 0.5rem 0;
    border-top: 1px dashed #e5e7eb;
    border-bottom: 1px dashed #e5e7eb;
    margin-top: 10px;
    margin-bottom: 10px;

}

/* --- Input Grid (Default: 1 Column on Mobile) --- */
.input-grid {
    display: grid;
    gap: 1.5rem;
}

/* --- Navigation Buttons --- */
.button-section {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

.nav-button {
    padding: 0.75rem 1rem;
    font-weight: 300;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    min-width: 45%;
    flex-grow: 1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-button.next,
.nav-button.calculate {
    background-color: #00BDFF;
    color: #ffffff;
}

.nav-button.back {
    background-color: #e5e7eb;
    color: #1f2937;
}

.nav-button:hover {
    opacity: 0.9;
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.15);
}

/* --- Results Styling --- */
.results-container {
    padding: 1.5rem;
}

.results-grid {
    display: grid;
    gap: 1.5rem;
}

.results-box {
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.results-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.paymedics-box {
    background-color: #006492;
    color: #ffffff;
}

.user-box {
    background-color: #f0f8ff;
    border: 1px solid #93c5fd;
    color: #1f2937;
}

.revenue-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.revenue-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #16a34a;
    /* Use a success color for the main value */
}

.paymedics-box .revenue-value {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Conclusion/Savings Message */
.conclusion-message {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
}

.conclusion-negative {
    background-color: #d1fae5;
    /* Light green background */
    border: 2px solid #16a34a;
    color: #16a34a;
}

.conclusion-positive {
    background-color: #ffedd5;
    /* Light orange/yellow, competitive performance */
    border: 2px solid #f97316;
    color: #f97316;
}

/* Guardrail Message */
.guardrail-message {
    padding: 1.5rem;
    border-radius: 0.5rem;
    background-color: #d1fae5;
    border: 2px solid #16a34a;
    color: #16a34a;
    text-align: center;
}

.guardrail-message h3 {
    color: #16a34a;
    margin-bottom: 1rem;
}

/* --- Guardrail/Error Message Styling --- */
.error-message {
    padding: 1rem;
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #b91c1c;
    border-radius: 0.5rem;
}


/* --- Responsiveness (Media Query for Tablet/Desktop) --- */
@media (min-width: 768px) {


    .header {
        padding: 1.5rem 2.5rem;
    }

    .header h1 {
        font-size: 1.875rem;
    }

    .section-content {
        padding: 2.5rem;
    }

    .tabs {
        flex-direction: row;
        column-gap: 20px;
    }

    /* Step 1: 3 Columns on Tablet/Desktop */
    .input-grid-step1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    /* Step 2 (Inhouse): 2 Columns on Tablet/Desktop */
    .input-grid-step2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Step 2 (Inhouse): Slider must span 2 columns on Tablet/Desktop */
    #step-2 .input-grid-step2>.slider-input-group {
        grid-column: span 2 / span 2;
    }

    /* Step 2 (Outsource): Horizontal layout on Tablet/Desktop */
    .outsource-flex {
        flex-direction: row;
        gap: 2rem;
    }

    .outsource-field-container {
        flex: 1;
    }

    .outsource-separator {
        display: flex;
        margin-top: 20px;
        margin-bottom: 20px;
        /* Show vertical separator */
    }

    .outsource-mobile-separator {
        display: none;
        /* Hide horizontal OR */
    }

    /* Navigation Buttons: Set to fixed min-width to avoid stretching too much */
    .button-section {
        padding: 1.5rem 2.5rem;
    }

    .nav-button {
        min-width: 8rem;
        flex-grow: 0;
    }

    /* Results: 2 Columns on Tablet/Desktop */
    .results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .results-container {
        padding: 2.5rem;
    }

    /* Adjust revenue value display for better alignment on desktop */
    .results-box .revenue-value {
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .results-box .revenue-label {
        display: flex;
        flex-direction: column;
    }

    .user-box .revenue-value {
        color: #006492;
    }
}