@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

* {
    font-family: 'IBM Plex Sans', sans-serif;
    letter-spacing: 0.005px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url('https://cdn1.finhay.com.vn/vnsc-prod/1730361136565-research_bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
}

footer {
    position: relative;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 14px;
    padding: 16px 0;
    margin-top: auto;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


/* logo and quote */
.research {
    flex: 1;
    width: 1140px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;

    @media (max-width: 767px) {
        flex-direction: column;
        gap: 32px;
        width: auto;
        margin-bottom: 60px;
    }
}

.research__intro {
    max-width: 475px;
    display: flex;
    flex-direction: column;

    @media (max-width: 767px) {
        width: 75%;
    }
}

.research__quote {
    color: #A4A4AB;
    display: flex;
    flex-direction: column;
}

.research__quote-text {
    font-size: 20px;
    font-weight: 400;
    font-style: italic;
}

.research__quote-author {
    align-self: flex-end;
    font-size: 18px;
    font-weight: 600;
    text-align: right;
}

.research__quote-signature {
    align-self: flex-end;
    margin-top: 8px;
    margin-right: 40px;
}

/* form */
.research__form {
    position: relative;
    padding: 16px;
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-radius: 8px;
    
    /* Main form background */
    background: linear-gradient(180deg, #0067084D 0%, #011B034D 100%);
    
    /* Gradient border */
    border: 1px solid transparent;  /* Required for gradient border */
    border-image: linear-gradient(
        180deg,
        rgba(13, 43, 15, 1) 0%,
        rgba(10, 131, 18, 1) 50%,
        rgba(11, 43, 14, 1) 100%
    ) 1;  /* The '1' at the end defines the border-image-slice */

    @media (max-width: 767px) {
        width: 75%;
    }
}

.research__form-title {
    margin: 0 auto;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.research__form-heading {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.research__form-label {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.research__form-comparison {
    display: flex;
    flex-direction: column;
    margin-top: 12px;
    gap: 12px;
}

.research__form-comparison h3 {
    margin-bottom: 8px;
}

.research__form-group {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    background-color: #535353;
    border-radius: 4px;
}

.research__form-group--main {
    background-color: #00bd062e;
}

.research__form-group--main .research__form-label {
    color: #fff;
}

.research__form-group--main .select2-selection__rendered {
    font-weight: 600 !important;
}

.research__form-label {
    font-size: 12px;
    font-weight: 600;
    color: #A4A4AB;
}

.research__form-submit {
    margin-top: 24px;
    padding: 8px 16px;
    background-color: #00BD06;
    color: #000;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 20px;
    width: 100%;
    cursor: pointer;
    display: none;
}

.research__mask {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

/* progress */
.research__progress {
    flex-direction: column;
    align-items: center;
    color: #fff;
    gap: 16px;
    display: none;
    padding: 16px;
    background: linear-gradient(180deg, #0067084D 0%, #011B034D 100%);
    border-radius: 4px;
}

.research__progress-text {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: #A4A4AB;
    text-align: center;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.research__progress-timer {
    font-size: 14px;
    font-weight: 400;
    color: #A4A4AB;
    margin-top: 8px;
}

/* select2 */
.select2-selection.select2-selection--single {
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
}

.select2-selection__rendered {
    padding: 0 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.select2-selection__arrow {
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
}

.select2-container--classic .select2-dropdown--below {
    background-color: #535353 !important;
    top: -25px !important;
    border: none !important;
    z-index: 1000;
    width: 350px !important;
    margin-left: -12px;
}

.select2-container--classic .select2-search--dropdown .select2-search__field {
    background-color: #004802 !important;
    border: 1px solid #00BD06 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    padding: 6px !important;
    color: #fff !important;
}

/* .select2-container--classic .select2-search--dropdown .select2-search__field::focus {
    outline: none !important;
    border: #00BD06 !important;
} */

.select2-container--classic .select2-results__options {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.select2-container--classic .select2-results__options::-webkit-scrollbar {
    display: none;
}

.select2-results__options li {
    color: #fff !important;
}

.select2-container--classic .select2-results__option--disabled {
    color: #A4A4AB !important;
}

#matrixCanvas {
    background-color: black;
    border-radius: 8px;
    margin: 8px 0;
    box-shadow: 0 0 10px rgba(0, 189, 6, 0.3);  /* Subtle green glow */
}

/* select2 mobile fixes */
@media (max-width: 767px) {
    .select2-container--classic .select2-dropdown--below {
        width: calc(100vw - 100px) !important;  /* Adjust width for mobile */
        margin-left: 0;  /* Reset margin */
        left: 50% !important;  /* Center the dropdown */
        transform: translateX(-50%);  /* Center the dropdown */
        position: fixed;  /* Fix position on screen */
    }

    .select2-container {
        width: 100% !important;  /* Ensure container takes full width */
    }

    .select2-container--classic .select2-results {
        background-color: #535353 !important;
    }

    .select2-container--classic .select2-results__options {
        max-height: 200px !important;  /* Limit height on mobile */
        background-color: #535353 !important;
    }

    /* Ensure dropdown appears above other elements */
    .select2-container--classic.select2-container--open {
        z-index: 9999 !important;
    }
}

/* Ensure consistent background colors */
.select2-container--classic .select2-results__option {
    background-color: #535353 !important;
}

.select2-container--classic .select2-results__option--highlighted[aria-selected] {
    background-color: #00BD06 !important;
}


/* download */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: #fff;
}

.download-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #00BD06;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    margin: 20px 0;
    transition: background-color 0.3s;
}

.download-button:hover {
    background-color: #6fc073;
}

.note {
    color: #ffffff;
    font-style: italic;
}

.select2-container--classic .select2-dropdown {
    background-color: #535353 !important;
}

.select2-dropdown {
    background-color: #535353 !important;
}