.native-select-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    min-height: 50px;
    padding: 13px 48px 13px 47px;
    display: flex;
    align-items: center;
    color: #172033;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: 16px center;
    background-size: 18px 18px;
    border: 1px solid #d9dee8;
    border-radius: 10px;
    font: inherit;
    font-size: .88rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.field:has(select[name="gender"]) .custom-select-trigger {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d8798' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c.8-4.3 3.5-6.5 8-6.5s7.2 2.2 8 6.5'/%3E%3C/svg%3E");
}

.field:has(select[name="nominee_relation"]) .custom-select-trigger {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d8798' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='17' cy='10' r='2.5'/%3E%3Cpath d='M3 20c.5-4 2.5-6 6-6s5.5 2 6 6M15 15c3.4 0 5.4 1.7 6 5'/%3E%3C/svg%3E");
}

.custom-select-trigger:hover {
    border-color: #b7c1d1;
}

.custom-select.open .custom-select-trigger,
.custom-select-trigger:focus-visible {
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px rgba(11, 71, 165, .09);
}

.custom-select-trigger.placeholder {
    color: #6d7483;
}

.custom-select-arrow {
    position: absolute;
    top: 50%;
    right: 18px;
    width: 9px;
    height: 9px;
    border-right: 2px solid #737d8d;
    border-bottom: 2px solid #737d8d;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
    transition: transform .22s ease, border-color .22s ease;
}

.custom-select.open .custom-select-arrow {
    border-color: #14b8a6;
    transform: translateY(-30%) rotate(225deg);
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    max-height: 230px;
    padding: 7px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-7px) scale(.985);
    transform-origin: top;
    background: #fff;
    border: 1px solid #dfe4ed;
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(6, 29, 79, .15);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    scrollbar-width: thin;
    scrollbar-color: #c6cedb transparent;
}

.custom-select.open .custom-select-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.custom-select-option {
    width: 100%;
    min-height: 40px;
    padding: 9px 36px 9px 12px;
    position: relative;
    display: flex;
    align-items: center;
    color: #303949;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-size: .84rem;
    text-align: left;
    cursor: pointer;
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
    color: #073b4c;
    background: #f1f5fb;
    outline: none;
}

.custom-select-option.selected {
    color: #14b8a6;
    background: #eaf1ff;
    font-weight: 750;
}

.custom-select-option.selected::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    position: absolute;
    right: 13px;
    color: #14b8a6;
    font-weight: 900;
}

@media (max-width: 370px) {
    .custom-select-trigger {
        padding-left: 43px;
        padding-right: 43px;
        background-position-x: 14px;
        background-size: 17px 17px;
    }

    .custom-select-arrow {
        right: 16px;
    }
}


