/* Custom Checkbox Dropdown for Multi-Select (Figma accurate)
   Used for 'Select topics that define your problem*'
*/

.custom-checkbox-dropdown {
    position: relative;
    width: 100%;
    font-family: 'IBM Plex Sans', sans-serif;
}

.custom-checkbox-dropdown .dropdown-selected {
    background: #fff;
    border: 1px solid #d4d2e3;
    border-radius: 16px;
    padding: 12px 16px;
    font-size: 16px;
    color: #403936;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    transition: border 0.2s;
}

.custom-checkbox-dropdown .dropdown-selected.open {
    border-color: #ed6a59;
}

.custom-checkbox-dropdown .dropdown-arrow {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    transition: transform 0.3s;
}

.custom-checkbox-dropdown .dropdown-selected.open .dropdown-arrow {
    transform: rotate(180deg);
}

.custom-checkbox-dropdown .dropdown-list {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #d4d2e3;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(64, 57, 54, 0.08);
    z-index: 10;
    max-height: 320px;
    overflow-y: auto;
    margin-top: 4px;
    padding: 8px 0;
}

.custom-checkbox-dropdown .dropdown-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 16px;
    color: #403936;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 8px;
    user-select: none;
}

.custom-checkbox-dropdown .dropdown-option:hover {
    background: #f5f5f5;
}

.custom-checkbox-dropdown .checkbox-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: inline-block;
}

/* Responsive tweaks */
@media (max-width: 767px) {
    .custom-checkbox-dropdown .dropdown-selected,
    .custom-checkbox-dropdown .dropdown-list {
        font-size: 16px;
        min-height: 41.58px;
    }
}
