
.calculator .modal-calculator {
    z-index: 1060;
    padding-top: 85px;
}

.modal-header {
    border-bottom: 0;
}

/* Calculator Cards - Multi-step design */
.calculator-card {
    display: none;
    min-height: 300px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.calculator-card.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.card1-content {
    display: flex;
    gap: 0;
    align-items: stretch;
    min-height: 400px;
}

.card1-left {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 0;
    padding: 2rem;
    position: relative;
    background-color: #F6F0E2;
    border-bottom-left-radius: 8px;
    border-top-left-radius: 8px;
}

.card1-left::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #DA2F2D;
}

.card1-right {
    flex: 0 0 50%;
    max-width: 50%;
    background-color: transparent;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#card1 .form-group {
    margin-bottom: 2rem;
}

label {
    font-size: 21px;
    color: #DA2F2D;
}

#card1 .calculator-dropdown {
    width: 100%;
    text-align: left;
    background: white;
    border: 1px solid #6F7171;
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 16px;
    color: #000;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.card1-image-container {
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-image-btn-container {
    text-align: center;
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card1-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Unified Button Styles - Previous and Next */
.btn-previous,
.btn-next {
    background: #000000;
    color: white;
    border: 2px solid #000000;
    border-radius: 24px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    flex: 0 0 calc(50% - 6px);
    max-width: calc(50% - 6px);
}

.btn-previous:hover,
.btn-next:hover {
    background: #000000;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-next:disabled {
    background: transparent;
    color: #cccccc;
    border-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-next:disabled:hover {
    background: transparent;
    color: #cccccc;
    border-color: #cccccc;
    transform: none;
    box-shadow: none;
}

.btn-previous svg,
.btn-next svg {
    transition: transform 0.2s ease;
}

.btn-previous:hover svg {
    transform: translateX(-2px);
}

.btn-next:hover:not(:disabled) svg {
    transform: translateX(2px);
}

/* Full-width button style for Back to Calculator */
.btn-full-width {
    flex: 1 1 100% !important;
    max-width: 100% !important;
}

/* Calculator actions container */
.calculator-actions {
    padding-top: 1.5rem;
    border-top: none;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 12px;
}



/* Card 2 - Use Case Selection (matching card2.svg) */
#card2 {
    display: none;
    background: white;
}

#card2.active {
    display: block;
}

#card2 .use-case-section h6 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

/* Data entry sections styling to match card2.svg */
#card2 .calculator-content {
    margin-top: 2rem;
    padding-top: 2rem;
}

/* Modal adjustments for card design */
.calculator .modal-calculator .modal-body {
    padding: 2rem;
    background: #ffffff;
    position: relative;
    padding-bottom: 0px;
    padding-top: 0px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #card1 .form-group label {
        font-size: 16px;
    }

    .btn-next {
        padding: 10px 24px;
        font-size: 15px;
    }
}

.btn-calculate {
    width: 100%;
    max-width: 200px;
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #DA2F2D 0%, #0056b3 100%);
    border: none;
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-calculate:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.btn-calculate:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.btn-calculate:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Calculator Results Area */
.calculator-results {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.calculator-results h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Modal Footer Enhancement */
.modal-footer {
    padding: 1.5rem;
    border-radius: 0 0 12px 12px;
    border-top: 0px;
}

/* Response Design for buttons */
@media (max-width: 768px) {
    .btn-calculate {
        max-width: 100%;
    }

    .calculator-actions {
        text-align: center;
    }
}

/* Floating Button Enhancement */
.calculator-floating-btn {
    position: fixed;
    right: 100px;
    width: auto;
    height: auto;
    background-color: transparent;
    border-radius: 26px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    border: none;
    outline: none;
    padding: 0;
}

.calculator-floating-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.calculator-floating-btn:active {
    transform: scale(0.98) translateY(0px);
    transition: all 0.1s ease;
}

.calculator-floating-btn:focus {
    outline-offset: 3px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 4px rgba(0, 123, 255, 0.4);
}

.calculator-floating-btn svg {
    width: 153px;
    height: 52px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.calculator-floating-btn:hover svg {
    transform: scale(1.02) rotate(0.5deg);
}

/* Enhanced pulse animation for attention */
@keyframes pulse {
    0% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(0, 123, 255, 0.7);
    }

    70% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 12px rgba(0, 123, 255, 0);
    }

    100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

.calculator-floating-btn.pulse {
    animation: pulse 2.5s infinite;
}

.calculator .modal-footer .cmp-calculator__footer-div {
    width: 100%;
}

.calculator .cmp-calculator__footer-div label {
    font-size: 14px;
    position: relative;
    margin-bottom: 0;
}

.calculator label#showcalculator-label {
    padding-left: 30px;
}

/* Enhanced modal styles */
.calculator .modal-calculator .modal-dialog {
    max-width: 850px;
    margin: 1.75rem auto;
}

.calculator .modal-calculator .modal-content {
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e5e5;
    background: #ffffff;
}

.calculator .modal-calculator .modal-header {
    padding: 1.5rem 2rem;
}

.calculator .modal-calculator .modal-header .modal-title {
    font-size: 24px;
}

.calculator .modal-calculator .modal-footer {
    padding: 1.5rem 2rem;
    border-radius: 0 0 12px 12px;
}

/* Enhanced Responsive design for mobile */
@media (max-width: 768px) {
    .calculator-floating-btn {
        bottom: 20px;
        right: 20px;
        transform: scale(0.85);
    }

    .calculator-floating-btn svg {
        width: 130px;
        height: 44px;
    }

    .calculator .modal-calculator {
        padding-top: 20px;
    }

    .calculator .modal-calculator .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .calculator .modal-calculator .modal-header,
    .calculator .modal-calculator .modal-body,
    .calculator .modal-calculator .modal-footer {
        padding: 1.5rem;
    }

    .use-case-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .use-case-right {
        flex: none;
        max-width: 100%;
    }

    .right-image-container {
        max-width: 280px;
        margin: 0 auto;
    }

    .calculator-section {
        padding: 1.5rem;
    }

    .calculator-section h4 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .calculator-floating-btn {
        transform: scale(0.75);
        bottom: 16px;
        right: 16px;
    }

    .calculator-floating-btn svg {
        width: 115px;
        height: 39px;
    }

    .calculator .modal-calculator .modal-header,
    .calculator .modal-calculator .modal-body,
    .calculator .modal-calculator .modal-footer {
        padding: 1rem;
    }

    .calculator .modal-calculator .modal-header .modal-title {
        font-size: 20px;
    }

    .calculator .form-group label {
        font-size: 14px;
    }

    .calculator-dropdown,
    .calculator-section .form-control {
        font-size: 15px;
        padding: 10px 14px;
        height: 44px;
    }

    .calculator-section .btn-primary {
        font-size: 15px;
        padding: 10px 20px;
        height: 44px;
    }

    .calculator-section {
        padding: 1.25rem;
    }

    .right-image-container {
        max-width: 240px;
        padding: 12px;
    }
}

.calculator .cmp-calculator__checkbox-style {
    border: 1px solid #000;
    width: 20px;
    height: 20px;
    background: 0 0;
    cursor: pointer;
    position: absolute;
    left: 0;
    top: -5px;
}

.calculator input[type=checkbox],
input[type=radio] {
    box-sizing: border-box;
    padding: 0;
}

.calculator .cmp-calculator__footer-div label input {
    position: absolute;
    opacity: 0;
}

.calculator .modal-footer .cmp-calculator__footer-div label input:checked+.cmp-calculator__checkbox-style:before {
    display: inline-block;
}
    
.calculator input[type="checkbox"] {
    width: auto;
    position: absolute;
    z-index: -1;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    opacity: 0;
}


.use-case-checkbox {
    border: 1px solid black;
    border-radius: 2px;
    background-color: white;
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 10px;
    position: relative;
}
.checkbox-body:has(input:checked) span:first-of-type::before {
    content: url("../../../../../content/dam/thingspace-portal/solutions/icons/square-check-white.svg");
    left: -1px;
    top: -1px;
    border-radius: 2px;
    height: 18px;
    width: 18px;
    position: absolute;
    display: block;
    color: white;

    background: black;
}
*/
/* Enhanced Dropdown Styles - Matching SVG Design */
.calculator .form-group {
    margin-bottom: 1.5rem;
}

/* Industry Question Styling */
.calculator .modal-body>.form-group:first-child {
    margin-bottom: 2rem;
}

.calculator .modal-body>.form-group:first-child::before {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Calculator Dropdown Styles */
.calculator-dropdown {
    margin-bottom: 0;
    font-size: 16px;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    width: 100%;
    height: 48px;
    font-family: inherit;
    color: #333333;
}

.calculator-dropdown:focus {
    border-color: #DA2F2D;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background-color: #ffffff;
}

.calculator-dropdown:hover {
    border-color: #cccccc;
}

.calculator-dropdown option {
    padding: 8px 12px;
    font-size: 16px;
    color: #333333;
}

/* Calculator Content Sections - Enhanced */
.calculator-content {
    min-height: 200px;
    padding: 1.5rem 0;
}

.calculator-section {
    background-color: #fafafa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    margin-bottom: 1.5rem;
}

.calculator-section:last-child {
    margin-bottom: 0;
}

.calculator-section h4 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 20px;
}

.calculator-section .form-group {
    margin-bottom: 1.5rem;
}

.calculator-section .form-group:last-child {
    margin-bottom: 0;
}

.calculator-section .form-control {
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #ffffff;
    width: 100%;
    height: 48px;
}

.calculator-section .form-control:focus {
    border-color: #DA2F2D;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background-color: #ffffff;
}

.calculator-section .form-control:hover {
    border-color: #cccccc;
}

.calculator-section .btn-primary {
    background-color: black;
    border-color: black;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 24px;
    transition: all 0.3s ease;
    font-size: 16px;
    min-width: 140px;
    height: 48px;
}

.calculator-section .btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.3);
}

.calculator-section .btn-primary:active {
    transform: translateY(0);
}

.calculation-result {
    margin-top: 1.5rem;
}

.calculation-result .alert {
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 0;
    border-width: 1px;
}

.calculation-result .alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.calculation-result .alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.calculation-result .alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.calculation-result h5 {
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 18px;
}

.calculation-result p {
    margin-bottom: 8px;
    font-size: 15px;
}

.calculation-result p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 16px;
}

/* Basic checkbox styling */
.use-case-selection {
    margin: 1.5rem 0;
}

.use-case-selection label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 16px;
    cursor: pointer;
}

.use-case-selection input[type="checkbox"] {
    margin-right: 8px;
}

/* Multiple Calculator Sections - Enhanced */
.calculator-sections-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calculator-sections-container .calculator-section {
    border-left: 4px solid #DA2F2D;
    margin-bottom: 0;
    position: relative;
}

.calculator-sections-container .calculator-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -4px;
    right: -1px;
    height: 4px;
    background: linear-gradient(90deg, #DA2F2D 0%, rgba(0, 123, 255, 0.1) 100%);
    border-radius: 2px 2px 0 0;
}

/* Enhanced Responsive Design for checkbox styles */
@media (max-width: 768px) {
    .use-case-content {
        flex-direction: column;
        gap: 20px;
    }

    .use-case-right {
        flex: none;
        max-width: 100%;
    }

    .right-image-container {
        max-width: 250px;
        margin: 0 auto;
    }
}

/* Use Case Section Layout for Card 1 */
#card1 .use-case-section {
    margin-top: 2rem;
    padding: 0;
    border-top: none;
}

#card1 .use-case-section h6 {
    margin-bottom: 1rem;
    font-size: 18px;
    font-weight: 600;
    color: #DA2F2D;
    line-height: 1.4;
    text-align: left;
}

/* Basic checkbox styling for Card 1 */
#card1 .use-case-selection {
    margin: 1rem 0;
}

#card1 .use-case-selection label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 16px;
    cursor: pointer;
    text-align: left;
    color: #000000;
}

#card1 .use-case-selection input[type="checkbox"] {
    margin-right: 8px;
}

/* Responsive adjustments for Card 1 */
@media (max-width: 768px) {
    .card1-content {
        flex-direction: column;
        gap: 0;
    }

    .card1-left {
        padding: 1.5rem;
    }

    .card1-left::after {
        display: none;
    }

    .card1-right {
        flex: none;
        max-width: 100%;
        padding: 1.5rem;
    }

    .card1-image-container {
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .use-case-section {
        padding: 15px 0;
    }

    .use-case-section h6 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .right-image-container {
        max-width: 200px;
        padding: 10px;
    }
}

/* Enhanced Close Button */
.calculator .modal-header .close {
    padding: 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: 300;
    color: #666666;
    opacity: 1;
    transition: all 0.3s ease;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calculator .modal-header .close:hover {
    color: #000000;
    background-color: #f5f5f5;
    transform: scale(1.1);
}

.calculator .modal-header .close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Enhanced Typography */
.calculator .modal-body p {
    font-size: 16px;
    line-height: 1.5;
    color: #666666;
    margin-bottom: 1rem;
}

.calculator .modal-body .text-muted {
    color: #999999 !important;
    font-size: 14px;
}

/* Loading and transition states */
.calculator .modal-body .fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
.calculator .form-control:focus,
.calculator .calculator-dropdown:focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Improved spacing and layout */
.calculator .modal-body>*:first-child {
    margin-top: 0;
}

.calculator .modal-body>*:last-child {
    margin-bottom: 0;
}

/* Card 2 - ROI Calculator 4-Div Layout (based on card2.svg dimensions: 828x730) */
#card2 {
    display: none;
    background: white;
    min-height: 580px;
    /* Proportional to SVG height (730px scaled down) */
    border-radius: 8px;
}

#card2.active {
    display: block;
}

/* Use Case Selection Toggle (Top Section) - matches SVG header area */
.use-case-toggle-section {
    background: #F6F6F6;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 40px;
    /* Matches SVG proportions */
}

.selected-use-cases {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    align-items: stretch;
    width: 100%;
    height: 34px;
    justify-content: center;
}

.use-case-tag {
    background: #f8f9fa;

    border-radius: 4px;
    padding: 12px 8px;
    font-size: 14px;
    font-weight: bold;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    text-align: center;
}

/* Dynamic width classes based on number of selected use cases */
.selected-use-cases.one-selected .use-case-tag {
    flex: 1;
    max-width: 100%;
}

.selected-use-cases.two-selected .use-case-tag {
    flex: 0 0 50%;
    max-width: 50%;
}

.selected-use-cases.three-selected .use-case-tag {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

/* First button - left rounded corners */
.input-group {
    border-radius: 8px 0 0 8px;
}

.use-case-tag:last-child {
    padding-left: 8px;
}
.use-case-tag:first-child {
    padding-right: 8px;
}


/* Active state - white background */
.use-case-tag.active {
    background: white;
    color: #333;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transform: none;
}

/* Inactive state - light grey appearance */
.use-case-tag.inactive {
    background: #f8f9fa;
    color: #6c757d;
}

.use-case-tag:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.use-case-tag.active:hover {
    background: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.use-case-tag.inactive:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

/* Hide the remove button since we want clean button styling */
.use-case-tag .remove-use-case {
    display: none;
}

/* Main Content Grid Layout - exact proportions from card2.svg */
.calculator-main-content {
    display: grid;
    grid-template-columns: 248px 1fr;
    gap: 20px;
    /* height: 500px; */
    /* align-items: stretch; */
}

/* Left Section: Inputs and Calculate Button - matches SVG left column */
.calculator-inputs-section {
    grid-column: 1;
    grid-row: 1 / 3;
    /* Spans both rows like in SVG */
    background: #F6F0E2;
    /* Cream/beige background from SVG */
    padding: 24px 20px;
    /* Increased padding to match SVG proportions */
    border-radius: 12px;
    /* Matches SVG rounded corners */
    display: flex;
    flex-direction: column;
    gap: 18px;
    /* Increased gap for better spacing */
    position: relative;
    min-width: 248px;
    /* Fixed width matching SVG */
}

/* Remove vertical divider for cleaner look matching SVG */

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 12px;
}

.input-group label {
    font-size: 15px;
    /* Increased font size */
    font-weight: 500;
    color: #6F7171;
    margin-bottom: 0;
    line-height: 1.3;
    /* Better line height */
}

/* Label color overrides for specific IDs */
.input-group label#black {
    color: #000000;
    font-weight: 600;
}

.input-group label#grey {
    color: #6F7171;
    font-size: 13px;
    font-weight: 400;
}

.input-group input {
    padding: 12px 14px;
    /* Increased padding */
    border: 1px solid #6F7171;
    border-radius: 6px;
    /* Larger radius */
    font-size: 16px;
    background: white;
    transition: border-color 0.2s ease;
    min-height: 20px;
    /* Ensure consistent height */
}

.input-group input:focus {
    outline: none;
    border-color: #DA2F2D;
    box-shadow: 0 0 0 3px rgba(238, 0, 0, 0.1);
    /* Larger shadow */
}

.calculator-button-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Increased gap */
    margin-top: auto;
    padding-top: 10px;
    /* Add some top padding */
}

.calculator-button-actions .btn {
    padding: 12px 24px;
    /* Increased padding */
    border-radius: 24px;
    /* Larger radius */
    font-size: 15px;
    /* Increased font size */
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-height: 44px;
    /* Ensure consistent button height */
}

.calculator-button-actions .btn-primary {
    background: black;
    color: white;
}

.calculator-button-actions .btn-primary:hover {
    background: black;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px black;
}

.calculator-button-actions .btn-secondary {
    background: transparent;
    color: black;
    text-decoration: underline;
}

#howCalculated:active {
    color: black;
    background: none;
    border-color: none;
}


/* Right Top Section: Investments Display - matches SVG top right */
.investments-display-section {
    grid-column: 2;
    grid-row: 1;
    background: #F6F0E2;
    border-radius: 12px;
    /* Matches SVG rounded corners */
    padding: 20px;
    /* Increased padding for better proportions */
    display: flex;
    flex-direction: column;
    /* min-height: 230px; */
    /* Better height proportion from SVG */
}

.investments-display-section h3 {
    font-size: 16px;
    /* Slightly larger for better visibility */
    font-weight: 100;
    color: #EE0000;
    margin: 0 0 16px 0;
    /* Increased margin */
    padding-bottom: 8px;

}

.investment-results {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
}

.investment-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    flex-direction: column;
    /* Increased padding */
}

.investment-item.total {
    padding-top: 12px;
    /* Increased padding */
    margin-top: 8px;
    font-weight: 600;
}

.investment-label {
    font-size: 14px;
    /* Increased font size */
    color: #666;
}

.investment-value {
    font-size: 20px;
    /* Increased font size */
    font-weight: bold;
    color: #333;
}

.investment-item.total .investment-label,
.investment-item.total .investment-value {
    color: #DA2F2D;
    font-weight: 600;
    font-size: 15px;
    /* Slightly larger for totals */
}

/* Right Bottom Section: Return Information with Consultation - matches SVG bottom right */
.returns-information-section {
    grid-column: 2;
    grid-row: 2;
    /* Increased padding for better proportions */
    display: flex;
    flex-direction: column;
    min-height: 230px;
    /* Better height proportion from SVG */
}
.returns-info {
    background: #F6F0E2;
    border-radius: 12px;
    /* Matches SVG rounded corners */
    padding: 20px;
}

.returns-information-section h3 {
    font-size: 16px;
    font-weight: 100;
    color: #DA2F2D;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
}

.returns-results {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    justify-content: space-between;
}

.return-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    flex-direction: column;
    min-width: 200px;
}

.returns-results .grid-col-1 {
    grid-column: 1;
}
.returns-results .grid-col-2 {
    grid-column: 2;
}

.return-item.highlight {
    background: #f8f9fa;
    padding: 12px 14px;
    /* Increased padding */
    border-radius: 6px;
    /* Slightly larger radius */
    border-left: 4px solid #EE0000;
    /* Thicker accent line */
    margin-top: 6px;
}

.return-label {
    font-size: 14px;
    /* Increased font size */
    color: #666;
}

.return-value {
    font-size: 32px;
    /* Increased font size */
    font-weight: bold;
    color: #333;
}

.return-item.highlight .return-label,
.return-item.highlight .return-value {
    color: #DA2F2D;
    font-weight: 600;
    font-size: 15px;
    /* Slightly larger for highlighted items */
}

.consultation-section {
    margin-top: -10px;
    text-align: center;
    background: #EE0000;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
}

.btn-consultation {
    background: white;
    color: black;
    /* border: 1px solid black; */
    padding: 10px 24px;
    border-radius: 26px;
    font-size: 14px;
    font-weight: bold;
    /* cursor: pointer; */
    transition: all 0.2s ease;
    /* width: 100%; */
    margin: 8px;
}

.btn-consultation:hover {
    background: white;
    /*
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    */
}

.btn:disabled {
    cursor: default;
}

.consultation-note {
    font-size: 12px;
    /* Slightly larger */
    color: #666;
    margin: 0;
    line-height: 1.4;
    /* Better line height */
}

/* Responsive adjustments for card2 */
@media (max-width: 992px) {
    .calculator-main-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 16px;
    }

    .calculator-inputs-section {
        grid-column: 1;
        grid-row: 1;
    }

    .investments-display-section {
        grid-column: 1;
        grid-row: 2;
    }

    .returns-information-section {
        grid-column: 1;
        grid-row: 3;
    }
}

@media (max-width: 576px) {
    .use-case-toggle-section {
        padding: 12px;
        margin-bottom: 16px;
    }

    .calculator-main-content {
        gap: 12px;
    }

    .calculator-inputs-section,
    .investments-display-section,
    .returns-information-section {
        padding: 16px;
    }

    .calculator-button-actions {
        gap: 8px;
    }
}

/* Visual feedback for positive/negative ROI */
.return-item.positive .return-value,
.investment-item.positive .investment-value {
    color: #28a745;
}

.return-item.negative .return-value,
.investment-item.negative .investment-value {
    color: #dc3545;
}

.return-item.positive .return-label,
.investment-item.positive .investment-label {
    color: #28a745;
}

.return-item.negative .return-label,
.investment-item.negative .investment-label {
    color: #dc3545;
}

/* Calculation methodology modal styling */
.calculation-methodology {
    font-family: inherit;
}

.methodology-section {
    margin-bottom: 20px;
}

.methodology-section h5 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.methodology-section ul {
    margin: 0;
    padding-left: 20px;
}

.methodology-section li {
    margin-bottom: 8px;
    color: #666;
    line-height: 1.5;
}

.methodology-note {
    background: #f8f9fa;
    padding: 15px;
    border-left: 3px solid #DA2F2D;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.methodology-intro {
    padding-bottom: 10px;
}

/* Methodology modal z-index fix and proper scroll behavior */
#methodologyModal {
    z-index: 1070 !important;
}

#methodologyModal .modal-backdrop {
    z-index: 1069 !important;
}

#methodologyModal .modal-dialog {
    z-index: 1071 !important;
}

/* Ensure methodology modal appears above calculator modal */
.modal.show#methodologyModal {
    z-index: 1070 !important;
}

/* Preserve parent modal scroll when methodology modal is open */
body.modal-open {
    padding-right: 0 !important;
}

/* Ensure proper scroll behavior for nested modals */
#methodologyModal.modal {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Fix modal backdrop interference */
#methodologyModal .modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Methodology modal content styling */
.calculation-methodology {
    padding: 0;
}

.calculation-methodology h4 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.methodology-section {
    margin-bottom: 20px;
}

.methodology-section h5 {
    color: #DA2F2D;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.methodology-section ul {
    margin: 0;
    padding-left: 20px;
}

.methodology-section li {
    margin-bottom: 5px;
    line-height: 1.4;
}

.methodology-note {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #DA2F2D;
    font-size: 14px;
    line-height: 1.5;
}

/* No use cases selected placeholder */
.no-use-cases-selected {
    font-size: 14px;
    color: #999;
    font-style: italic;
    padding: 8px 0;
}

/* Calculator sections visibility and transitions */
.calculator-inputs-section>div {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.calculator-inputs-section>div.active {
    opacity: 1;
    transform: translateY(0);
    max-height: 1000px;
    /* Large enough value to accommodate content */
}

/* Initial state - hide all calculator sections */
.calculator-inputs-section .refrigeration,
.calculator-inputs-section .power,
.calculator-inputs-section .water-leak-detection-calculator {
    display: block;
    /* Change from display:none to allow transitions */
    opacity: 0;
    max-height: 0;
    transform: translateY(10px);
}

/* Calculator button actions - initially hidden */
.calculator-inputs-section .calculator-button-actions {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

/* Show calculator button actions when active */
.calculator-inputs-section .calculator-button-actions.active {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
}

/* Methodology sections visibility and transitions */
.methodology-content-section>div {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.methodology-content-section>div.active {
    opacity: 1;
    transform: translateY(0);
    max-height: 2000px;
    /* Large enough value to accommodate methodology content */
}

/* Initial state - hide all methodology sections */
.methodology-content-section .refrigeration,
.methodology-content-section .power,
.methodology-content-section .water-leak-detection-calculator {
    display: block;
    /* Change from display:none to allow transitions */
    opacity: 0;
    max-height: 0;
    transform: translateY(10px);
}