body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #e9f2f9;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}


.top-bar {
    background-color: #fff;
    padding: 10px 20px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between; 
}

.logo-link img { 
    height: 40px; 
    width: auto;
    display: block; 
}


#ajalabsLogo {
    height: 50px; 
    width: auto;
}
#cbLogo {
    height: 40px; 
    width: auto;
}


.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex-grow: 1; 
}

.header-section {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 20px; 
}
.header-icon {
    font-size: 3em;
    color: #007bff;
    margin-bottom: 10px;
}
.header-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    color: #003366;
    margin-bottom: 5px;
}
.header-section p {
    font-size: 1.1em;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

.main-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.form-panel {
    flex: 2;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.results-display-panel {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    color: #007bff;
    margin-top: 0;
    margin-bottom: 5px;
}
.form-header p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 25px;
}
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.form-group.full-width {
    flex-basis: 100%;
}
.form-group label {
    font-size: 0.9em;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}
.form-group label i {
    margin-right: 8px;
    color: #007bff;
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.95em;
    font-family: 'Open Sans', sans-serif;
    box-sizing: border-box;
    background-color: #f8f9fa;
}
.form-group input::placeholder {
    color: #aaa;
}
.form-group input:focus,
.form-group select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.25);
    background-color: #fff;
}
.calculate-btn {
    background-color: #ff9900;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.2s ease-in-out;
}
.calculate-btn:hover {
    background-color: #e68a00;
}

.results-state { text-align: center; }
.results-state.hidden { display: none; }
.results-icon-placeholder i {
    font-size: 4em;
    color: #007bff;
    margin-bottom: 20px;
}
.results-display-panel h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4em;
    color: #333;
    margin-bottom: 10px;
}
.results-display-panel > p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 10px;
}

#resultOutput {
    text-align: left;
}
#resultOutput h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}
#resultOutput ul#additionalBenefitsBreakdown {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px;
}
#resultOutput ul#additionalBenefitsBreakdown li {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}
#resultOutput ul#additionalBenefitsBreakdown li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #28a745;
    position: absolute;
    left: 0;
    top: 2px;
}
#resultOutput p {
    margin-bottom: 12px;
    font-size: 1em;
}
#resultOutput p strong {
    color: #003366;
}
#resultOutput span#prd,
#resultOutput span#roi-value {
    font-weight: bold;
    color: #007bff;
}
#resultOutput span#l1 {
    font-style: italic;
    color: #555;
}
#resultOutput span#error-message {
    color: #dc3545;
    font-weight: bold;
}
#resultOutput a.demo-link {
    color: #007bff;
    text-decoration: underline;
    font-weight: bold;
}
#resultOutput a.demo-link:hover {
    color: #0056b3;
}


footer {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa; 
    border-top: 1px solid #dee2e6;
    margin-top: auto; 
    font-size: 0.9em;
    color: #6c757d;
}


/* Responsive Adjustments */
@media (max-width: 1200px) { /* desktops */
    .page-container {
        padding-left: 30px;
        padding-right: 30px;
    }
}
@media (max-width: 992px) { /* tabsl */
    .main-content {
        flex-direction: column;
    }
    .form-panel, .results-display-panel {
        flex: none;
        width: 100%;
        box-sizing: border-box;
    }
    .results-display-panel {
        margin-top: 30px;
    }
}
@media (max-width: 768px) { /* phones */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-group {
        margin-bottom: 15px;
    }
    .form-group:last-child {
        margin-bottom: 0;
    }
    .header-section h1 { font-size: 2em; }
    .header-section p { font-size: 1em; }
    #ajalabsLogo { height: 30px; }
    .top-bar { padding: 8px 15px; }
}
@media (max-width: 576px) { /* phones2 */
    .form-panel, .results-display-panel, .page-container {
        padding: 15px;
    }
     .header-section h1 { font-size: 1.8em; }
     .header-section p { font-size: 0.95em; }
     .calculate-btn { font-size: 1em; padding: 10px 15px;}
}