﻿body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: #F5F7FB;
}

/* HEADER */
.header {
    height: 60px;
    background: #ff9d01;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    color: white;
}

    .header .logo {
        font-size: 20px;
        font-weight: 600;
    }

    .header .nav-right a {
        color: white;
        margin-left: 20px;
        text-decoration: none;
        font-size: 15px;
    }

/* PAGE TITLE */
.page-title {
    text-align: center;
    margin-top: 30px;
}

    .page-title h2 {
        font-size: 26px;
        font-family: Poppins, sans-serif;
        margin: 0;
    }

    .page-title p {
        margin: 5px 0 25px;
        color: #555;
    }

/* CARD */
.card {
    width: 800px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin: auto;
    margin-bottom: 40px;
}

/* FORM */
.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        font-size: 15px;
        font-weight: 600;
        display: block;
        margin-bottom: 6px;
    }

.info-icon {
    font-size: 14px;
    margin-left: 5px;
    cursor: pointer;
    color: #1F3BB3;
}

.form-group input {
    width: 100%;
    height: 44px;
    padding: 10px;
    border: 1px solid #E1E1E1;
    border-radius: 6px;
    font-size: 15px;
}

    .form-group input:focus {
        border-color: #FF9D01;
        outline: none;
    }

/* BUTTONS */
.button-bar {
    text-align: center;
    margin-top: 25px;
}

.btn-primary {
    background: #FF9D01;
    color: white;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
}

    .btn-primary:hover {
        background: #e88900;
    }

.btn-reset {
    background: transparent;
    color: #1F3BB3;
    border: none;
    margin-left: 20px;
    font-size: 14px;
    cursor: pointer;
}

/* POPUP OVERLAY */
/* POPUP OVERLAY */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.40);
    z-index: 999;
    backdrop-filter: blur(2px);
}

/* POPUP BOX */
.popup-box {
    background: #FFF;
    width: 420px;
    margin: 120px auto;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.20);
    overflow: hidden;
    animation: fadeIn 0.25s ease-out;
}

/* POPUP HEADER */
.popup-header {
    background: #1F2937;
    color: white;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-close {
    cursor: pointer;
    font-size: 18px;
}

.popup-body {
    padding: 25px;

}

    .popup-body h3 {
        font-size: 17px;
        margin-bottom: 25px;
        font-family: Poppins, sans-serif;
    }

/* CHECKBOX GROUP */

/* Modern Checkbox Group */
.checkbox-group {
    margin-top: 10px;
    margin-left: 10px;
}

.checkbox-item {
    position: relative;
    padding-left: 30px;
    padding-top: 5px;
    margin-bottom: 18px;
    font-size: 15px;
    cursor: pointer;
    display: block;
    user-select: none;
}

    /* Hide default checkbox */
    .checkbox-item input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

    /* Custom checkbox style */
    .checkbox-item .checkmark {
        position: absolute;
        left: 0;
        top: 2px;
        height: 20px;
        width: 20px;
        background-color: #ffffff;
        border: 2px solid #1F3BB3;
        border-radius: 4px;
        transition: all 0.2s ease;
    }

    /* When checked */
    .checkbox-item input:checked + .checkmark {
        background-color: #1F3BB3;
        border-color: #1F3BB3;
    }

    /* Tick mark */
    .checkbox-item .checkmark:after {
        content: "";
        position: absolute;
        display: none;
    }

    .checkbox-item input:checked + .checkmark:after {
        display: block;
    }

    /* Tick shape */
    .checkbox-item .checkmark:after {
        left: 6px;
        top: 2px;
        width: 6px;
        height: 12px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }


/* POPUP FOOTER */
.popup-footer {
    padding: 18px;
    text-align: center;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    font-family: Poppins, sans-serif;
}

/* ANIMATION */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.required {
    color: red;
    font-weight: bold;
}

.error {
    border: 1px solid red !important;
    background: #fff6f6;
}

    .error:focus {
        outline: none;
    }

.app-footer {
    margin-top: 40px;
    padding: 20px 10px;
    text-align: center;
    background: #F7F9FF;
    border-top: 1px solid #E2E6F0;
    font-family: Inter, Arial, sans-serif;
}

    .app-footer .footer-links {
        margin-bottom: 6px;
        font-size: 14px;
    }

        .app-footer .footer-links a {
            color: #1F3BB3;
            text-decoration: none;
            font-weight: 600;
            margin: 0 5px;
        }

            .app-footer .footer-links a:hover {
                text-decoration: underline;
            }

    .app-footer .footer-copy {
        font-size: 12px;
        color: #666;
    }


/* Two Column Container */
.two-column {
    display: flex;
    gap: 25px;
    margin-top: 20px;
    align-items: flex-start;
}

/* Left + Right Columns */
.left-column,
.right-column {
    flex: 1;
}

/* Section Title */
.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1F3BB3;
    margin-bottom: 15px;
    border-bottom: 1px solid #E2E6F0;
    padding-bottom: 8px;
}

/* Vertical Divider */
.vertical-divider {
    width: 1px;
    background-color: #E2E6F0;
    margin: 0 10px;
}

/* Mobile Responsive Layout */
@media (max-width: 768px) {
    .two-column {
        flex-direction: column;
    }

    .vertical-divider {
        display: none;
    }
}


/* PF Impact Checkbox container */
.pf-impact-box {
    margin: 20px 0 10px 0;
    padding: 10px;
    background: #F8FAFF;
    border: 1px solid #E2E6F0;
    border-radius: 8px;
}

/* Styled Checkbox */
.pf-checkbox {
    font-size: 15px;
    font-weight: 600;
    color: #1E2A4A;
    display: flex;
    align-items: center;
    cursor: pointer;
}

    /* Hide default checkbox */
    .pf-checkbox input[type="checkbox"] {
        display: none;
    }

    /* Custom checkmark box */
    .pf-checkbox .checkmark {
        width: 18px;
        height: 18px;
        border: 2px solid #1F3BB3;
        border-radius: 4px;
        margin-right: 10px;
        display: inline-block;
        position: relative;
    }

    /* Checkmark tick */
    .pf-checkbox input[type="checkbox"]:checked + .checkmark::after {
        content: "";
        position: absolute;
        left: 4px;
        top: 0px;
        width: 6px;
        height: 12px;
        border: solid #1F3BB3;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }
.pf-questions-box {
    margin-top: 15px;
    padding: 15px;
    background: #F0F4FF;
    border: 1px solid #CCD8FF;
    border-radius: 8px;
}

/* Title */
.pf-title {
    font-size: 16px;
    font-weight: 700;
    color: #1F3BB3;
    margin-bottom: 15px;
}

/* Each Question */
.pf-question {
    margin-bottom: 18px;
}

.pf-question label {
    font-weight: 600;
    color: #1E2A4A;
}

/* Radio item container */
.radio-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14.5px;
    font-weight: 600;
    color: #1A2B5A;
    cursor: pointer;
}

    /* Hide default radio */
    .radio-item input[type="radio"] {
        display: none;
    }

/* Outer circle */
.radio-mark {
    width: 18px;
    height: 18px;
    border: 2px solid #1F3BB3;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

/* Inner dot animation */
.radio-item input[type="radio"]:checked + .radio-mark::after {
    content: "";
    width: 10px;
    height: 10px;
    background-color: #1F3BB3;
    border-radius: 50%;
    position: absolute;
    left: 3px;
    top: 3px;
    transform: scale(1);
    transition: all 0.2s ease;
}

/* Hover effect */
.radio-item:hover .radio-mark {
    border-color: #3D4FEA;
}

/* Radio group layout */
.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 5px;
}


/* Option card container */
.option-card-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

/* Card style button */
.option-card {
    padding: 10px 25px;
    border: 2px solid #C7D2FE;
    border-radius: 10px;
    background: #FFFFFF;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #1F3BB3;
    transition: all 0.2s ease-in-out;
    user-select: none;
    box-shadow: 0 2px 4px rgba(31, 59, 179, 0.05);
}

/* Hover effect */
.option-card:hover {
    border-color: #1F3BB3;
}

/* Selected card */
.option-card.selected {
    background: #1F3BB3;
    color: #FFFFFF;
    border-color: #1F3BB3;
    box-shadow: 0 3px 8px rgba(31, 59, 179, 0.2);
}
/* Accordion Container */
.impact-accordion {
    margin-top: 25px;
}

/* Accordion Header */
.accordion-header {
    background: #F4F6FF;
    padding: 12px 18px;
    border: 1px solid #DCE3FF;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Error highlight */
.impact-error {
    background: #FFECEC !important;
    border-color: #FF5A5A !important;
}

/* Checkbox */
.impact-enable {
    margin-right: 12px;
}

    .impact-enable input {
        display: none;
    }

.checkmark-impact {
    width: 18px;
    height: 18px;
    border: 2px solid #1F3BB3;
    border-radius: 4px;
    display: inline-block;
    position: relative;
}

.impact-enable input:checked + .checkmark-impact {
    background: #1F3BB3;
}

    .impact-enable input:checked + .checkmark-impact::after {
        content: "";
        width: 6px;
        height: 12px;
        border: solid white;
        border-width: 0 2px 2px 0;
        position: absolute;
        left: 4px;
        top: 1px;
        transform: rotate(45deg);
    }

/* Accordion Title */
.accordion-title {
    flex-grow: 1;
    font-size: 16px;
    font-weight: 700;
    color: #1F3BB3;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Arrow */
.accordion-arrow {
    transition: 0.2s ease-in-out;
    font-size: 16px;
}

    .accordion-arrow.open {
        transform: rotate(90deg);
    }

/* Accordion Body */
.accordion-body {
    display: none;
    padding: 15px;
    background: #FAFBFF;
    border: 1px solid #DCE3FF;
    border-radius: 8px;
    margin-bottom: 12px;
}

    .accordion-body.disabled {
        opacity: 0.4;
        pointer-events: none;
    }

/* Impact Question */
.impact-question {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: #213A6F;
}

/* Option Cards */
.option-card-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.option-card {
    padding: 10px 24px;
    border: 2px solid #C7D2FE;
    border-radius: 10px;
    background: #FFFFFF;
    cursor: pointer;
    font-weight: 600;
    color: #1F3BB3;
    transition: 0.2s;
}

    .option-card.selected {
        background: #1F3BB3;
        color: white;
        border-color: #1F3BB3;
    }

/* ===== IMPACT TEXTBOX DESIGN ===== */

.impact-input {
    margin-top: 12px;
    margin-bottom: 10px;
}

.impact-input label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.impact-input input[type="number"],
.impact-input input[type="text"] {
    width: 80%;
    padding: 10px 12px;
    border: 1.5px solid #cdd6f3;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    outline: none;
    transition: 0.2s ease;
}

/* Focus effect */
.impact-input input:focus {
    border-color: #1f3bb3;
    box-shadow: 0 0 0 3px rgba(31, 59, 179, 0.15);
}

/* Disabled / hidden states */
.disabled .impact-input input {
    background: #f3f5ff;
    border-color: #e0e6ff;
    cursor: not-allowed;
}

/* Placeholder style */
.impact-input input::placeholder {
    color: #9aa4c1;
}

/* Narrow spacing inside accordion */
.accordion-body .impact-input {
    padding-left: 4px;
    padding-right: 4px;
}

/* SLIDER CONTAINER */
.bonus-slider-container {
    width: 100%;
    padding: 15px 10px;
    background: #f7faff;
    border-radius: 10px;
    border: 1px solid #dce5ff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-top: 10px;
}

/* SLIDER INPUT */
#bonus_percent_slider {
    width: 100%;
    height: 6px;
    appearance: none;
    background: linear-gradient(90deg, #1F3BB3, #4a6cff);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

    /* SLIDER THUMB */
    #bonus_percent_slider::-webkit-slider-thumb {
        appearance: none;
        width: 20px;
        height: 20px;
        background: #ffffff;
        border: 3px solid #1F3BB3;
        border-radius: 50%;
        cursor: grab;
        transition: 0.2s ease;
    }

        #bonus_percent_slider::-webkit-slider-thumb:active {
            transform: scale(1.15);
            cursor: grabbing;
        }

/* VALUE DISPLAY */
.bonus-slider-value {
    margin-top: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #1F3BB3;
}

.disclaimer-note {
    font-size: 12px;
    color: #666; /* subtle grey text */
    margin: 10px 0 25px;
    text-align: left;
    line-height: 1.4;
    opacity: 0.75; /* very soft */
}