* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.loading {
    text-align: center;
}

.container h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 32px;
    color: #003d5c;
}

.description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.form-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #333;
    }

    .form-group input {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 16px;
        transition: border-color 0.3s;
    }

        .form-group input:focus {
            outline: none;
            border-color: #007BFF;
        }

button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
    transition: all 0.3s;
}

    button:hover {
        background-color: #0056b3;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,123,255,0.3);
    }

.roi-results-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.roi-table {
    width: 100%;
    max-width: 500px;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,128,96,0.1);
}

    .roi-table:hover {
        box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    }

body:not(.modal-open) .roi-table {
    transition: transform 0.3s, box-shadow 0.3s;
}

    body:not(.modal-open) .roi-table:hover {
        transform: translateY(-2px);
    }

.roi-table .top-section {
    background: linear-gradient(135deg, #003d5c 0%, #004d73 100%);
    color: white;
    padding: 30px;
}

.roi-table .row {
    margin-bottom: 20px;
}

    .roi-table .row:last-child {
        margin-bottom: 0;
    }

.roi-table .top-section .label {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
    display: inline-block;
}

.roi-table .top-section .value {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.roi-table .bottom-section {
    border-top: 6px solid #00cc00;
    padding: 30px;
    background-color: white;
}

    .roi-table .bottom-section .label {
        font-size: 14px;
        color: #555;
        font-weight: 600;
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        display: inline-block;
    }

    .roi-table .bottom-section .value {
        font-size: 24px;
        font-weight: 700;
        color: #009900;
        letter-spacing: -0.5px;
    }


.tooltip-wrapper {
    cursor: help;
    display: inline-block;
}

.info-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    vertical-align: middle;
    opacity: 0.7;
    transition: opacity 0.2s;
}

    .info-icon:hover {
        opacity: 1;
    }

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    animation: modalFadeIn 0.15s ease-out;
}

    .modal .modal-content {
        background-color: #fff;
        padding: 24px 28px;
        width: 400px;
        max-width: 90vw;
        border-radius: 16px;
        position: relative;
        top: 50%;
        transform: translateY(-50%);
        margin: 0 auto;
        color: #333;
        text-transform: none;
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        border: 1px solid rgba(255,255,255,0.2);
        animation: modalSlideIn 0.15s ease-out;
        line-height: 1.6;
    }

    .modal .close-btn {
        font-size: 24px;
        font-weight: normal;
        cursor: pointer;
        position: absolute;
        right: 6px;
        top: 6px;
        color: #666;
        transition: all 0.2s ease;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: transparent;
    }

        .modal .close-btn:hover {
            color: #333;
            background-color: rgba(0,0,0,0.05);
            transform: scale(1.1);
        }

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

@media (min-width: 1101px) {
    .form-wrapper {
        display: flex;
        align-items: start;
        justify-content: center;
        gap: 20px;
    }

    .form-wrapper,
    .disclosures {
        max-width: 720px;
        margin: 0 auto;
    }

    .form-section,
    .roi-results-container {
        margin: 0;
        width: 100%;
    }

    .roi-results-container {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 20px 15px;
    }

    .container h2 {
        font-size: 26px;
    }

    .form-section {
        padding: 20px;
    }

    .roi-table .top-section,
    .roi-table .bottom-section {
        padding: 20px;
    }

        .roi-table .top-section .value {
            font-size: 18px;
        }

        .roi-table .bottom-section .value {
            font-size: 20px;
        }

    .modal .modal-content {
        width: auto;
        margin: 0 16px;
        padding: 20px 24px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.roi-table {
    animation: fadeIn 0.6s ease-out;
}
