
.dapper-search-container {
    background: #fff;
    border-radius: 50px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 9999; /* Higher than siblings */
}
.dapper-search-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dapper-field-group {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
    cursor: pointer;
}
.dapper-field-icon {
    font-size: 20px;
    color: #888;
    margin-right: 15px;
}
.dapper-field-content { width: 100%; }
.dapper-field-content label {
    display: block;
    margin-bottom: 2px;
}
.dapper-custom-select {
    display: block;
}
.dapper-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: -20px;
    background: #fff;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-radius: 12px;
    display: none;
    z-index: 10000; /* Highest z-index to prevent clipping */
}
.dapper-dropdown li {
    padding: 10px 25px;
    transition: 0.2s;
}
.dapper-dropdown li:hover { background: #f8f9fa; color: #5b78ab; }
.parent-cat { font-weight: 700; border-top: 1px solid #f0f0f0; }
.parent-cat:first-child { border-top: none; }
.child-cat { padding-left: 45px !important; }

.dapper-divider {
    width: 1px;
    height: 40px;
    background: #eee;
    margin: 0 20px;
}
.dapper-search-submit {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    flex-shrink: 0;
}
.dapper-search-submit:hover { transform: scale(1.08); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

@media (max-width: 767px) {
    .dapper-search-container { border-radius: 20px; }
    .dapper-search-form { flex-direction: column; gap: 25px; }
    .dapper-divider { display: none; }
    .dapper-field-group { width: 100%; }
    .dapper-search-submit { width: 100%; border-radius: 12px; margin-top: 10px; }
    .dapper-dropdown { width: 100% !important; left: 0; top: 100%; }
}
